blob: b81481b16a972b069b4f94f586a5704b65c0656e [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
Dennis Dmitrievb612c442018-11-28 16:42:49 +0200394 interfaces:
395 - label: ens3
396 l2_network_device: admin
397 interface_model: *interface_model
398 - label: ens4
399 l2_network_device: private
400 interface_model: *interface_model
401 - label: ens5
402 l2_network_device: external
403 interface_model: *interface_model
404 network_config:
405 ens3:
406 networks:
407 - admin
408 ens4:
409 networks:
410 - private
411 ens5:
412 networks:
413 - external
obutenkof009ed42018-11-12 14:50:51 +0200414
415 - name: {{ HOSTNAME_CMP01 }}
416 role: salt_minion
417 params:
418 vcpu: !os_env SLAVE_NODE_CPU, 3
419 memory: !os_env SLAVE_NODE_MEMORY, 4096
420 boot:
421 - hd
422 cloud_init_volume_name: iso
423 cloud_init_iface_up: ens3
424 volumes:
425 - name: system
426 capacity: !os_env NODE_VOLUME_SIZE, 150
427 backing_store: cloudimage1604
428 format: qcow2
429 - name: cinder
430 capacity: 50
431 format: qcow2
432 - name: manila
433 capacity: 20
434 format: qcow2
435 - name: iso # Volume with name 'iso' will be used
436 # for store image with cloud-init metadata.
437 capacity: 1
438 format: raw
439 device: cdrom
440 bus: ide
441 cloudinit_meta_data: *cloudinit_meta_data
442 cloudinit_user_data: *cloudinit_user_data_1604
443
444
445 interfaces: &all_interfaces
446 - label: ens3
447 l2_network_device: admin
448 interface_model: *interface_model
449 - label: ens4
450 l2_network_device: private
451 interface_model: *interface_model
452 - label: ens5
453 l2_network_device: tenant
454 interface_model: *interface_model
455 - label: ens6
456 l2_network_device: external
457 interface_model: *interface_model
458 network_config: &all_network_config
459 ens3:
460 networks:
461 - admin
462 ens4:
463 networks:
464 - private
465 ens5:
466 networks:
467 - tenant
468 ens6:
469 networks:
470 - external
471
472 - name: {{ HOSTNAME_CMP02 }}
473 role: salt_minion
474 params:
475 vcpu: !os_env SLAVE_NODE_CPU, 3
476 memory: !os_env SLAVE_NODE_MEMORY, 4096
477 boot:
478 - hd
479 cloud_init_volume_name: iso
480 cloud_init_iface_up: ens3
481 volumes:
482 - name: system
483 capacity: !os_env NODE_VOLUME_SIZE, 150
484 backing_store: cloudimage1604
485 format: qcow2
486 - name: cinder
487 capacity: 50
488 format: qcow2
489 - name: manila
490 capacity: 20
491 format: qcow2
492 - name: iso # Volume with name 'iso' will be used
493 # for store image with cloud-init metadata.
494 capacity: 1
495 format: raw
496 device: cdrom
497 bus: ide
498 cloudinit_meta_data: *cloudinit_meta_data
499 cloudinit_user_data: *cloudinit_user_data_1604
500
501 interfaces: *all_interfaces
502 network_config: *all_network_config
503
504 - name: {{ HOSTNAME_GTW01 }}
505 role: salt_minion
506 params:
507 vcpu: !os_env SLAVE_NODE_CPU, 4
508 memory: !os_env SLAVE_NODE_MEMORY, 4096
509 boot:
510 - hd
511 cloud_init_volume_name: iso
512 cloud_init_iface_up: ens3
513 volumes:
514 - name: system
515 capacity: !os_env NODE_VOLUME_SIZE, 150
516 backing_store: cloudimage1604
517 format: qcow2
518 - name: iso # Volume with name 'iso' will be used
519 # for store image with cloud-init metadata.
520 capacity: 1
521 format: raw
522 device: cdrom
523 bus: ide
524 cloudinit_meta_data: *cloudinit_meta_data
525 cloudinit_user_data: *cloudinit_user_data_1604
526
527 interfaces: *all_interfaces
528 network_config: *all_network_config