Commit e73fe63a by Omar Khan Committed by Feanil Patel

Add playbook for stateless edX instances

parent 5d2bc290
---
# Stateless app server configuration, designed to be used with external mysql,
# mongo, rabbitmq, and elasticsearch services.
- name: Configure instance(s)
hosts: all
sudo: True
gather_facts: True
vars:
migrate_db: 'yes'
openid_workaround: True
EDXAPP_LMS_NGINX_PORT: '80'
SANDBOX_ENABLE_ECOMMERCE: False # Disable ecommerce by default
roles:
# 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
# Ecommerce (optional)
# https://github.com/edx/ecommerce
- role: nginx
nginx_sites:
- ecommerce
when: SANDBOX_ENABLE_ECOMMERCE
- role: ecommerce
when: SANDBOX_ENABLE_ECOMMERCE
- role: ecomworker
when: SANDBOX_ENABLE_ECOMMERCE
# Optional extras
- role: datadog
when: COMMON_ENABLE_DATADOG
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
- role: newrelic
when: COMMON_ENABLE_NEWRELIC
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