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
4c58cad4
Unverified
Commit
4c58cad4
authored
May 10, 2018
by
Kevin Falcone
Committed by
GitHub
May 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4543 from edx/jibsheet/xqueue-config
Pass XQUEUE_CFG to several commands
parents
eb30873e
c54f8a02
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
playbooks/roles/xqueue/tasks/main.yml
+4
-1
playbooks/roles/xqueue/templates/xqueue.conf.j2
+1
-1
playbooks/roles/xqueue/templates/xqueue_consumer.conf.j2
+1
-1
No files found.
playbooks/roles/xqueue/tasks/main.yml
View file @
4c58cad4
...
...
@@ -95,6 +95,7 @@
environment
:
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
XQUEUE_CFG
:
'
{{
COMMON_CFG_DIR
}}/xqueue.yml'
when
:
migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS
run_once
:
yes
tags
:
...
...
@@ -102,8 +103,10 @@
-
migrate:db
-
name
:
Create users
shell
:
"
SERVICE_VARIANT=xqueue
{{
xqueue_venv_bin
}}/django-admin.py
update_users
--settings=xqueue.{{
XQUEUE_SETTINGS
}}
--pythonpath={{
xqueue_code_dir
}}"
shell
:
"
{{
xqueue_venv_bin
}}/django-admin.py
update_users
--settings=xqueue.{{
XQUEUE_SETTINGS
}}
--pythonpath={{
xqueue_code_dir
}}"
become_user
:
"
{{
xqueue_user
}}"
environment
:
XQUEUE_CFG
:
'
{{
COMMON_CFG_DIR
}}/xqueue.yml'
when
:
not disable_edx_services
tags
:
-
manage
...
...
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
4c58cad4
...
...
@@ -11,7 +11,7 @@ command={{ executable }} -c {{ xqueue_app_dir }}/xqueue_gunicorn.py {{ XQUEUE_GU
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC_APP %}NEW_RELIC_APP_NAME={{ XQUEUE_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.{{ XQUEUE_SETTINGS }}
environment={% if COMMON_ENABLE_NEWRELIC_APP %}NEW_RELIC_APP_NAME={{ XQUEUE_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.{{ XQUEUE_SETTINGS }}
,XQUEUE_CFG={{ COMMON_CFG_DIR }}/xqueue.yml
stdout_logfile={{ supervisor_log_dir }}/%(program_name)s-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)s-stderr.log
...
...
playbooks/roles/xqueue/templates/xqueue_consumer.conf.j2
View file @
4c58cad4
...
...
@@ -11,7 +11,7 @@ command={{ executable }} --pythonpath={{ xqueue_code_dir }} --settings=xqueue.{{
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC_APP %}NEW_RELIC_STARTUP_TIMEOUT=10,NEW_RELIC_APP_NAME={{ XQUEUE_CONSUMER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}LANG={{ XQUEUE_LANG }}
environment={% if COMMON_ENABLE_NEWRELIC_APP %}NEW_RELIC_STARTUP_TIMEOUT=10,NEW_RELIC_APP_NAME={{ XQUEUE_CONSUMER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}LANG={{ XQUEUE_LANG }}
,XQUEUE_CFG={{ COMMON_CFG_DIR }}/xqueue.yml
stdout_logfile={{ supervisor_log_dir }}/%(program_name)s-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)s-stderr.log
...
...
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