blob: 2e5ceaae860ed890fd525c93c2d306b7cfdedb89 [file] [log] [blame]
Dennis Dmitriev47433912018-03-25 04:24:59 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
3
4{% import 'cookied-mcp-pike-dvr-ssl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7
8---
9aliases:
10 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
11 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
12 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
13 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
14
15{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-pike-dvr-ssl') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
17{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
23{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
26{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
28
29template:
30 devops_settings:
31 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ssl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
32
33 address_pools:
34 private-pool01:
35 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
36 params:
37 ip_reserved:
38 gateway: +1
39 l2_network_device: +1
40 default_{{ HOSTNAME_CFG01 }}: +100
41 default_{{ HOSTNAME_CTL01 }}: +101
42 default_{{ HOSTNAME_CTL02 }}: +102
43 default_{{ HOSTNAME_CTL03 }}: +103
44 default_{{ HOSTNAME_CMP01 }}: +105
45 default_{{ HOSTNAME_CMP02 }}: +106
46 default_{{ HOSTNAME_MON01 }}: +107
47 default_{{ HOSTNAME_MON02 }}: +108
48 default_{{ HOSTNAME_MON03 }}: +109
49 default_{{ HOSTNAME_GTW01 }}: +110
50 default_{{ HOSTNAME_PRX01 }}: +121
51 ip_ranges:
52 dhcp: [+90, -10]
53
54 admin-pool01:
55 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
56 params:
57 ip_reserved:
58 gateway: +1
59 l2_network_device: +1
60 default_{{ HOSTNAME_CFG01 }}: +90
61 default_{{ HOSTNAME_CTL01 }}: +101
62 default_{{ HOSTNAME_CTL02 }}: +102
63 default_{{ HOSTNAME_CTL03 }}: +103
64 default_{{ HOSTNAME_CMP01 }}: +105
65 default_{{ HOSTNAME_CMP02 }}: +106
66 default_{{ HOSTNAME_MON01 }}: +107
67 default_{{ HOSTNAME_MON02 }}: +108
68 default_{{ HOSTNAME_MON03 }}: +109
69 default_{{ HOSTNAME_GTW01 }}: +110
70 default_{{ HOSTNAME_PRX01 }}: +121
71 ip_ranges:
72 dhcp: [+90, -10]
73
74 tenant-pool01:
75 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
76 params:
77 ip_reserved:
78 gateway: +1
79 l2_network_device: +1
80 default_{{ HOSTNAME_CFG01 }}: +100
81 default_{{ HOSTNAME_CTL01 }}: +101
82 default_{{ HOSTNAME_CTL02 }}: +102
83 default_{{ HOSTNAME_CTL03 }}: +103
84 default_{{ HOSTNAME_CMP01 }}: +105
85 default_{{ HOSTNAME_CMP02 }}: +106
86 default_{{ HOSTNAME_MON01 }}: +107
87 default_{{ HOSTNAME_MON02 }}: +108
88 default_{{ HOSTNAME_MON03 }}: +109
89 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
91 ip_ranges:
92 dhcp: [+10, -10]
93
94 external-pool01:
95 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
96 params:
97 ip_reserved:
98 gateway: +1
99 l2_network_device: +1
100 default_{{ HOSTNAME_CFG01 }}: +100
101 default_{{ HOSTNAME_CTL01 }}: +101
102 default_{{ HOSTNAME_CTL02 }}: +102
103 default_{{ HOSTNAME_CTL03 }}: +103
104 default_{{ HOSTNAME_CMP01 }}: +105
105 default_{{ HOSTNAME_CMP02 }}: +106
106 default_{{ HOSTNAME_MON01 }}: +107
107 default_{{ HOSTNAME_MON02 }}: +108
108 default_{{ HOSTNAME_MON03 }}: +109
109 default_{{ HOSTNAME_GTW01 }}: +110
110 default_{{ HOSTNAME_PRX01 }}: +121
111 ip_ranges:
112 dhcp: [+10, -10]
113
114
115 groups:
116 - name: default
117 driver:
118 name: devops.driver.libvirt
119 params:
120 connection_string: !os_env CONNECTION_STRING, qemu:///system
121 storage_pool_name: !os_env STORAGE_POOL_NAME, default
122 stp: False
123 hpet: False
124 enable_acpi: true
125 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
126 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
127
128 network_pools:
129 admin: admin-pool01
130 private: private-pool01
131 tenant: tenant-pool01
132 external: external-pool01
133
134 l2_network_devices:
135 private:
136 address_pool: private-pool01
137 dhcp: false
138 forward:
139 mode: route
140
141 admin:
142 address_pool: admin-pool01
143 dhcp: true
144 forward:
145 mode: nat
146
147 tenant:
148 address_pool: tenant-pool01
149 dhcp: false
150
151 external:
152 address_pool: external-pool01
153 dhcp: true
154 forward:
Dennis Dmitriev2cb23932018-05-01 01:47:34 +0300155 mode: route
Dennis Dmitriev47433912018-03-25 04:24:59 +0300156
157
158 group_volumes:
159 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
160 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
161 format: qcow2
162 - name: cfg01_day01_image # Pre-configured day01 image
163 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
164 format: qcow2
165 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
166 source_image: !os_env MCP_IMAGE_PATH1604
167 format: qcow2
168
169 nodes:
170 - name: {{ HOSTNAME_CFG01 }}
171 role: salt_master
172 params:
173 vcpu: !os_env SLAVE_NODE_CPU, 2
174 memory: !os_env SLAVE_NODE_MEMORY, 8192
175 boot:
176 - hd
177 cloud_init_volume_name: iso
178 cloud_init_iface_up: ens3
179 volumes:
180 - name: system
181 capacity: !os_env NODE_VOLUME_SIZE, 150
182 backing_store: cfg01_day01_image
183 format: qcow2
184 - name: iso # Volume with name 'iso' will be used
185 # for store image with cloud-init metadata.
186 capacity: 1
187 format: raw
188 device: cdrom
189 bus: ide
190 cloudinit_meta_data: *cloudinit_meta_data
191 cloudinit_user_data: *cloudinit_user_data_cfg01
192
193 interfaces:
194 - label: ens3
195 l2_network_device: admin
196 interface_model: *interface_model
197 - label: ens4
198 l2_network_device: private
199 interface_model: *interface_model
200 network_config:
201 ens3:
202 networks:
203 - admin
204 ens4:
205 networks:
206 - private
207
208 - name: {{ HOSTNAME_CTL01 }}
209 role: salt_minion
210 params:
211 vcpu: !os_env SLAVE_NODE_CPU, 2
212 memory: !os_env SLAVE_NODE_MEMORY, 16384
213 boot:
214 - hd
215 cloud_init_volume_name: iso
216 cloud_init_iface_up: ens3
217 volumes:
218 - name: system
219 capacity: !os_env NODE_VOLUME_SIZE, 150
220 backing_store: mcp_ubuntu_1604_image
221 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300222 - name: iso # Volume with name 'iso' will be used
223 # for store image with cloud-init metadata.
224 capacity: 1
225 format: raw
226 device: cdrom
227 bus: ide
228 cloudinit_meta_data: *cloudinit_meta_data
229 cloudinit_user_data: *cloudinit_user_data_1604
230
231 interfaces: &interfaces
232 - label: ens3
233 l2_network_device: admin
234 interface_model: *interface_model
235 - label: ens4
236 l2_network_device: private
237 interface_model: *interface_model
238 network_config: &network_config
239 ens3:
240 networks:
241 - admin
242 ens4:
243 networks:
244 - private
245
246 - name: {{ HOSTNAME_CTL02 }}
247 role: salt_minion
248 params:
249 vcpu: !os_env SLAVE_NODE_CPU, 2
250 memory: !os_env SLAVE_NODE_MEMORY, 16384
251 boot:
252 - hd
253 cloud_init_volume_name: iso
254 cloud_init_iface_up: ens3
255 volumes:
256 - name: system
257 capacity: !os_env NODE_VOLUME_SIZE, 150
258 backing_store: mcp_ubuntu_1604_image
259 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300260 - name: iso # Volume with name 'iso' will be used
261 # for store image with cloud-init metadata.
262 capacity: 1
263 format: raw
264 device: cdrom
265 bus: ide
266 cloudinit_meta_data: *cloudinit_meta_data
267 cloudinit_user_data: *cloudinit_user_data_1604
268
269 interfaces: *interfaces
270 network_config: *network_config
271
272 - name: {{ HOSTNAME_CTL03 }}
273 role: salt_minion
274 params:
275 vcpu: !os_env SLAVE_NODE_CPU, 2
276 memory: !os_env SLAVE_NODE_MEMORY, 16384
277 boot:
278 - hd
279 cloud_init_volume_name: iso
280 cloud_init_iface_up: ens3
281 volumes:
282 - name: system
283 capacity: !os_env NODE_VOLUME_SIZE, 150
284 backing_store: mcp_ubuntu_1604_image
285 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300286 - name: iso # Volume with name 'iso' will be used
287 # for store image with cloud-init metadata.
288 capacity: 1
289 format: raw
290 device: cdrom
291 bus: ide
292 cloudinit_meta_data: *cloudinit_meta_data
293 cloudinit_user_data: *cloudinit_user_data_1604
294
295 interfaces: *interfaces
296 network_config: *network_config
297
298 - name: {{ HOSTNAME_MON01 }}
299 role: salt_minion
300 params:
301 vcpu: !os_env SLAVE_NODE_CPU, 3
302 memory: !os_env SLAVE_NODE_MEMORY, 6144
303 boot:
304 - hd
305 cloud_init_volume_name: iso
306 cloud_init_iface_up: ens3
307 volumes:
308 - name: system
309 capacity: !os_env NODE_VOLUME_SIZE, 150
310 backing_store: mcp_ubuntu_1604_image
311 format: qcow2
312 - name: iso # Volume with name 'iso' will be used
313 # for store image with cloud-init metadata.
314 capacity: 1
315 format: raw
316 device: cdrom
317 bus: ide
318 cloudinit_meta_data: *cloudinit_meta_data
319 cloudinit_user_data: *cloudinit_user_data_1604
320
321 interfaces: *interfaces
322 network_config: *network_config
323
324 - name: {{ HOSTNAME_MON02 }}
325 role: salt_minion
326 params:
327 vcpu: !os_env SLAVE_NODE_CPU, 3
328 memory: !os_env SLAVE_NODE_MEMORY, 6144
329 boot:
330 - hd
331 cloud_init_volume_name: iso
332 cloud_init_iface_up: ens3
333 volumes:
334 - name: system
335 capacity: !os_env NODE_VOLUME_SIZE, 150
336 backing_store: mcp_ubuntu_1604_image
337 format: qcow2
338 - name: iso # Volume with name 'iso' will be used
339 # for store image with cloud-init metadata.
340 capacity: 1
341 format: raw
342 device: cdrom
343 bus: ide
344 cloudinit_meta_data: *cloudinit_meta_data
345 cloudinit_user_data: *cloudinit_user_data_1604
346
347 interfaces: *interfaces
348 network_config: *network_config
349
350 - name: {{ HOSTNAME_MON03 }}
351 role: salt_minion
352 params:
353 vcpu: !os_env SLAVE_NODE_CPU, 3
354 memory: !os_env SLAVE_NODE_MEMORY, 6144
355 boot:
356 - hd
357 cloud_init_volume_name: iso
358 cloud_init_iface_up: ens3
359 volumes:
360 - name: system
361 capacity: !os_env NODE_VOLUME_SIZE, 150
362 backing_store: mcp_ubuntu_1604_image
363 format: qcow2
364 - name: iso # Volume with name 'iso' will be used
365 # for store image with cloud-init metadata.
366 capacity: 1
367 format: raw
368 device: cdrom
369 bus: ide
370 cloudinit_meta_data: *cloudinit_meta_data
371 cloudinit_user_data: *cloudinit_user_data_1604
372
373 interfaces: *interfaces
374 network_config: *network_config
375
376 - name: {{ HOSTNAME_PRX01 }}
377 role: salt_minion
378 params:
379 vcpu: !os_env SLAVE_NODE_CPU, 1
380 memory: !os_env SLAVE_NODE_MEMORY, 8192
381 boot:
382 - hd
383 cloud_init_volume_name: iso
384 cloud_init_iface_up: ens3
385 volumes:
386 - name: system
387 capacity: !os_env NODE_VOLUME_SIZE, 150
388 backing_store: mcp_ubuntu_1604_image
389 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300390 - name: iso # Volume with name 'iso' will be used
391 # for store image with cloud-init metadata.
392 capacity: 1
393 format: raw
394 device: cdrom
395 bus: ide
396 cloudinit_meta_data: *cloudinit_meta_data
397 cloudinit_user_data: *cloudinit_user_data_1604
398
399 interfaces: *interfaces
400 network_config: *network_config
401
402
403 - name: {{ HOSTNAME_CMP01 }}
404 role: salt_minion
405 params:
406 vcpu: !os_env SLAVE_NODE_CPU, 3
407 memory: !os_env SLAVE_NODE_MEMORY, 4096
408 boot:
409 - hd
410 cloud_init_volume_name: iso
411 cloud_init_iface_up: ens3
412 volumes:
413 - name: system
414 capacity: !os_env NODE_VOLUME_SIZE, 150
415 backing_store: cloudimage1604
416 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300417 - name: cinder
418 capacity: 50
419 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300420 - name: iso # Volume with name 'iso' will be used
421 # for store image with cloud-init metadata.
422 capacity: 1
423 format: raw
424 device: cdrom
425 bus: ide
426 cloudinit_meta_data: *cloudinit_meta_data
427 cloudinit_user_data: *cloudinit_user_data_1604
428
429
430 interfaces: &all_interfaces
431 - label: ens3
432 l2_network_device: admin
433 interface_model: *interface_model
434 - label: ens4
435 l2_network_device: private
436 interface_model: *interface_model
437 - label: ens5
438 l2_network_device: tenant
439 interface_model: *interface_model
440 - label: ens6
441 l2_network_device: external
442 interface_model: *interface_model
443 network_config: &all_network_config
444 ens3:
445 networks:
446 - admin
447 ens4:
448 networks:
449 - private
450 ens5:
451 networks:
452 - tenant
453 ens6:
454 networks:
455 - external
456
457 - name: {{ HOSTNAME_CMP02 }}
458 role: salt_minion
459 params:
460 vcpu: !os_env SLAVE_NODE_CPU, 3
461 memory: !os_env SLAVE_NODE_MEMORY, 4096
462 boot:
463 - hd
464 cloud_init_volume_name: iso
465 cloud_init_iface_up: ens3
466 volumes:
467 - name: system
468 capacity: !os_env NODE_VOLUME_SIZE, 150
469 backing_store: cloudimage1604
470 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300471 - name: cinder
472 capacity: 50
473 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300474 - name: iso # Volume with name 'iso' will be used
475 # for store image with cloud-init metadata.
476 capacity: 1
477 format: raw
478 device: cdrom
479 bus: ide
480 cloudinit_meta_data: *cloudinit_meta_data
481 cloudinit_user_data: *cloudinit_user_data_1604
482
483 interfaces: *all_interfaces
484 network_config: *all_network_config
485
486 - name: {{ HOSTNAME_GTW01 }}
487 role: salt_minion
488 params:
489 vcpu: !os_env SLAVE_NODE_CPU, 4
490 memory: !os_env SLAVE_NODE_MEMORY, 4096
491 boot:
492 - hd
493 cloud_init_volume_name: iso
494 cloud_init_iface_up: ens3
495 volumes:
496 - name: system
497 capacity: !os_env NODE_VOLUME_SIZE, 150
498 backing_store: cloudimage1604
499 format: qcow2
500 - name: iso # Volume with name 'iso' will be used
501 # for store image with cloud-init metadata.
502 capacity: 1
503 format: raw
504 device: cdrom
505 bus: ide
506 cloudinit_meta_data: *cloudinit_meta_data
507 cloudinit_user_data: *cloudinit_user_data_1604
508
509 interfaces: *all_interfaces
510 network_config: *all_network_config