Commit 6b87cf32 by John Jarvis

changing hashses to underscores for variable namespace isolation

parent ec513e80
...@@ -27,6 +27,5 @@ ...@@ -27,6 +27,5 @@
roles: roles:
- common - common
- nginx - nginx
- gunicorn
- edxlocal - edxlocal
- edxapp - edxapp
...@@ -15,20 +15,20 @@ ...@@ -15,20 +15,20 @@
# Install the python pre requirements into {{ venv_dir }} # Install the python pre requirements into {{ venv_dir }}
- name : install python pre-requirements - name : install python pre-requirements
pip: requirements="{{xqueue.pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: requirements="{{xqueue_pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags: tags:
- xqueue - xqueue
- deploy - deploy
# Install the python post requirements into {{ venv_dir }} # Install the python post requirements into {{ venv_dir }}
- name : install python post-requirements - name : install python post-requirements
pip: requirements="{{xqueue.post_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: requirements="{{xqueue_post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags: tags:
- xqueue - xqueue
- deploy - deploy
- name: syncdb and migrate - name: syncdb and migrate
shell: sudo -u www-data /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=xqueue.aws_settings --pythonpath=/opt/wwc/xqueue shell: sudo -u www-data /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=xqueue_aws_settings --pythonpath=/opt/wwc/xqueue
when: migrate_db is defined when: migrate_db is defined
tags: tags:
- xqueue - xqueue
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# Do A Checkout # Do A Checkout
- name: git checkout xqueue repo into $app_base_dir - name: git checkout xqueue repo into $app_base_dir
git: dest={{xqueue_code_dir}} repo={{xqueue.source_repo}} version={{xqueue.version}} git: dest={{xqueue_code_dir}} repo={{xqueue_source_repo}} version={{xqueue_version}}
tags: tags:
- xqueue - xqueue
- deploy - deploy
......
...@@ -16,23 +16,23 @@ ...@@ -16,23 +16,23 @@
- name: install a bunch of system packages on which LMS and CMS rely - name: install a bunch of system packages on which LMS and CMS rely
apt: pkg={{item}} state=present apt: pkg={{item}} state=present
with_items: xqueue.debian_pkgs with_items: xqueue_debian_pkgs
tags: tags:
- 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=640 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=640 owner=www-data group=adm
tags: tags:
- xqueue - xqueue
- name: creating xqueue upstart script - name: creating xqueue upstart script
sudo: True sudo: True
template: src=xqueue.conf.j2 dest=/etc/init/xqueue.conf owner=root group=root template: src=xqueue_conf.j2 dest=/etc/init/xqueue_conf owner=root group=root
tags: tags:
- xqueue - xqueue
......
{{ xqueue.auth_config | to_nice_json }} {{ xqueue_auth_config | to_nice_json }}
#/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
{{ xqueue.env_config | to_nice_json }} {{ xqueue_env_config | to_nice_json }}
...@@ -3,96 +3,95 @@ ...@@ -3,96 +3,95 @@
--- ---
xqueue_code_dir: "{{ app_base_dir }}/xqueue" xqueue_code_dir: "{{ app_base_dir }}/xqueue"
xqueue: # Default nginx listen port
# Default nginx listen port # These should be overrided if you want
# These should be overrided if you want # to serve all content on port 80
# to serve all content on port 80 xqueue_code_dir: "{{ app_base_dir }}/xqueue"
code_dir: "{{ app_base_dir }}/xqueue" xqueue_nginx_port: 18040
nginx_port: 18040 xqueue_gunicorn_port: 8040
gunicorn_port: 8040
auth_config: {} xqueue_auth_config: {}
env_config: {} xqueue_env_config: {}
source_repo: https://github.com/edx/xqueue.git xqueue_source_repo: https://github.com/edx/xqueue_git
version: 'HEAD' xqueue_version: 'HEAD'
pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt" xqueue_pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt"
post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt" xqueue_post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt"
# These packages are required for the xqueue server, # These packages are required for the xqueue server,
# copied from the LMS role for now since there is a lot # copied from the LMS role for now since there is a lot
# of overlap # of overlap
debian_pkgs: xqueue_debian_pkgs:
- apparmor-utils - apparmor-utils
- aspell - aspell
- build-essential - build-essential
- curl - curl
- dvipng - dvipng
- fabric - fabric
- facter - facter
- g++ - g++
- gcc - gcc
- gfortran - gfortran
- ghostscript - ghostscript
- git - git
- github-cli - github-cli
- graphviz - graphviz
- graphviz-dev - graphviz-dev
- gunicorn - gunicorn
- inoticoming - inoticoming
- ipython - ipython
- libcrypt-ssleay-perl - libcrypt-ssleay-perl
- libcurl4-openssl-dev - libcurl4-openssl-dev
- libdigest-sha-perl - libdigest-sha-perl
- libfreetype6-dev - libfreetype6-dev
- libgeos-dev - libgeos-dev
- libgraphviz-dev - libgraphviz-dev
- libjpeg8-dev - libjpeg8-dev
- liblapack-dev - liblapack-dev
- liblwp-protocol-https-perl - liblwp-protocol-https-perl
- libmysqlclient-dev - libmysqlclient-dev
- libnet-amazon-ec2-perl - libnet-amazon-ec2-perl
- libpng12-dev - libpng12-dev
- libreadline-dev - libreadline-dev
- libreadline6-dev - libreadline6-dev
- libssl-dev - libssl-dev
- libswitch-perl - libswitch-perl
- libwww-perl - libwww-perl
- libxml++2.6-dev - libxml++2.6-dev
- libxml2-dev - libxml2-dev
- libxml2-utils - libxml2-utils
- libxslt1-dev - libxslt1-dev
- maven2 - maven2
- mongodb - mongodb
- mongodb-clients - mongodb-clients
- mysql-client - mysql-client
- npm - npm
- ntp - ntp
- openjdk-7-jdk - openjdk-7-jdk
- openjdk-7-jre - openjdk-7-jre
- pep8 - pep8
- perl - perl
- pkg-config - pkg-config
- postfix - postfix
- pylint - pylint
- python-boto - python-boto
- python-coverage-test-runner - python-coverage-test-runner
- python-django-nose - python-django-nose
- python-jenkins - python-jenkins
- python-nose - python-nose
- python-nosexcover - python-nosexcover
- python-numpy - python-numpy
- python-pip - python-pip
- python-scipy - python-scipy
- rake - rake
- reprepro - reprepro
- rsyslog - rsyslog
- rubygems - rubygems
- sqlite3 - sqlite3
- super - super
- vagrant - vagrant
- yui-compressor - yui-compressor
- zip - zip
- zlib1g-dev - zlib1g-dev
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