Commit b16bdd4c by Jesse Shapiro

Create stateless playbook

parent 7b48b008
---
# Stateless app server configuration, designed to be used with external mysql,
# mongo, rabbitmq, and elasticsearch services.
- name: Configure instance(s)
hosts: all
become: True
gather_facts: True
vars:
migrate_db: 'yes'
openid_workaround: True
EDXAPP_LMS_NGINX_PORT: '80'
ENABLE_ECOMMERCE: False # Disable ecommerce by default
roles:
# Ensure we have no known security vulnerabilities
- security
# Server setup
- swapfile
# Nginx reverse proxy
- role: nginx
nginx_sites:
- certs
- cms
- lms
- forum
- xqueue
nginx_default_sites:
- lms
# Main EdX application
# https://github.com/edx/edx-platform
- role: edxapp
celery_worker: True
- edxapp
# Discussion forums
# https://github.com/edx/cs_comments_service
- forum
# Notifications service
# https://github.com/edx/notifier
- role: notifier
NOTIFIER_DIGEST_TASK_INTERVAL: '5'
# XQueue interface for communicating with external grader services
# https://github.com/edx/xqueue
- role: xqueue
update_users: True
# Certificate generation
# https://github.com/edx/edx-certificates
- certs
# Email sending
- postfix_queue
# Ecommerce (optional)
# https://github.com/edx/ecommerce
- role: nginx
nginx_sites:
- ecommerce
when: ENABLE_ECOMMERCE
- role: ecommerce
when: ENABLE_ECOMMERCE
- role: ecomworker
when: ENABLE_ECOMMERCE
# memcached
- role: memcache
when: "'localhost' in ' '.join(EDXAPP_MEMCACHE)"
# Optional extras
- role: datadog
when: COMMON_ENABLE_DATADOG
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
- role: newrelic
when: COMMON_ENABLE_NEWRELIC
......@@ -955,6 +955,7 @@ generic_env_config: &edxapp_generic_env
limits: "{{ EDXAPP_CODE_JAIL_LIMITS }}"
user: '{{ edxapp_sandbox_user }}'
AFFILIATE_COOKIE_NAME: "{{ EDXAPP_AFFILIATE_COOKIE_NAME }}"
ELASTIC_SEARCH_CONFIG: "{{ EDXAPP_ELASTIC_SEARCH_CONFIG }}"
lms_auth_config:
<<: *edxapp_generic_auth
......@@ -1017,7 +1018,6 @@ lms_env_config:
LTI_AGGREGATE_SCORE_PASSBACK_DELAY: "{{ EDXAPP_LTI_AGGREGATE_SCORE_PASSBACK_DELAY }}"
PROCTORING_SETTINGS: "{{ EDXAPP_PROCTORING_SETTINGS }}"
CREDIT_HELP_LINK_URL: "{{ EDXAPP_CREDIT_HELP_LINK_URL }}"
ELASTIC_SEARCH_CONFIG: "{{ EDXAPP_ELASTIC_SEARCH_CONFIG }}"
MAILCHIMP_NEW_USER_LIST_ID: "{{ EDXAPP_MAILCHIMP_NEW_USER_LIST_ID }}"
CONTACT_MAILING_ADDRESS: "{{ EDXAPP_CONTACT_MAILING_ADDRESS }}"
AUDIT_CERT_CUTOFF_DATE: "{{ EDXAPP_AUDIT_CERT_CUTOFF_DATE }}"
......
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