Commit 8083c60f by Jason Bau

Fix configs broken by replace of "xqueue." with "xqueue_" where

it was not called for
parent ea85905c
upstream app_server { upstream app_server {
# For a TCP configuration: # For a TCP configuration:
server 127.0.0.1:{{ xqueue.gunicorn_port }} fail_timeout=0; server 127.0.0.1:{{ xqueue_gunicorn_port }} fail_timeout=0;
} }
server { server {
listen {{ xqueue.nginx_port }} default_server; listen {{ xqueue_nginx_port }} default_server;
location / { location / {
try_files $uri @proxy_to_app; try_files $uri @proxy_to_app;
......
...@@ -21,19 +21,21 @@ ...@@ -21,19 +21,21 @@
- xqueue - xqueue
- name: create xqueue application config - name: create xqueue application config
template: src=xqueue_env.json.j2 dest=$app_base_dir/env.json mode=640 owner=www-data group=adm template: src=xqueue.env.json.j2 dest=$app_base_dir/env.json mode=0640 owner=www-data group=adm
tags: tags:
- xqueue - xqueue
- name: create xqueue auth file - name: create xqueue auth file
template: src=xqueue_auth.json.j2 dest=$app_base_dir/auth.json mode=640 owner=www-data group=adm template: src=xqueue.auth.json.j2 dest=$app_base_dir/auth.json mode=0640 owner=www-data group=adm
tags: tags:
- xqueue - xqueue
- name: creating xqueue upstart script - name: creating xqueue upstart script
sudo: True template: src=xqueue.conf.j2 dest=/etc/init/xqueue.conf mode=0640 owner=root group=adm
template: src=xqueue_conf.j2 dest=/etc/init/xqueue_conf owner=root group=root
tags: tags:
- xqueue - xqueue
# Install nginx site
- include: ../../nginx/tasks/nginx_site.yml state=link site_name=xqueue
- include: deploy.yml - include: deploy.yml
#/etc/init/xqueue_conf #/etc/init/xqueue.conf
description "xqueue server" description "xqueue server"
author "edX <info@edx.org>" author "edX <info@edx.org>"
...@@ -6,15 +6,15 @@ author "edX <info@edx.org>" ...@@ -6,15 +6,15 @@ author "edX <info@edx.org>"
respawn respawn
respawn limit 3 30 respawn limit 3 30
env PID=/var/tmp/xqueue_pid env PID=/var/tmp/xqueue.pid
env WORKERS={{ ansible_processor_cores * 2 }} env WORKERS={{ ansible_processor_cores * 2 }}
env PORT={{ xqueue_gunicorn_port }} env PORT={{ xqueue_gunicorn_port }}
env LANG=en_US.UTF-8 env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=xqueue_aws_settings env DJANGO_SETTINGS_MODULE=xqueue.aws_settings
env SERVICE_VARIANT="xqueue" env SERVICE_VARIANT="xqueue"
chdir {{ xqueue_code_dir }} chdir {{ xqueue_code_dir }}
setuid www-data setuid www-data
exec {{ venv_dir }}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue_wsgi exec {{ venv_dir }}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
...@@ -14,7 +14,7 @@ xqueue_gunicorn_port: 8040 ...@@ -14,7 +14,7 @@ xqueue_gunicorn_port: 8040
xqueue_auth_config: {} xqueue_auth_config: {}
xqueue_env_config: {} xqueue_env_config: {}
xqueue_source_repo: https://github.com/edx/xqueue_git xqueue_source_repo: https://github.com/edx/xqueue.git
xqueue_version: 'HEAD' xqueue_version: 'HEAD'
xqueue_pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt" xqueue_pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt"
xqueue_post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt" xqueue_post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt"
......
...@@ -25,31 +25,30 @@ ...@@ -25,31 +25,30 @@
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ #see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
xqueue: xqueue_env_config:
env_config: 'XQUEUES':
'XQUEUES': # push queue
# push queue 'edX-DemoX': 'http://localhost:18050'
- 'edX-DemoX': 'http://localhost:18050'
# pull queues # pull queues
- 'test-pull': !!null 'test-pull': !!null
- 'certificates': !!null 'certificates': !!null
- 'open-ended': !!null 'open-ended': !!null
'XQUEUE_WORKERS_PER_QUEUE': 12 'XQUEUE_WORKERS_PER_QUEUE': 12
'LOGGING_ENV' : 'sandbox' 'LOGGING_ENV' : 'sandbox'
'LOG_DIR' : '/mnt/logs' 'LOG_DIR' : '/mnt/logs'
'SYSLOG_SERVER' : 'syslog.a.m.i4x.org' 'SYSLOG_SERVER' : 'syslog.a.m.i4x.org'
'RABBIT_HOST' : 'localhost' 'RABBIT_HOST' : 'localhost'
'S3_BUCKET_PREFIX' : 'sandbox-bucket' 'S3_BUCKET_PREFIX' : 'sandbox-bucket'
auth_config: xqueue_auth_config:
'AWS_ACCESS_KEY_ID' : '' 'AWS_ACCESS_KEY_ID' : ''
'AWS_SECRET_ACCESS_KEY' : '' 'AWS_SECRET_ACCESS_KEY' : ''
'REQUESTS_BASIC_AUTH': ['edx', 'edx'] 'REQUESTS_BASIC_AUTH': ['edx', 'edx']
'USERS': {'lms': 'password'} 'USERS': {'lms': 'password'}
'RABBITMQ_USER': 'edx' 'RABBITMQ_USER': 'edx'
'RABBITMQ_PASS': 'edx' 'RABBITMQ_PASS': 'edx'
'DATABASES': 'DATABASES':
'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'xqueue', 'USER': 'root', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306' } 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'xqueue', 'USER': 'root', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306' }
......
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