Commit 4f29e921 by Jason Bau

prod-worker consolidated with prod-xqueue

parent 5805aa6b
- name: Basic util setup on all hosts
# For all util machines # For all util machines
- hosts: tag_environment_prod:&tag_function_util # hosts: tag_environment_prod:&tag_function_util
# or we can get subsets of them by name # or we can get subsets of them by name
#- hosts: ~tag_Name_util10_prod hosts: ~tag_Name_util(1|2)_prod
sudo: True sudo: True
gather_facts: True
vars: vars:
# this indicates the path to site-specific (with precedence) # this indicates the path to site-specific (with precedence)
# things like nginx template files # things like nginx template files
...@@ -11,33 +13,53 @@ ...@@ -11,33 +13,53 @@
migrate_db: "no" migrate_db: "no"
vars_files: vars_files:
- "{{ secure_dir }}/vars/edxapp_prod_vars.yml" - "{{ secure_dir }}/vars/edxapp_prod_vars.yml"
- "{{ secure_dir }}/vars/xqueue_prod_vars.yml"
- "{{ secure_dir }}/vars/users.yml" - "{{ secure_dir }}/vars/users.yml"
- "{{ secure_dir }}/vars/edxapp_prod_users.yml" # - "{{ secure_dir }}/vars/edxapp_prod_users.yml"
- "{{ secure_dir }}/vars/shib_prod_vars.yml" # - "{{ secure_dir }}/vars/shib_prod_vars.yml"
- "{{ secure_dir }}/vars/datadog_prod.yml" - "{{ secure_dir }}/vars/datadog_prod.yml"
roles: roles:
- common - role: gh_users
- supervisor gh_users:
- { role: 'edxapp', celery_worker: True } - sefk
- jbau
- jrbl
tags: users
- role: 'common'
tags: common
- role: 'supervisor'
tags: supervisor
- role: 'edxapp'
celery_worker: True
devstack: false
tags: celery
- role: nginx
nginx_sites:
- xqueue
- basic-auth
tags: nginx
- role: xqueue
xqueue_create_db: "no"
tags: xqueue
- datadog - datadog
#- splunkforwarder #- splunkforwarder
# run the certificate agent on the first util machine only # run the certificate agent on the first util machine only
- hosts: ~tag_Name_util10_prod #- hosts: ~tag_Name_util10_prod
sudo: True # sudo: True
vars: # vars:
secure_dir: '../../../configuration-secure/ansible' # secure_dir: '../../../configuration-secure/ansible'
migrate_db: "no" # migrate_db: "no"
vars_files: # vars_files:
- "{{ secure_dir }}/vars/edxapp_prod_vars.yml" # - "{{ secure_dir }}/vars/edxapp_prod_vars.yml"
- "{{ secure_dir }}/vars/certifier_prod_vars.yml" # - "{{ secure_dir }}/vars/certifier_prod_vars.yml"
roles: # roles:
- common # - common
- role: virtualenv # - role: virtualenv
virtualenv_user: "certifier" # virtualenv_user: "certifier"
virtualenv_name: "certifier" # virtualenv_name: "certifier"
virtualenv_user_home: "/opt/wwc/certifier" # virtualenv_user_home: "/opt/wwc/certifier"
- certificates # - certificates
# #
# COMMENT OUT THE NOTIFIER UNTIL IT IS READY # COMMENT OUT THE NOTIFIER UNTIL IT IS READY
......
...@@ -7,7 +7,7 @@ directory={{ edxapp_code_dir }} ...@@ -7,7 +7,7 @@ directory={{ edxapp_code_dir }}
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
command={{ edxapp_venv_bin}}/python {{ edxapp_code_dir }}/manage.py {{ w.service_variant }} --settings=aws celery worker --loglevel=info --queues=edx.{{ w.service_variant }}.core.{{ w.queue }} --hostname=edx.{{ w.service_variant }}.core.{{ w.queue }}.`hostname` --concurrency={{ w.concurrency }} command={{ edxapp_venv_bin}}/python {{ edxapp_code_dir }}/manage.py {{ w.service_variant }} --settings=aws celery worker --loglevel=info --queues=edx.{{ w.service_variant }}.core.{{ w.queue }} --hostname=edx.{{ w.service_variant }}.core.{{ w.queue }}.{{ ansible_hostname }} --concurrency={{ w.concurrency }}
killasgroup=true killasgroup=true
stopasgroup=true stopasgroup=true
......
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