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
143bb230
Unverified
Commit
143bb230
authored
Feb 23, 2018
by
Kevin Falcone
Committed by
GitHub
Feb 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4351 from edx/jibsheet/remove-unused-config
Remove xqueue SERVICE_VARIANT and old variables
parents
53509828
26e240d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
11 deletions
+7
-11
CHANGELOG.md
+4
-0
playbooks/roles/xqueue/defaults/main.yml
+0
-8
playbooks/roles/xqueue/tasks/deploy.yml
+1
-1
playbooks/roles/xqueue/templates/xqueue.conf.j2
+1
-1
playbooks/roles/xqueue/templates/xqueue_consumer.conf.j2
+1
-1
No files found.
CHANGELOG.md
View file @
143bb230
-
Role: xqueue
-
Remove S3_BUCKET and S3_PATH_PREFIX - they were deprecated prior to ginkgo
-
Remove SERVICE_VARIANT - it was copied from edxapp but never truly used (except to complicate things)
-
Role: edxapp
-
Added
`ENTERPRISE_REPORTING_SECRET`
to CMS auth settings to allow edx-enterprise migrations to run.
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
143bb230
...
...
@@ -22,10 +22,6 @@ XQUEUE_SYSLOG_SERVER: 'localhost'
XQUEUE_UPLOAD_BUCKET
:
'
sandbox-bucket'
XQUEUE_UPLOAD_PATH_PREFIX
:
'
sandbox-xqueue'
# Deprecated, use XQUEUE_UPLOAD_BUCKET and XQUEUE_UPLOAD_PATH_PREFIX
XQUEUE_S3_BUCKET
:
"
{{
XQUEUE_UPLOAD_BUCKET
}}"
XQUEUE_S3_PATH_PREFIX
:
"
{{
XQUEUE_UPLOAD_PATH_PREFIX
}}"
XQUEUE_LOCAL_LOGLEVEL
:
'
INFO'
XQUEUE_AWS_ACCESS_KEY_ID
:
'
'
...
...
@@ -93,10 +89,6 @@ xqueue_env_config:
UPLOAD_BUCKET
:
"
{{
XQUEUE_UPLOAD_BUCKET
}}"
UPLOAD_PATH_PREFIX
:
"
{{
XQUEUE_UPLOAD_PATH_PREFIX
}}"
# Deprecated, use UPLOAD_BUCKET and UPLOAD_PATH_PREFIX instead
S3_BUCKET
:
"
{{
XQUEUE_S3_BUCKET
}}"
S3_PATH_PREFIX
:
"
{{
XQUEUE_S3_PATH_PREFIX
}}"
xqueue_auth_config
:
AWS_ACCESS_KEY_ID
:
"
{{
XQUEUE_AWS_ACCESS_KEY_ID
}}"
AWS_SECRET_ACCESS_KEY
:
"
{{
XQUEUE_AWS_SECRET_ACCESS_KEY
}}"
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
143bb230
...
...
@@ -88,7 +88,7 @@
# If there is a common user for migrations run migrations using his username
# and credentials. If not we use the xqueue mysql user
-
name
:
Migrate
shell
:
"
SERVICE_VARIANT=xqueue
{{
xqueue_venv_bin
}}/django-admin.py
migrate
--noinput
--settings=xqueue.{{
XQUEUE_SETTINGS
}}
--pythonpath={{
xqueue_code_dir
}}"
shell
:
"
{{
xqueue_venv_bin
}}/django-admin.py
migrate
--noinput
--settings=xqueue.{{
XQUEUE_SETTINGS
}}
--pythonpath={{
xqueue_code_dir
}}"
become_user
:
"
{{
xqueue_user
}}"
environment
:
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
...
...
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
143bb230
...
...
@@ -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 }}
,SERVICE_VARIANT="xqueue"
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 }}
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 @
143bb230
...
...
@@ -5,7 +5,7 @@ command={{ xqueue_venv_bin }}/django-admin.py run_consumer --pythonpath={{ xqueu
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
environment=LANG={{ XQUEUE_LANG }},WORKERS_PER_QUEUE={{xqueue_env_config.XQUEUE_WORKERS_PER_QUEUE}}
,SERVICE_VARIANT="xqueue"
environment=LANG={{ XQUEUE_LANG }},WORKERS_PER_QUEUE={{xqueue_env_config.XQUEUE_WORKERS_PER_QUEUE}}
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