forked from openedx-unsupported/configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openedx_native.yml
104 lines (101 loc) · 2.88 KB
/
openedx_native.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# Open edX Native installation for single server community installs.
- name: Bootstrap instance(s)
hosts: all
gather_facts: no
become: True
roles:
- python
- name: Configure instance(s)
hosts: all
become: True
gather_facts: True
vars:
migrate_db: "yes"
EDXAPP_PREVIEW_LMS_BASE: '{{ EDXAPP_LMS_BASE }}'
EDXAPP_LOGIN_REDIRECT_WHITELIST: [ "{{ EDXAPP_CMS_BASE }}" ]
EDXAPP_LMS_BASE_SCHEME: http
EDXAPP_LMS_NGINX_PORT: '80'
edx_platform_version: 'master'
# Set to false if deployed behind another proxy/load balancer.
NGINX_SET_X_FORWARDED_HEADERS: True
DISCOVERY_URL_ROOT: 'http://localhost:{{ DISCOVERY_NGINX_PORT }}'
COMMON_ENABLE_AWS_ROLE: false
ecommerce_create_demo_data: true
credentials_create_demo_data: true
SANDBOX_ENABLE_BLOCKSTORE: false
SANDBOX_ENABLE_DISCOVERY: true
SANDBOX_ENABLE_ECOMMERCE: true
SANDBOX_ENABLE_ANALYTICS_API: true
SANDBOX_ENABLE_INSIGHTS: true
SANDBOX_ENABLE_RABBITMQ: true
SANDBOX_ENABLE_NOTES: false
DEMO_ROLE_ENABLED: true
roles:
- role: swapfile
SWAPFILE_SIZE: 4GB
- role: aws
when: COMMON_ENABLE_AWS_ROLE
- role: nginx
nginx_sites:
- certs
- cms
- lms
- forum
- xqueue
nginx_default_sites:
- lms
- role: edxlocal
when: EDXAPP_MYSQL_HOST == 'localhost'
- role: memcache
when: "'localhost' in ' '.join(EDXAPP_MEMCACHE)"
- role: mongo_3_2
when: "'localhost' in EDXAPP_MONGO_HOSTS"
- role: rabbitmq
rabbitmq_ip: 127.0.0.1
when: SANDBOX_ENABLE_RABBITMQ
- role: edxapp
celery_worker: True
- edxapp
- role: blockstore
when: SANDBOX_ENABLE_BLOCKSTORE
- role: ecommerce
when: SANDBOX_ENABLE_ECOMMERCE
- role: ecomworker
ECOMMERCE_WORKER_BROKER_HOST: 127.0.0.1
when: SANDBOX_ENABLE_ECOMMERCE
- role: analytics_api
when: SANDBOX_ENABLE_ANALYTICS_API
- role: insights
when: SANDBOX_ENABLE_INSIGHTS
- role: edx_notes_api
when: SANDBOX_ENABLE_NOTES
# Run the nginx role to install edx_notes_api config since the app role
# currently doesn't do that.
- role: nginx
nginx_sites:
- edx_notes_api
when: SANDBOX_ENABLE_NOTES
- role: demo
when: DEMO_ROLE_ENABLED
- oauth_client_setup
- oraclejdk
- role: elasticsearch
when: "'localhost' in EDXAPP_ELASTIC_SEARCH_CONFIG|map(attribute='host')"
- forum
- role: discovery
when: SANDBOX_ENABLE_DISCOVERY
- role: notifier
NOTIFIER_DIGEST_TASK_INTERVAL: 5
- role: xqueue
update_users: True
- certs
- edx_ansible
- role: datadog
when: COMMON_ENABLE_DATADOG
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
- role: postfix_queue
when: POSTFIX_QUEUE_EXTERNAL_SMTP_HOST != ''
- role: datadog-uninstall
when: not COMMON_ENABLE_DATADOG