-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
128 lines (115 loc) · 1.8 KB
/
deployment.yml
File metadata and controls
128 lines (115 loc) · 1.8 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
- name: Setup forwarding on gateway
hosts: gateway[0]
become: true
roles:
- forwarding
tags:
- forwarding
- name: Setup default route
hosts:
- maria
- monitoring
- runner
- registry
become: true
roles:
- default_gateway
tags:
- default-gateway
- name: Setup pre-requisites
hosts: all
become: true
roles:
- common
tags:
- common
- name: Install docker
hosts: all
become: true
roles:
- docker
tags:
- docker
- name: Bootstrap cluster
hosts: maria[0]
become: true
roles:
- gelara
vars:
bootstrap_cluster: 'yes'
tags:
- bootstrap
- maria
- name: Add masters to cluster
hosts:
- "!maria[0]"
- maria
become: true
roles:
- gelara
tags:
- masters
- maria
- name: Deploy private registry
hosts: registry
become: true
roles:
- registry
tags:
- registry
- ci/cd
- name: Deploy github actions runner
hosts: runner
become: true
roles:
- ansible-github-actions-runner
vars:
gh_runner_config_labels:
- linux
- self-hosted
gh_runner_config_url: "{{ github_url_https }}"
gh_runner_config_token: "{{ runner_token }}"
tags:
- runner
- ci/cd
- name: Install exporters
hosts: all
become: true
roles:
- exporters
tags:
- exporters
- monitoring
- name: Install prometheus
hosts: monitoring
become: true
roles:
- prometheus
tags:
- prometheus
- monitoring
- name: Install grafana
hosts: monitoring
become: true
roles:
- grafana
tags:
- grafana
- monitoring
- name: Deploy lbs
hosts: lb
become: true
roles:
- haproxy
tags:
- haproxy
- name: Deploy emitter instances
hosts: gateway[0]
become: true
roles:
- emitter
vars:
emitter_numbers: 4
tags:
- emitter