forked from RayCrafter/ansible-raycrafter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
60 lines (56 loc) · 1.36 KB
/
site.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
---
- name: Common base role
hosts: all
sudo: yes
sudo_user: root
remote_user: vagrant
vars_files:
- env_vars/secret.yml
- env_vars/base.yml
roles:
- base
- name: Create RayCrafter master server
hosts: masterservers
sudo: yes
sudo_user: root
remote_user: vagrant
vars_files:
- env_vars/secret.yml
- env_vars/base.yml
- env_vars/masterserver.yml
roles:
- supervisor
- jdauphant.ssl-certs
- jdauphant.nginx
- f500.elasticsearch
- graylog2.graylog
- db
- rabbitmq
- gunicorn
- web
- graylog
# Add masterservers to hosts but disable all roles
# This is necessary for gathering facts
# So we can set the right hostname for rabbitmq and the db
- name: Create RayCrafter crafter node
hosts: [crafternodes, masterservers]
sudo: yes
sudo_user: root
remote_user: vagrant
vars_files:
- env_vars/secret.yml
- env_vars/base.yml
- env_vars/crafternode.yml
roles:
- {role: supervisor, when: "'crafternodes' in group_names"}
- {role: web, when: "'crafternodes' in group_names"}
- {role: celery, when: "'crafternodes' in group_names"}
- {role: graylog, when: "'crafternodes' in group_names"}
- {role: gridftp, when: "'crafternodes' in groubp_names"}
- name: Setup raycrafter at the HLRS
hosts: hlrs
sudo: no
vars_files:
- env_vars/hlrs.yml
roles:
- hlrsvenv