Commit 247cdded by Jason Bau

use edxapp instead of individual gunicorn processes

parent e48f5af0
#- hosts: tag_environment_prod:&tag_function_webserver
- hosts: ~tag_Name_app(10|20)_prod
- hosts: ~tag_Name_app(test)_prod
#- hosts: tag_environment_prod:&tag_function_webserver
#- hosts: security_group_edx-prod-EdxappServerSecurityGroup-NSKCQTMZIPQB
sudo: True
......@@ -7,6 +7,8 @@
- "{{ secure_dir }}/vars/edxapp_prod_vars.yml"
- "{{ secure_dir }}/vars/users.yml"
- "{{ secure_dir }}/vars/edxapp_prod_users.yml"
- "{{ secure_dir }}/vars/shib_prod_vars.yml"
vars:
secure_dir: '../../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence)
......@@ -17,5 +19,7 @@
- common
- nginx
- edxapp
- apache
- shibboleth
# run this role last
- in_production
......@@ -6,6 +6,7 @@
- "{{ secure_dir }}/vars/users.yml"
- "{{ secure_dir }}/vars/edxapp_prod_users.yml"
- "{{ secure_dir }}/vars/shib_prod_vars.yml"
vars:
secure_dir: '../../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence)
......
......@@ -34,7 +34,7 @@
- update
- name: Creating env users
user: name={{ item.user }} groups={{ ",".join(item.groups) }} shell=/bin/bash
user: name={{ item.user }} {% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %} shell=/bin/bash
with_items: env_users
when: env_users is defined
tags:
......
......@@ -6,27 +6,9 @@
# - ruby/tasks/main.yml
# - npm/tasks/main.yml
---
- name: Make sure LMS is running
service: name=lms state=started
- name: Make sure edxapp is running
service: name=edxapp state=started
tags:
- lms
- lms-env
- production
- update
- name: Make sure CMS is running
service: name=cms state=started
tags:
- cms
- cms-env
- production
- update
- name: Make sure LMS-preview is running
service: name=lms-preview state=started
tags:
- lms-preview
- lms-preview-env
- production
- update
......
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