forked from Elvinius/ica0002
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlab13_haproxy.yaml
95 lines (84 loc) · 1.31 KB
/
lab13_haproxy.yaml
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
---
- name: Setup
hosts: all
become: yes
roles:
- init
- name: DNS
hosts: dns_servers
become: yes
roles:
- bind_exporter
- bind
tags: bind
- name: Nginx proxies
hosts: all
roles:
- nginx
- nginx_exporter
become: yes
- name: db servers
hosts: db_servers
become: yes
gather_facts: no
roles:
- mysql
- mysql_exporter
tags: mysql
- name: Configure Prometheus
hosts: prometheus
become: yes
roles:
- prometheus
tags: prometheus
- name: Monitoring and logging
hosts: all
become: yes
gather_facts: no
roles:
- node_exporter
- rsyslog
tags: rsyslog
- name: Influxdb
hosts: influxdb
become: yes
gather_facts: no
roles:
- influxdb
tags: influxdb
# - name: Backup
# hosts: all
# become: yes
# gather_facts: no
# roles:
# - backup
# tags: backup
# - name: Install Grafana
# hosts: grafana
# become: yes
# roles:
# - grafana
# tags: grafana
- name: docker
hosts: all
gather_facts: false
become: yes
roles:
- docker
- agama_docker
tags:
- docker
- name: HAProxy
hosts: haproxy
gather_facts: true
become: yes
roles:
- haproxy
tags: haproxy
- name: Keepalived
hosts: haproxy
gather_facts: true
become: yes
roles:
- keepalived
tags: keepalived