forked from openedx-unsupported/configuration
-
Notifications
You must be signed in to change notification settings - Fork 2
/
analytics_single.yml
49 lines (46 loc) · 1.25 KB
/
analytics_single.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
---
# Open edX Native installation for single server analytics installs.
- name: Bootstrap instance(s)
hosts: all
gather_facts: no
become: True
roles:
- python
- name: Deploy all analytics services to a single node
hosts: all
become: True
gather_facts: True
vars:
migrate_db: "yes"
disable_edx_services: false
ENABLE_DATADOG: False
ENABLE_NEWRELIC: False
SANDBOX_ENABLE_ANALYTICS_API: True
SANDBOX_ENABLE_ANALYTICS_PIPELINE: True
SANDBOX_ENABLE_INSIGHTS: True
EDXAPP_MYSQL_HOST: ''
EDXAPP_MEMCACHE: ''
POSTFIX_QUEUE_EXTERNAL_SMTP_HOST: ''
roles:
- role: aws
when: COMMON_ENABLE_AWS_ROLE
- role: edxlocal
when: EDXAPP_MYSQL_HOST == 'localhost'
- role: memcache
when: "'localhost' in ' '.join(EDXAPP_MEMCACHE)"
- role: nginx
nginx_sites:
- analytics_api
when: SANDBOX_ENABLE_ANALYTICS_API
- role: analytics_api
when: SANDBOX_ENABLE_ANALYTICS_API
- role: analytics_pipeline
when: SANDBOX_ENABLE_ANALYTICS_PIPELINE
- role: nginx
nginx_sites:
- insights
when: SANDBOX_ENABLE_INSIGHTS
- role: insights
when: SANDBOX_ENABLE_INSIGHTS
- role: postfix_queue
when: POSTFIX_QUEUE_EXTERNAL_SMTP_HOST != ''