Commit 22941c38 by John Jarvis

Merge pull request #914 from edx/jarv/updates-for-xqueue

Jarv/updates for xqueue
parents 4a2e819f 2ae29c96
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
login_user: "{{ item.db_user }}" login_user: "{{ item.db_user }}"
login_password: "{{ item.db_pass }}" login_password: "{{ item.db_pass }}"
host: '%' host: '%'
when: item.db_user != 'None'
with_items: with_items:
- db_host: "{{ EDXAPP_MYSQL_HOST|default('None') }}" - db_host: "{{ EDXAPP_MYSQL_HOST|default('None') }}"
db_user: "{{ edxapp_db_root_user }}" db_user: "{{ edxapp_db_root_user }}"
...@@ -104,6 +105,7 @@ ...@@ -104,6 +105,7 @@
login_user: "{{ item.db_user }}" login_user: "{{ item.db_user }}"
login_password: "{{ item.db_pass }}" login_password: "{{ item.db_pass }}"
host: '%' host: '%'
when: item.db_user != 'None'
with_items: with_items:
- db_host: "{{ EDXAPP_MYSQL_HOST|default('None') }}" - db_host: "{{ EDXAPP_MYSQL_HOST|default('None') }}"
db_user: "{{ edxapp_db_root_user }}" db_user: "{{ edxapp_db_root_user }}"
......
...@@ -2,21 +2,6 @@ ...@@ -2,21 +2,6 @@
# when the role is included # when the role is included
--- ---
XQUEUE_NGINX_PORT: 18040 XQUEUE_NGINX_PORT: 18040
xqueue_app_dir: "{{ COMMON_APP_DIR }}/xqueue"
xqueue_code_dir: "{{ xqueue_app_dir }}/xqueue"
xqueue_data_dir: "{{ COMMON_DATA_DIR }}/xqueue"
xqueue_venvs_dir: "{{ xqueue_app_dir }}/venvs"
xqueue_venv_dir: "{{ xqueue_venvs_dir }}/xqueue"
xqueue_venv_bin: "{{ xqueue_venv_dir }}/bin"
xqueue_user: "xqueue"
# Default nginx listen port
# These should be overrided if you want
# to serve all content on port 80
xqueue_gunicorn_port: 8040
xqueue_gunicorn_host: 127.0.0.1
XQUEUE_QUEUES: XQUEUE_QUEUES:
# push queue # push queue
'edX-Open_DemoX': 'http://localhost:18050' 'edX-Open_DemoX': 'http://localhost:18050'
...@@ -46,6 +31,23 @@ XQUEUE_MYSQL_PASSWORD: 'password' ...@@ -46,6 +31,23 @@ XQUEUE_MYSQL_PASSWORD: 'password'
XQUEUE_MYSQL_HOST: 'localhost' XQUEUE_MYSQL_HOST: 'localhost'
XQUEUE_MYSQL_PORT: '3306' XQUEUE_MYSQL_PORT: '3306'
# Internal vars below this line
#############################################
xqueue_app_dir: "{{ COMMON_APP_DIR }}/xqueue"
xqueue_code_dir: "{{ xqueue_app_dir }}/xqueue"
xqueue_data_dir: "{{ COMMON_DATA_DIR }}/xqueue"
xqueue_venvs_dir: "{{ xqueue_app_dir }}/venvs"
xqueue_venv_dir: "{{ xqueue_venvs_dir }}/xqueue"
xqueue_venv_bin: "{{ xqueue_venv_dir }}/bin"
xqueue_user: "xqueue"
# Default nginx listen port
# These should be overrided if you want
# to serve all content on port 80
xqueue_gunicorn_port: 8040
xqueue_gunicorn_host: 127.0.0.1
xqueue_env_config: xqueue_env_config:
XQUEUES: $XQUEUE_QUEUES XQUEUES: $XQUEUE_QUEUES
XQUEUE_WORKERS_PER_QUEUE: 12 XQUEUE_WORKERS_PER_QUEUE: 12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment