-
Notifications
You must be signed in to change notification settings - Fork 10
/
site.yml
87 lines (62 loc) · 1.09 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
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
---
# Ansible playbook for setting up the Openconext-Stepup infrastructure
# Run:
# cd Stepup-Deploy
# ansible-playbook -i <environment_directory>/inventory site.yml
- hosts: all
run_once: true
tasks:
- name: Require Ansible 2
assert:
that: ansible_version.major == 2
- name: Configuration for all nodes
hosts: all
become: True
tags: common
serial: 1
roles:
- common
- name: Setup management server
hosts: manage
become: True
tags: manage
serial: 1
roles:
- manage
- name: Setup mariadb database cluster
hosts: dbcluster
become: True
tags: db
serial: 1
roles:
- db
- name: Setup elasticseach cluster
hosts: es
become: True
tags: es
serial: 1
roles:
- es
- name: Setup application servers
hosts: app
become: True
tags: app
serial: 1
roles:
- app
- name: Setup proxy on application servers
hosts: proxy
become: True
tags: proxy
serial: 1
roles:
- proxy
# Add development tooling to app server
# not for production use
- name: Dev tools
hosts: dev
become: True
tags: dev
serial: 1
roles:
- dev