configuration
Inside the configuration/playbooks folder, create a new file called koa.yml
The YAML file should look like the following:
Don't forget to set the hosts value, it should be the same as the name you assigned to your instance in the infra/hosts file
1
---
2
​
3
# Open edX Native installation for single server.
4
​
5
- name: Bootstrap instance(s)
6
hosts: YOUR-HOST-NAME #SET-ME
7
gather_facts: no
8
become: True
9
roles:
10
- python
11
​
12
- name: Configure instance(s)
13
hosts: YOUR-HOST-NAME #SET-ME
14
become: True
15
gather_facts: True
16
vars:
17
migrate_db: "yes"
18
EDXAPP_PREVIEW_LMS_BASE: '{{ EDXAPP_LMS_BASE }}'
19
EDXAPP_LOGIN_REDIRECT_WHITELIST: [ "{{ EDXAPP_CMS_BASE }}" ]
20
EDXAPP_LMS_BASE_SCHEME: http
21
EDXAPP_LMS_NGINX_PORT: '80'
22
EDX_PLATFORM_VERSION: 'master'
23
edx_platform_version: "{{ EDX_PLATFORM_VERSION }}"
24
# Set to false if deployed behind another proxy/load balancer.
25
NGINX_SET_X_FORWARDED_HEADERS: True
26
DISCOVERY_URL_ROOT: 'http://localhost:{{ DISCOVERY_NGINX_PORT }}'
27
AWS_GATHER_FACTS: false
28
COMMON_ENABLE_AWS_ROLE: false
29
ecommerce_create_demo_data: true
30
credentials_create_demo_data: true
31
CONFIGURE_JWTS: true
32
SANDBOX_ENABLE_BLOCKSTORE: false
33
SANDBOX_ENABLE_DISCOVERY: false
34
SANDBOX_ENABLE_ECOMMERCE: false
35
SANDBOX_ENABLE_ANALYTICS_API: false
36
SANDBOX_ENABLE_INSIGHTS: false
37
SANDBOX_ENABLE_RABBITMQ: true
38
SANDBOX_ENABLE_NOTES: false
39
DEMO_ROLE_ENABLED: false
40
ECOMMERCE_ENABLE_COMPREHENSIVE_THEMING: false
41
EDXAPP_ENABLE_MEMCACHE: true
42
EDXAPP_ENABLE_ELASTIC_SEARCH: true
43
roles:
44
- role: swapfile
45
SWAPFILE_SIZE: 4GB
46
- role: aws
47
when: COMMON_ENABLE_AWS_ROLE
48
- role: nginx
49
nginx_sites:
50
- certs
51
- cms
52
- lms
53
- forum
54
- xqueue
55
nginx_default_sites:
56
- lms
57
- role: edxlocal
58
when: EDXAPP_MYSQL_HOST == 'localhost'
59
- role: memcache
60
when: EDXAPP_ENABLE_MEMCACHE
61
- role: mongo_3_6
62
when: "'localhost' in EDXAPP_MONGO_HOSTS"
63
- role: rabbitmq
64
rabbitmq_ip: 127.0.0.1
65
when: SANDBOX_ENABLE_RABBITMQ
66
- role: edxapp
67
celery_worker: True
68
- edxapp
69
- role: blockstore
70
when: SANDBOX_ENABLE_BLOCKSTORE
71
- role: ecommerce
72
when: SANDBOX_ENABLE_ECOMMERCE
73
- role: ecomworker
74
ECOMMERCE_WORKER_BROKER_HOST: 127.0.0.1
75
when: SANDBOX_ENABLE_ECOMMERCE
76
- role: analytics_api
77
when: SANDBOX_ENABLE_ANALYTICS_API
78
- role: insights
79
when: SANDBOX_ENABLE_INSIGHTS
80
- role: edx_notes_api
81
when: SANDBOX_ENABLE_NOTES
82
# Run the nginx role to install edx_notes_api config since the app role
83
# currently doesn't do that.
84
- role: nginx
85
nginx_sites:
86
- edx_notes_api
87
when: SANDBOX_ENABLE_NOTES
88
- role: demo
89
when: DEMO_ROLE_ENABLED
90
- oauth_client_setup
91
- oraclejdk
92
- role: elasticsearch
93
when: EDXAPP_ENABLE_ELASTIC_SEARCH
94
- forum
95
- role: discovery
96
when: SANDBOX_ENABLE_DISCOVERY
97
- role: notifier
98
NOTIFIER_DIGEST_TASK_INTERVAL: 5
99
- role: xqueue
100
update_users: True
101
- certs
102
- edx_ansible
103
- role: datadog
104
when: COMMON_ENABLE_DATADOG
105
- role: splunkforwarder
106
when: COMMON_ENABLE_SPLUNKFORWARDER
107
- role: postfix_queue
108
when: POSTFIX_QUEUE_EXTERNAL_SMTP_HOST != ''
109
- role: datadog-uninstall
110
when: not COMMON_ENABLE_DATADOG
111
- role: user_retirement_pipeline
112
when: COMMON_RETIREMENT_SERVICE_SETUP
Copied!
Last modified 4mo ago
Copy link