-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoae.yml
70 lines (63 loc) · 2.28 KB
/
oae.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
- hosts: experimental-db
vars:
- production: false
- cassandra_hosts: "{{ groups['experimental-db'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | list }}"
roles:
- cassandra
tags:
- cassandra
- hosts: experimental-etherpad
vars:
- redis_host: "{{ groups['experimental-cache'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | list | random }}"
- cassandra_hosts: "{{ groups['experimental-db'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | list }}"
roles:
- node
- etherpad
tags:
- etherpad
- hosts: experimental-ethercalc
vars:
- redis_host: "{{ groups['experimental-cache'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | list | random }}"
roles:
- node
- ethercalc
tags:
- ethercalc
- hosts: experimental-cache
vars:
- production: false
roles:
- redis
tags:
- redis
- hosts: experimental-search
vars:
- production: false
roles:
- elasticsearch
tags:
- elasticsearch
- hosts: experimental-app
vars:
- search_hosts: "{{ groups['experimental-search'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | wrap | elastic_config | join(', ')}}"
- redis_hosts: "{{ groups['experimental-cache'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | wrap | join(',') }}"
- cassandra_hosts: "{{ groups['experimental-db'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | wrap | join(',') }}"
- nginx_host: "{{ groups['experimental-web'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | list | random }}"
- etherpad_hosts: "{{ groups['experimental-etherpad'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | wrap | etherpadify | join(', ')}}"
- ethercalc_hosts: "{{ groups['experimental-ethercalc'] | map('extract', hostvars, ['ansible_default_ipv4', 'address']) | wrap | ethercalcify | join(', ')}}"
roles:
- node
- hilary_setup
tags:
- app
remote_user: oae
- hosts: experimental-web
vars:
- create_cert: true
- hilary_hosts: "{{ groups['experimental-app'] }}"
- etherpad_hosts: "{{ groups['experimental-etherpad'] }}"
- ethercalc_hosts: "{{ groups['experimental-ethercalc'] }}"
roles:
- nginx
tags:
- nginx