blob: 25237905bca9ab94caa4fb2042670b676b1303c3 [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001---
2aliases:
3 dynamic_addresses_pool:
4 - &pool_default !os_env POOL_DEFAULT, 172.16.10.0/24:24
5
6 default_interface_model:
7 - &interface_model !os_env INTERFACE_MODEL, virtio
8
9template:
10 devops_settings:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030011 env_name: !os_env ENV_NAME, tcpcloud-mk22
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030012
13 address_pools:
14 public-pool01:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030015 net: 172.16.10.0/24:24
16 params:
17 ip_reserved:
18 gateway: +1
19 l2_network_device: +1
20 ip_ranges:
21 dhcp: [+100, -2]
22
23 private-pool01:
24 net: 192.168.10.0/24:24
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030025 params:
26 ip_reserved:
27 gateway: +1
28 l2_network_device: +1
29 ip_ranges:
Dennis Dmitriev44d6f142016-10-18 15:51:33 +030030 dhcp: [+100, -2]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030031
32 groups:
33 - name: default
34 driver:
35 name: devops.driver.libvirt
36 params:
37 connection_string: !os_env CONNECTION_STRING, qemu:///system
38 storage_pool_name: !os_env STORAGE_POOL_NAME, default
39 stp: False
40 hpet: False
41 enable_acpi: true
42 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
43
44 network_pools:
45 public: public-pool01
Dennis Dmitriev45738b92016-10-20 18:11:15 +030046 private: private-pool01
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030047
48 l2_network_devices:
49 public:
50 address_pool: public-pool01
51 dhcp: true
52 forward:
53 mode: nat
54
55 private:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030056 address_pool: private-pool01
57 dhcp: true
58 forward:
59 mode: nat
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030060
61 group_volumes:
62 - name: cloudimage # This name is used for 'backing_store' option for node volumes.
63 source_image: !os_env IMAGE_PATH # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
64 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
65 format: qcow2
66
67 nodes:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030068 - name: cfg01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +030069 role: salt_master
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030070 params:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030071 vcpu: !os_env SLAVE_NODE_CPU, 4
72 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030073 boot:
74 - hd
75 cloud_init_volume_name: iso
76 cloud_init_iface_up: eth0
77 volumes:
78 - name: system
79 capacity: !os_env NODE_VOLUME_SIZE, 150
80 backing_store: cloudimage
81 format: qcow2
82 - name: iso # Volume with name 'iso' will be used
83 # for store image with cloud-init metadata.
84 capacity: 1
85 format: raw
86 device: cdrom
87 bus: ide
88 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
89 cloudinit_user_data: !include tcpcloud--user-data-master-node.yaml
90
91 interfaces:
92 - label: eth0
93 l2_network_device: public
94 interface_model: *interface_model
95 - label: eth1
96 l2_network_device: private
97 interface_model: *interface_model
98 network_config:
99 eth0: # Will get an IP from DHCP public-pool01
100 networks:
101 - public
102 eth1:
103 networks:
104 - private
105
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300106 - name: ctl01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300107 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300108 params:
109 vcpu: !os_env SLAVE_NODE_CPU, 4
110 memory: !os_env SLAVE_NODE_MEMORY, 12400
111 boot:
112 - hd
113 cloud_init_volume_name: iso
114 cloud_init_iface_up: eth0
115 volumes:
116 - name: system
117 capacity: !os_env NODE_VOLUME_SIZE, 150
118 backing_store: cloudimage
119 format: qcow2
120 - name: iso # Volume with name 'iso' will be used
121 # for store image with cloud-init metadata.
122 capacity: 1
123 format: raw
124 device: cdrom
125 bus: ide
126 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
127 cloudinit_user_data: !include tcpcloud--user-data.yaml
128
129 interfaces:
130 - label: eth0
131 l2_network_device: public
132 interface_model: *interface_model
133 - label: eth1
134 l2_network_device: private
135 interface_model: *interface_model
136 network_config:
137 eth0: # Will get an IP from DHCP public-pool01
138 networks:
139 - public
140 eth1:
141 networks:
142 - private
143
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300144 - name: ctl02.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300145 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300146 params:
147 vcpu: !os_env SLAVE_NODE_CPU, 4
148 memory: !os_env SLAVE_NODE_MEMORY, 12400
149 boot:
150 - hd
151 cloud_init_volume_name: iso
152 cloud_init_iface_up: eth0
153 volumes:
154 - name: system
155 capacity: !os_env NODE_VOLUME_SIZE, 150
156 backing_store: cloudimage
157 format: qcow2
158 - name: iso # Volume with name 'iso' will be used
159 # for store image with cloud-init metadata.
160 capacity: 1
161 format: raw
162 device: cdrom
163 bus: ide
164 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
165 cloudinit_user_data: !include tcpcloud--user-data.yaml
166
167 interfaces:
168 - label: eth0
169 l2_network_device: public
170 interface_model: *interface_model
171 - label: eth1
172 l2_network_device: private
173 interface_model: *interface_model
174 network_config:
175 eth0: # Will get an IP from DHCP public-pool01
176 networks:
177 - public
178 eth1:
179 networks:
180 - private
181
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300182 - name: ctl03.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300183 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300184 params:
185 vcpu: !os_env SLAVE_NODE_CPU, 4
186 memory: !os_env SLAVE_NODE_MEMORY, 12400
187 boot:
188 - hd
189 cloud_init_volume_name: iso
190 cloud_init_iface_up: eth0
191 volumes:
192 - name: system
193 capacity: !os_env NODE_VOLUME_SIZE, 150
194 backing_store: cloudimage
195 format: qcow2
196 - name: iso # Volume with name 'iso' will be used
197 # for store image with cloud-init metadata.
198 capacity: 1
199 format: raw
200 device: cdrom
201 bus: ide
202 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
203 cloudinit_user_data: !include tcpcloud--user-data.yaml
204
205 interfaces:
206 - label: eth0
207 l2_network_device: public
208 interface_model: *interface_model
209 - label: eth1
210 l2_network_device: private
211 interface_model: *interface_model
212 network_config:
213 eth0: # Will get an IP from DHCP public-pool01
214 networks:
215 - public
216 eth1:
217 networks:
218 - private
219
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300220 - name: web01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300221 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300222 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300223 vcpu: !os_env SLAVE_NODE_CPU, 1
224 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300225 boot:
226 - hd
227 cloud_init_volume_name: iso
228 cloud_init_iface_up: eth0
229 volumes:
230 - name: system
231 capacity: !os_env NODE_VOLUME_SIZE, 150
232 backing_store: cloudimage
233 format: qcow2
234 - name: iso # Volume with name 'iso' will be used
235 # for store image with cloud-init metadata.
236 capacity: 1
237 format: raw
238 device: cdrom
239 bus: ide
240 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
241 cloudinit_user_data: !include tcpcloud--user-data.yaml
242
243 interfaces:
244 - label: eth0
245 l2_network_device: public
246 interface_model: *interface_model
247 - label: eth1
248 l2_network_device: private
249 interface_model: *interface_model
250 network_config:
251 eth0: # Will get an IP from DHCP public-pool01
252 networks:
253 - public
254 eth1:
255 networks:
256 - private
257
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300258 - name: cmp01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300259 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300260 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300261 vcpu: !os_env SLAVE_NODE_CPU, 4
262 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300263 boot:
264 - hd
265 cloud_init_volume_name: iso
266 cloud_init_iface_up: eth0
267 volumes:
268 - name: system
269 capacity: !os_env NODE_VOLUME_SIZE, 150
270 backing_store: cloudimage
271 format: qcow2
272 - name: iso # Volume with name 'iso' will be used
273 # for store image with cloud-init metadata.
274 capacity: 1
275 format: raw
276 device: cdrom
277 bus: ide
278 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
279 cloudinit_user_data: !include tcpcloud--user-data.yaml
280
281 interfaces:
282 - label: eth0
283 l2_network_device: public
284 interface_model: *interface_model
285 - label: eth1
286 l2_network_device: private
287 interface_model: *interface_model
288 network_config:
289 eth0: # Will get an IP from DHCP public-pool01
290 networks:
291 - public
292 eth1:
293 networks:
294 - private
295
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300296 - name: mtr01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300297 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300298 params:
299 vcpu: !os_env SLAVE_NODE_CPU, 1
300 memory: !os_env SLAVE_NODE_MEMORY, 2048
301 boot:
302 - hd
303 cloud_init_volume_name: iso
304 cloud_init_iface_up: eth0
305 volumes:
306 - name: system
307 capacity: !os_env NODE_VOLUME_SIZE, 150
308 backing_store: cloudimage
309 format: qcow2
310 - name: iso # Volume with name 'iso' will be used
311 # for store image with cloud-init metadata.
312 capacity: 1
313 format: raw
314 device: cdrom
315 bus: ide
316 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
317 cloudinit_user_data: !include tcpcloud--user-data.yaml
318
319 interfaces:
320 - label: eth0
321 l2_network_device: public
322 interface_model: *interface_model
323 - label: eth1
324 l2_network_device: private
325 interface_model: *interface_model
326 network_config:
327 eth0: # Will get an IP from DHCP public-pool01
328 networks:
329 - public
330 eth1:
331 networks:
332 - private
Dennis Dmitriev45738b92016-10-20 18:11:15 +0300333
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300334 - name: mon01.mk22-lab-advanced.local
Dennis Dmitriev45738b92016-10-20 18:11:15 +0300335 role: salt_minion
336 params:
337 vcpu: !os_env SLAVE_NODE_CPU, 1
338 memory: !os_env SLAVE_NODE_MEMORY, 2048
339 boot:
340 - hd
341 cloud_init_volume_name: iso
342 cloud_init_iface_up: eth0
343 volumes:
344 - name: system
345 capacity: !os_env NODE_VOLUME_SIZE, 150
346 backing_store: cloudimage
347 format: qcow2
348 - name: iso # Volume with name 'iso' will be used
349 # for store image with cloud-init metadata.
350 capacity: 1
351 format: raw
352 device: cdrom
353 bus: ide
354 cloudinit_meta_data: !include tcpcloud--meta-data.yaml
355 cloudinit_user_data: !include tcpcloud--user-data.yaml
356
357 interfaces:
358 - label: eth0
359 l2_network_device: public
360 interface_model: *interface_model
361 - label: eth1
362 l2_network_device: private
363 interface_model: *interface_model
364 network_config:
365 eth0: # Will get an IP from DHCP public-pool01
366 networks:
367 - public
368 eth1:
369 networks:
370 - private