blob: c7dd479375f9497bee33985f8eb03cba7d22844c [file] [log] [blame]
obutenkof009ed42018-11-12 14:50:51 +02001# 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-queens-dvr-ssl-barbican/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-queens-dvr-ssl-barbican/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-queens-dvr-ssl-barbican/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-queens-dvr-ssl-barbican') %}
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', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
23{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
obutenkobc4f4b22018-11-13 15:36:51 +020025{% set HOSTNAME_KMN01 = os_env('HOSTNAME_KMN01', 'kmn01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_KMN02 = os_env('HOSTNAME_KMN02', 'kmn02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_KMN03 = os_env('HOSTNAME_KMN03', 'kmn03.' + DOMAIN_NAME) %}
obutenkof009ed42018-11-12 14:50:51 +020028
29template:
30 devops_settings:
31 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-queens-dvr-ssl-barbican_' + 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_GTW01 }}: +110
47 default_{{ HOSTNAME_PRX01 }}: +121
obutenkobc4f4b22018-11-13 15:36:51 +020048 default_{{ HOSTNAME_KMN01 }}: +45
49 default_{{ HOSTNAME_KMN02 }}: +46
50 default_{{ HOSTNAME_KMN03 }}: +47
obutenkof009ed42018-11-12 14:50:51 +020051 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_GTW01 }}: +110
67 default_{{ HOSTNAME_PRX01 }}: +121
obutenkobc4f4b22018-11-13 15:36:51 +020068 default_{{ HOSTNAME_KMN01 }}: +45
69 default_{{ HOSTNAME_KMN02 }}: +46
70 default_{{ HOSTNAME_KMN03 }}: +47
obutenkof009ed42018-11-12 14:50:51 +020071 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_GTW01 }}: +110
87 default_{{ HOSTNAME_PRX01 }}: +121
obutenkobc4f4b22018-11-13 15:36:51 +020088 default_{{ HOSTNAME_KMN01 }}: +45
89 default_{{ HOSTNAME_KMN02 }}: +46
90 default_{{ HOSTNAME_KMN03 }}: +47
obutenkof009ed42018-11-12 14:50:51 +020091 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_GTW01 }}: +110
107 default_{{ HOSTNAME_PRX01 }}: +121
108 ip_ranges:
109 dhcp: [+130, +220]
110
111 groups:
112 - name: default
113 driver:
114 name: devops.driver.libvirt
115 params:
116 connection_string: !os_env CONNECTION_STRING, qemu:///system
117 storage_pool_name: !os_env STORAGE_POOL_NAME, default
118 stp: False
119 hpet: False
120 enable_acpi: true
121 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
122 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
123
124 network_pools:
125 admin: admin-pool01
126 private: private-pool01
127 tenant: tenant-pool01
128 external: external-pool01
129
130 l2_network_devices:
131 private:
132 address_pool: private-pool01
133 dhcp: false
134 forward:
135 mode: route
136
137 admin:
138 address_pool: admin-pool01
139 dhcp: true
140 forward:
141 mode: nat
142
143 tenant:
144 address_pool: tenant-pool01
145 dhcp: false
146
147 external:
148 address_pool: external-pool01
149 dhcp: false
150 forward:
151 mode: route
152
153 group_volumes:
154 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
155 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
156 format: qcow2
157 - name: cfg01_day01_image # Pre-configured day01 image
158 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
159 format: qcow2
160 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
161 source_image: !os_env MCP_IMAGE_PATH1604
162 format: qcow2
163
164 nodes:
165 - name: {{ HOSTNAME_CFG01 }}
166 role: salt_master
167 params:
168 vcpu: !os_env SLAVE_NODE_CPU, 2
169 memory: !os_env SLAVE_NODE_MEMORY, 8192
170 boot:
171 - hd
172 cloud_init_volume_name: iso
173 cloud_init_iface_up: ens3
174 volumes:
175 - name: system
176 capacity: !os_env NODE_VOLUME_SIZE, 150
177 backing_store: cfg01_day01_image
178 format: qcow2
179 - name: iso # Volume with name 'iso' will be used
180 # for store image with cloud-init metadata.
181 capacity: 1
182 format: raw
183 device: cdrom
184 bus: ide
185 cloudinit_meta_data: *cloudinit_meta_data
186 cloudinit_user_data: *cloudinit_user_data_cfg01
187
188 interfaces:
189 - label: ens3
190 l2_network_device: admin
191 interface_model: *interface_model
192 - label: ens4
193 l2_network_device: private
194 interface_model: *interface_model
195 network_config:
196 ens3:
197 networks:
198 - admin
199 ens4:
200 networks:
201 - private
202
203 - name: {{ HOSTNAME_CTL01 }}
204 role: salt_minion
205 params:
206 vcpu: !os_env SLAVE_NODE_CPU, 2
207 memory: !os_env SLAVE_NODE_MEMORY, 16384
208 boot:
209 - hd
210 cloud_init_volume_name: iso
211 cloud_init_iface_up: ens3
212 volumes:
213 - name: system
214 capacity: !os_env NODE_VOLUME_SIZE, 150
215 backing_store: mcp_ubuntu_1604_image
216 format: qcow2
217 - name: iso # Volume with name 'iso' will be used
218 # for store image with cloud-init metadata.
219 capacity: 1
220 format: raw
221 device: cdrom
222 bus: ide
223 cloudinit_meta_data: *cloudinit_meta_data
224 cloudinit_user_data: *cloudinit_user_data_1604
225
226 interfaces: &interfaces
227 - label: ens3
228 l2_network_device: admin
229 interface_model: *interface_model
230 - label: ens4
231 l2_network_device: private
232 interface_model: *interface_model
233 network_config: &network_config
234 ens3:
235 networks:
236 - admin
237 ens4:
238 networks:
239 - private
240
241 - name: {{ HOSTNAME_CTL02 }}
242 role: salt_minion
243 params:
244 vcpu: !os_env SLAVE_NODE_CPU, 2
245 memory: !os_env SLAVE_NODE_MEMORY, 16384
246 boot:
247 - hd
248 cloud_init_volume_name: iso
249 cloud_init_iface_up: ens3
250 volumes:
251 - name: system
252 capacity: !os_env NODE_VOLUME_SIZE, 150
253 backing_store: mcp_ubuntu_1604_image
254 format: qcow2
255 - name: iso # Volume with name 'iso' will be used
256 # for store image with cloud-init metadata.
257 capacity: 1
258 format: raw
259 device: cdrom
260 bus: ide
261 cloudinit_meta_data: *cloudinit_meta_data
262 cloudinit_user_data: *cloudinit_user_data_1604
263
264 interfaces: *interfaces
265 network_config: *network_config
266
267 - name: {{ HOSTNAME_CTL03 }}
268 role: salt_minion
269 params:
270 vcpu: !os_env SLAVE_NODE_CPU, 2
271 memory: !os_env SLAVE_NODE_MEMORY, 16384
272 boot:
273 - hd
274 cloud_init_volume_name: iso
275 cloud_init_iface_up: ens3
276 volumes:
277 - name: system
278 capacity: !os_env NODE_VOLUME_SIZE, 150
279 backing_store: mcp_ubuntu_1604_image
280 format: qcow2
281 - name: iso # Volume with name 'iso' will be used
282 # for store image with cloud-init metadata.
283 capacity: 1
284 format: raw
285 device: cdrom
286 bus: ide
287 cloudinit_meta_data: *cloudinit_meta_data
288 cloudinit_user_data: *cloudinit_user_data_1604
289
290 interfaces: *interfaces
291 network_config: *network_config
292
obutenkobc4f4b22018-11-13 15:36:51 +0200293 - name: {{ HOSTNAME_KMN01 }}
294 role: salt_minion
295 params:
296 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000297 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200298 boot:
299 - hd
300 cloud_init_volume_name: iso
301 cloud_init_iface_up: ens3
302 volumes:
303 - name: system
304 capacity: !os_env NODE_VOLUME_SIZE, 150
305 backing_store: mcp_ubuntu_1604_image
306 format: qcow2
307 - name: iso # Volume with name 'iso' will be used
308 # for store image with cloud-init metadata.
309 capacity: 1
310 format: raw
311 device: cdrom
312 bus: ide
313 cloudinit_meta_data: *cloudinit_meta_data
314 cloudinit_user_data: *cloudinit_user_data_1604
315
316 interfaces: *interfaces
317 network_config: *network_config
318
319 - name: {{ HOSTNAME_KMN02 }}
320 role: salt_minion
321 params:
322 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000323 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200324 boot:
325 - hd
326 cloud_init_volume_name: iso
327 cloud_init_iface_up: ens3
328 volumes:
329 - name: system
330 capacity: !os_env NODE_VOLUME_SIZE, 150
331 backing_store: mcp_ubuntu_1604_image
332 format: qcow2
333 - name: iso # Volume with name 'iso' will be used
334 # for store image with cloud-init metadata.
335 capacity: 1
336 format: raw
337 device: cdrom
338 bus: ide
339 cloudinit_meta_data: *cloudinit_meta_data
340 cloudinit_user_data: *cloudinit_user_data_1604
341
342 interfaces: *interfaces
343 network_config: *network_config
344
345 - name: {{ HOSTNAME_KMN03 }}
346 role: salt_minion
347 params:
348 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000349 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200350 boot:
351 - hd
352 cloud_init_volume_name: iso
353 cloud_init_iface_up: ens3
354 volumes:
355 - name: system
356 capacity: !os_env NODE_VOLUME_SIZE, 150
357 backing_store: mcp_ubuntu_1604_image
358 format: qcow2
359 - name: iso # Volume with name 'iso' will be used
360 # for store image with cloud-init metadata.
361 capacity: 1
362 format: raw
363 device: cdrom
364 bus: ide
365 cloudinit_meta_data: *cloudinit_meta_data
366 cloudinit_user_data: *cloudinit_user_data_1604
367
368 interfaces: *interfaces
369 network_config: *network_config
370
obutenkof009ed42018-11-12 14:50:51 +0200371 - name: {{ HOSTNAME_PRX01 }}
372 role: salt_minion
373 params:
374 vcpu: !os_env SLAVE_NODE_CPU, 1
375 memory: !os_env SLAVE_NODE_MEMORY, 2048
376 boot:
377 - hd
378 cloud_init_volume_name: iso
379 cloud_init_iface_up: ens3
380 volumes:
381 - name: system
382 capacity: !os_env NODE_VOLUME_SIZE, 150
383 backing_store: mcp_ubuntu_1604_image
384 format: qcow2
385 - name: iso # Volume with name 'iso' will be used
386 # for store image with cloud-init metadata.
387 capacity: 1
388 format: raw
389 device: cdrom
390 bus: ide
391 cloudinit_meta_data: *cloudinit_meta_data
392 cloudinit_user_data: *cloudinit_user_data_1604
393
394 interfaces: *interfaces
395 network_config: *network_config
396
397 - name: {{ HOSTNAME_CMP01 }}
398 role: salt_minion
399 params:
400 vcpu: !os_env SLAVE_NODE_CPU, 3
401 memory: !os_env SLAVE_NODE_MEMORY, 4096
402 boot:
403 - hd
404 cloud_init_volume_name: iso
405 cloud_init_iface_up: ens3
406 volumes:
407 - name: system
408 capacity: !os_env NODE_VOLUME_SIZE, 150
409 backing_store: cloudimage1604
410 format: qcow2
411 - name: cinder
412 capacity: 50
413 format: qcow2
414 - name: manila
415 capacity: 20
416 format: qcow2
417 - name: iso # Volume with name 'iso' will be used
418 # for store image with cloud-init metadata.
419 capacity: 1
420 format: raw
421 device: cdrom
422 bus: ide
423 cloudinit_meta_data: *cloudinit_meta_data
424 cloudinit_user_data: *cloudinit_user_data_1604
425
426
427 interfaces: &all_interfaces
428 - label: ens3
429 l2_network_device: admin
430 interface_model: *interface_model
431 - label: ens4
432 l2_network_device: private
433 interface_model: *interface_model
434 - label: ens5
435 l2_network_device: tenant
436 interface_model: *interface_model
437 - label: ens6
438 l2_network_device: external
439 interface_model: *interface_model
440 network_config: &all_network_config
441 ens3:
442 networks:
443 - admin
444 ens4:
445 networks:
446 - private
447 ens5:
448 networks:
449 - tenant
450 ens6:
451 networks:
452 - external
453
454 - name: {{ HOSTNAME_CMP02 }}
455 role: salt_minion
456 params:
457 vcpu: !os_env SLAVE_NODE_CPU, 3
458 memory: !os_env SLAVE_NODE_MEMORY, 4096
459 boot:
460 - hd
461 cloud_init_volume_name: iso
462 cloud_init_iface_up: ens3
463 volumes:
464 - name: system
465 capacity: !os_env NODE_VOLUME_SIZE, 150
466 backing_store: cloudimage1604
467 format: qcow2
468 - name: cinder
469 capacity: 50
470 format: qcow2
471 - name: manila
472 capacity: 20
473 format: qcow2
474 - 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