Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
d6ec69b6
Commit
d6ec69b6
authored
Jul 18, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #168 from edx/feanil/remove_facter
Use ansible facts instead of facter.
parents
c2fad03f
8145e7e4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
18 deletions
+8
-18
playbooks/roles/edxapp/templates/cms.conf.j2
+2
-4
playbooks/roles/edxapp/templates/lms-preview.conf.j2
+2
-4
playbooks/roles/edxapp/templates/lms-xml.conf.j2
+2
-4
playbooks/roles/edxapp/templates/lms.conf.j2
+2
-4
playbooks/roles/edxapp/vars/main.yml
+0
-1
playbooks/roles/xqueue/vars/main.yml
+0
-1
No files found.
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
d6ec69b6
...
...
@@ -11,10 +11,8 @@ respawn limit 3 30
env PID=/var/tmp/cms.pid
#env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if facter_processorcount|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.cms * facter_processorcount|int }}
{% elif ansible_processor_cores|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.cms * ansible_processor_cores|int }}
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length }}
{% else %}
env WORKERS={{ worker_core_mult.cms }}
{% endif %}
...
...
playbooks/roles/edxapp/templates/lms-preview.conf.j2
View file @
d6ec69b6
...
...
@@ -12,10 +12,8 @@ respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if facter_processorcount|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms_preview * facter_processorcount|int }}
{% elif ansible_processor_cores|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms_preview * ansible_processor_cores|int }}
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length }}
{% else %}
env WORKERS={{ worker_core_mult.lms_preview }}
{% endif %}
...
...
playbooks/roles/edxapp/templates/lms-xml.conf.j2
View file @
d6ec69b6
...
...
@@ -11,10 +11,8 @@ respawn limit 3 30
env PID=/var/tmp/lms-xml.pid
#env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if facter_processorcount|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms_xml * facter_processorcount|int }}
{% elif ansible_processor_cores|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms_xml * ansible_processor_cores|int }}
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length }}
{% else %}
env WORKERS={{ worker_core_mult.lms_xml }}
{% endif %}
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
d6ec69b6
...
...
@@ -9,10 +9,8 @@ respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if facter_processorcount|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms * facter_processorcount|int }}
{% elif ansible_processor_cores|int(default="NaN") is number %}
env WORKERS={{ worker_core_mult.lms * ansible_processor_cores|int }}
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length }}
{% else %}
env WORKERS={{ worker_core_mult.lms }}
{% endif %}
...
...
playbooks/roles/edxapp/vars/main.yml
View file @
d6ec69b6
...
...
@@ -208,7 +208,6 @@ lms_debian_pkgs:
-
curl
-
dvipng
-
fabric
-
facter
-
g++
-
gcc
-
gfortran
...
...
playbooks/roles/xqueue/vars/main.yml
View file @
d6ec69b6
...
...
@@ -51,7 +51,6 @@ xqueue_debian_pkgs:
-
curl
-
dvipng
-
fabric
-
facter
-
g++
-
gcc
-
gfortran
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment