-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhosts
More file actions
executable file
·294 lines (242 loc) · 6.2 KB
/
hosts
File metadata and controls
executable file
·294 lines (242 loc) · 6.2 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
# This is the default ansible 'hosts' file.
#t
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
# Ex 1: Ungrouped hosts, specify before any group headers.
## green.example.com
## blue.example.com
## 192.168.100.1
## 192.168.100.10
# Ex 2: A collection of hosts belonging to the 'webservers' group
## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
## www[001:006].example.com
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
## db-[99:101]-node.example.com
[all_servers]
; 192.168.1.100 # freeipa1
; 192.168.1.101 # freeipa2
; 192.168.1.102 # nexus
; 192.168.1.103 # vault1
; 192.168.1.104 # vault2
; 192.168.1.105 # vault3
; 192.168.1.106 # gitlab
; 192.168.1.107 # gitlab-runner
; 192.168.1.108 # nfs
; 192.168.1.109 # gluster-fs1
; 192.168.1.110 # gluster-fs2
; 192.168.1.112 # kub-master1
; 192.168.1.113 # kub-master2
; 192.168.1.114 # kub-master3
; 192.168.1.115 # kub-worker1
; 192.168.1.116 # kub-worker2
; 192.168.1.117 # kub-worker3
; 192.168.1.118 # s3-minio1
; 192.168.1.119 # s3-minio2
; 192.168.1.121
; 192.168.1.122
; 192.168.1.123
; 192.168.1.124
; 192.168.1.125
; 192.168.1.126
; 192.168.1.127
; 192.168.1.128 # rancher
; 192.168.1.150
; 192.168.1.151
; 192.168.1.152 # patrony1
; 192.168.1.153 # patrony2
; 192.168.1.154 # patrony3
[NOproxy]
# localhost
# 127.0.0.1
# 192.168.1.190
[docker-doc-compose]
192.168.1.103
192.168.1.104
192.168.1.105
192.168.1.150
192.168.1.151
192.168.1.118
192.168.1.119
192.168.1.100
192.168.1.101
192.168.1.108
[swarm:children]
swarmmaster
swarmworker
[swarmmaster]
[swarmworker]
[swarmNOproxy]
[ceph:children]
cephmaster
cephclient
[cephmaster]
192.168.1.201
192.168.1.202
192.168.1.203
[cephclient]
192.168.1.201
192.168.1.202
192.168.1.203
[kubernetes:children]
kubermaster
kuberworker
[kubermaster]
[kuberworker]
[minikub]
[web-server-LAMP:children]
nginx
apache
mysql
[nginx]
[apache]
[mysql]
[patronicluster:children]
etcd
patroni
[etcd]
etcd1 ansible_host=192.168.1.152
etcd2 ansible_host=192.168.1.153
etcd3 ansible_host=192.168.1.154
[patroni]
db1 ansible_host=192.168.1.152
db2 ansible_host=192.168.1.153
# db3 ansible_host=10.0.0.13 # если добавите ещё реплики
[databases]
192.168.1.201
[gitlab:children]
gitlab-server
gitlab-runner
[gitlab-server]
gitlab.test.local ansible_host=192.168.1.106
[gitlab-runner]
gitlab-runner.test.local ansible_host=192.168.1.107
[vault]
vault1.test.local ansible_host=192.168.1.103
vault2.test.local ansible_host=192.168.1.104
vault3.test.local ansible_host=192.168.1.105
[vault:vars]
virtual_hostname=vault.test.local
virtual_address=192.168.1.111
[freeipa:children]
ipa_servers
ipa_replicas
ipa_clients
[ipa_servers]
freeipa-1.test.local ansible_host=192.168.1.100
[ipa_replicas]
freeipa-2.test.local ansible_host=192.168.1.101
[ipa_clients]
nexus.test.local ansible_host=192.168.1.102
vault1.test.local ansible_host=192.168.1.103
vault2.test.local ansible_host=192.168.1.104
vault3.test.local ansible_host=192.168.1.105
gitlab.test.local ansible_host=192.168.1.106
gitlab-runner.test.local ansible_host=192.168.1.107
nfs.test.local ansible_host=192.168.1.108
gluster-fs1.test.local ansible_host=192.168.1.109
gluster-fs2.test.local ansible_host=192.168.1.110
kub-master1.test.local ansible_host=192.168.1.112
kub-master2.test.local ansible_host=192.168.1.113
kub-master3.test.local ansible_host=192.168.1.114
kub-worker1.test.local ansible_host=192.168.1.115
kub-worker2.test.local ansible_host=192.168.1.116
kub-worker3.test.local ansible_host=192.168.1.117
s3-minio-1.test.local ansible_host=192.168.1.118
s3-minio-2.test.local ansible_host=192.168.1.119
#seaweedfs-master1.test.local ansible_host=192.168.1.121
#seaweedfs-master2.test.local ansible_host=192.168.1.122
#seaweedfs-master3.test.local ansible_host=192.168.1.123
#seaweedfs-filer1.test.local ansible_host=192.168.1.124
#seaweedfs-filer2.test.local ansible_host=192.168.1.125
#seaweedfs-volume1.test.local ansible_host=192.168.1.126
#seaweedfs-volume2.test.local ansible_host=192.168.1.127
[nexus:children]
nexus_server
nexus_clients
[nexus_server]
nexus.test.local ansible_host=192.168.1.102
[nexus_clients]
freeipa-1.test.local ansible_host=192.168.1.100
freeipa-2.test.local ansible_host=192.168.1.101
vault1.test.local ansible_host=192.168.1.103
vault2.test.local ansible_host=192.168.1.104
vault3.test.local ansible_host=192.168.1.105
gitlab.test.local ansible_host=192.168.1.106
gitlab-runner.test.local ansible_host=192.168.1.107
nfs.test.local ansible_host=192.168.1.108
gluster-fs1.test.local ansible_host=192.168.1.109
gluster-fs2.test.local ansible_host=192.168.1.110
kub-master1.test.local ansible_host=192.168.1.112
kub-master2.test.local ansible_host=192.168.1.113
kub-master3.test.local ansible_host=192.168.1.114
kub-worker1.test.local ansible_host=192.168.1.115
kub-worker2.test.local ansible_host=192.168.1.116
kub-worker3.test.local ansible_host=192.168.1.117
[nfs:children]
nfsmaster
nfsclient
[nfsmaster]
nfs.test.local ansible_host=192.168.1.108
[nfsclient]
192.168.1.100
192.168.1.101
192.168.1.112
192.168.1.113
192.168.1.114
192.168.1.115
192.168.1.116
192.168.1.117
[glusterfs:children]
glustermaster
glusterclient
[glustermaster]
gluster-fs1.test.local ansible_host=192.168.1.109
gluster-fs2.test.local ansible_host=192.168.1.110
[glusterclient]
192.168.1.100
192.168.1.101
192.168.1.112
192.168.1.113
192.168.1.114
192.168.1.115
192.168.1.116
192.168.1.117
[minio]
s3-minio-1.test.local ansible_host=192.168.1.118
s3-minio-2.test.local ansible_host=192.168.1.119
[minio:vars]
virtual_address=192.168.1.120
[seaweed:children]
seaweed_master
seaweed_filer
seaweed_volume
[seaweed_master]
192.168.1.121
192.168.1.122
192.168.1.123
[seaweed_filer]
192.168.1.124
192.168.1.125
[seaweed_volume]
192.168.1.126
192.168.1.127