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
29b680fc
Commit
29b680fc
authored
Jun 02, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1156 from edx/jarv/run-ip
adding the option to run on a single ip
parents
1274933a
b486d4d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
playbooks/roles/xqueue/templates/xqueue.conf.j2
+4
-4
util/jenkins/run-ansible.sh
+7
-5
No files found.
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
29b680fc
[program:xqueue]
{% if COMMON_ENABLE_NEWRELIC %}
{% set executable = xqueue_venv_
dir + '/bin/newrelic-admin run-program ' + xqueue_venv_dir + '/bin
/gunicorn' %}
{% set executable = xqueue_venv_
bin + '/newrelic-admin run-program ' + xqueue_venv_bin + '
/gunicorn' %}
{% else %}
{% set executable = xqueue_venv_
dir + '/bin
/gunicorn' %}
{% set executable = xqueue_venv_
bin + '
/gunicorn' %}
{% endif %}
{% if ansible_processor|length > 0 %}
command={{
xqueue_venv_bin }}/gunicorn
--preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ ansible_processor|length * 2 }} --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
command={{
executable }}
--preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ ansible_processor|length * 2 }} --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
{% else %}
command={{
xqueue_venv_bin }}/gunicorn
--preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w 2 --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
command={{
executable }}
--preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w 2 --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
{% endif %}
user={{ common_web_user }}
...
...
util/jenkins/run-ansible.sh
View file @
29b680fc
...
...
@@ -31,12 +31,14 @@ if [[ $run_migrations == "true" ]]; then
ansible_extra_vars+
=
" -e migrate_db=yes"
fi
if
[[
$first_in
==
"true"
]]
;
then
ansible_limit+
=
"first_in_"
if
[[
!
-z
"
$run_on_single_ip
"
]]
;
then
ansible_limit+
=
"
$run_on_single_ip
"
else
if
[[
$first_in
==
"true"
]]
;
then
ansible_limit+
=
"first_in_"
fi
ansible_limit+
=
"tag_Name_
${
environment_tag
}
-
${
deployment_tag
}
-
${
play_tag
}
"
fi
ansible_limit+
=
"tag_Name_
${
environment_tag
}
-
${
deployment_tag
}
-
${
play_tag
}
"
ansible_task_tags
=
""
if
[[
!
-z
"
$task_tags
"
]]
;
then
ansible_task_tags+
=
"--tags
$task_tags
"
...
...
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