blob: e1befcbd1f4eb1b1c7e7f51faaa2b26eacc507db [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-pike-dvr-ssl-barbican/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-pike-dvr-ssl-barbican/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-pike-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-pike-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-pike-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
obutenkobc4f4b22018-11-13 15:36:51 +0200108 default_{{ HOSTNAME_KMN01 }}: +45
109 default_{{ HOSTNAME_KMN02 }}: +46
110 default_{{ HOSTNAME_KMN03 }}: +47
obutenkof009ed42018-11-12 14:50:51 +0200111 ip_ranges:
112 dhcp: [+130, +220]
113
114 groups:
115 - name: default
116 driver:
117 name: devops.driver.libvirt
118 params:
119 connection_string: !os_env CONNECTION_STRING, qemu:///system
120 storage_pool_name: !os_env STORAGE_POOL_NAME, default
121 stp: False
122 hpet: False
123 enable_acpi: true
124 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
125 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
126
127 network_pools:
128 admin: admin-pool01
129 private: private-pool01
130 tenant: tenant-pool01
131 external: external-pool01
132
133 l2_network_devices:
134 private:
135 address_pool: private-pool01
136 dhcp: false
137 forward:
138 mode: route
139
140 admin:
141 address_pool: admin-pool01
142 dhcp: true
143 forward:
144 mode: nat
145
146 tenant:
147 address_pool: tenant-pool01
148 dhcp: false
149
150 external:
151 address_pool: external-pool01
152 dhcp: false
153 forward:
154 mode: route
155
156 group_volumes:
157 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
158 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
159 format: qcow2
160 - name: cfg01_day01_image # Pre-configured day01 image
161 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
162 format: qcow2
163 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
164 source_image: !os_env MCP_IMAGE_PATH1604
165 format: qcow2
166
167 nodes:
168 - name: {{ HOSTNAME_CFG01 }}
169 role: salt_master
170 params:
171 vcpu: !os_env SLAVE_NODE_CPU, 2
172 memory: !os_env SLAVE_NODE_MEMORY, 8192
173 boot:
174 - hd
175 cloud_init_volume_name: iso
176 cloud_init_iface_up: ens3
177 volumes:
178 - name: system
179 capacity: !os_env NODE_VOLUME_SIZE, 150
180 backing_store: cfg01_day01_image
181 format: qcow2
182 - name: iso # Volume with name 'iso' will be used
183 # for store image with cloud-init metadata.
184 capacity: 1
185 format: raw
186 device: cdrom
187 bus: ide
188 cloudinit_meta_data: *cloudinit_meta_data
189 cloudinit_user_data: *cloudinit_user_data_cfg01
190
191 interfaces:
192 - label: ens3
193 l2_network_device: admin
194 interface_model: *interface_model
195 - label: ens4
196 l2_network_device: private
197 interface_model: *interface_model
198 network_config:
199 ens3:
200 networks:
201 - admin
202 ens4:
203 networks:
204 - private
205
206 - name: {{ HOSTNAME_CTL01 }}
207 role: salt_minion
208 params:
209 vcpu: !os_env SLAVE_NODE_CPU, 2
210 memory: !os_env SLAVE_NODE_MEMORY, 16384
211 boot:
212 - hd
213 cloud_init_volume_name: iso
214 cloud_init_iface_up: ens3
215 volumes:
216 - name: system
217 capacity: !os_env NODE_VOLUME_SIZE, 150
218 backing_store: mcp_ubuntu_1604_image
219 format: qcow2
220 - name: iso # Volume with name 'iso' will be used
221 # for store image with cloud-init metadata.
222 capacity: 1
223 format: raw
224 device: cdrom
225 bus: ide
226 cloudinit_meta_data: *cloudinit_meta_data
227 cloudinit_user_data: *cloudinit_user_data_1604
228
229 interfaces: &interfaces
230 - label: ens3
231 l2_network_device: admin
232 interface_model: *interface_model
233 - label: ens4
234 l2_network_device: private
235 interface_model: *interface_model
236 network_config: &network_config
237 ens3:
238 networks:
239 - admin
240 ens4:
241 networks:
242 - private
243
244 - name: {{ HOSTNAME_CTL02 }}
245 role: salt_minion
246 params:
247 vcpu: !os_env SLAVE_NODE_CPU, 2
248 memory: !os_env SLAVE_NODE_MEMORY, 16384
249 boot:
250 - hd
251 cloud_init_volume_name: iso
252 cloud_init_iface_up: ens3
253 volumes:
254 - name: system
255 capacity: !os_env NODE_VOLUME_SIZE, 150
256 backing_store: mcp_ubuntu_1604_image
257 format: qcow2
258 - name: iso # Volume with name 'iso' will be used
259 # for store image with cloud-init metadata.
260 capacity: 1
261 format: raw
262 device: cdrom
263 bus: ide
264 cloudinit_meta_data: *cloudinit_meta_data
265 cloudinit_user_data: *cloudinit_user_data_1604
266
267 interfaces: *interfaces
268 network_config: *network_config
269
270 - name: {{ HOSTNAME_CTL03 }}
271 role: salt_minion
272 params:
273 vcpu: !os_env SLAVE_NODE_CPU, 2
274 memory: !os_env SLAVE_NODE_MEMORY, 16384
275 boot:
276 - hd
277 cloud_init_volume_name: iso
278 cloud_init_iface_up: ens3
279 volumes:
280 - name: system
281 capacity: !os_env NODE_VOLUME_SIZE, 150
282 backing_store: mcp_ubuntu_1604_image
283 format: qcow2
284 - name: iso # Volume with name 'iso' will be used
285 # for store image with cloud-init metadata.
286 capacity: 1
287 format: raw
288 device: cdrom
289 bus: ide
290 cloudinit_meta_data: *cloudinit_meta_data
291 cloudinit_user_data: *cloudinit_user_data_1604
292
293 interfaces: *interfaces
294 network_config: *network_config
295
obutenkobc4f4b22018-11-13 15:36:51 +0200296 - name: {{ HOSTNAME_KMN01 }}
297 role: salt_minion
298 params:
299 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000300 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200301 boot:
302 - hd
303 cloud_init_volume_name: iso
304 cloud_init_iface_up: ens3
305 volumes:
306 - name: system
307 capacity: !os_env NODE_VOLUME_SIZE, 150
308 backing_store: mcp_ubuntu_1604_image
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: *cloudinit_meta_data
317 cloudinit_user_data: *cloudinit_user_data_1604
318
319 interfaces: *interfaces
320 network_config: *network_config
321
322 - name: {{ HOSTNAME_KMN02 }}
323 role: salt_minion
324 params:
325 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000326 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200327 boot:
328 - hd
329 cloud_init_volume_name: iso
330 cloud_init_iface_up: ens3
331 volumes:
332 - name: system
333 capacity: !os_env NODE_VOLUME_SIZE, 150
334 backing_store: mcp_ubuntu_1604_image
335 format: qcow2
336 - name: iso # Volume with name 'iso' will be used
337 # for store image with cloud-init metadata.
338 capacity: 1
339 format: raw
340 device: cdrom
341 bus: ide
342 cloudinit_meta_data: *cloudinit_meta_data
343 cloudinit_user_data: *cloudinit_user_data_1604
344
345 interfaces: *interfaces
346 network_config: *network_config
347
348 - name: {{ HOSTNAME_KMN03 }}
349 role: salt_minion
350 params:
351 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev3d0ed0a2018-11-23 11:02:52 +0000352 memory: !os_env SLAVE_NODE_MEMORY, 16384
obutenkobc4f4b22018-11-13 15:36:51 +0200353 boot:
354 - hd
355 cloud_init_volume_name: iso
356 cloud_init_iface_up: ens3
357 volumes:
358 - name: system
359 capacity: !os_env NODE_VOLUME_SIZE, 150
360 backing_store: mcp_ubuntu_1604_image
361 format: qcow2
362 - name: iso # Volume with name 'iso' will be used
363 # for store image with cloud-init metadata.
364 capacity: 1
365 format: raw
366 device: cdrom
367 bus: ide
368 cloudinit_meta_data: *cloudinit_meta_data
369 cloudinit_user_data: *cloudinit_user_data_1604
370
371 interfaces: *interfaces
372 network_config: *network_config
373
obutenkof009ed42018-11-12 14:50:51 +0200374 - name: {{ HOSTNAME_PRX01 }}
375 role: salt_minion
376 params:
377 vcpu: !os_env SLAVE_NODE_CPU, 1
378 memory: !os_env SLAVE_NODE_MEMORY, 2048
379 boot:
380 - hd
381 cloud_init_volume_name: iso
382 cloud_init_iface_up: ens3
383 volumes:
384 - name: system
385 capacity: !os_env NODE_VOLUME_SIZE, 150
386 backing_store: mcp_ubuntu_1604_image
387 format: qcow2
388 - name: iso # Volume with name 'iso' will be used
389 # for store image with cloud-init metadata.
390 capacity: 1
391 format: raw
392 device: cdrom
393 bus: ide
394 cloudinit_meta_data: *cloudinit_meta_data
395 cloudinit_user_data: *cloudinit_user_data_1604
396
397 interfaces: *interfaces
398 network_config: *network_config
399
400 - name: {{ HOSTNAME_CMP01 }}
401 role: salt_minion
402 params:
403 vcpu: !os_env SLAVE_NODE_CPU, 3
404 memory: !os_env SLAVE_NODE_MEMORY, 4096
405 boot:
406 - hd
407 cloud_init_volume_name: iso
408 cloud_init_iface_up: ens3
409 volumes:
410 - name: system
411 capacity: !os_env NODE_VOLUME_SIZE, 150
412 backing_store: cloudimage1604
413 format: qcow2
414 - name: cinder
415 capacity: 50
416 format: qcow2
417 - name: manila
418 capacity: 20
419 format: qcow2
420 - 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
471 - name: cinder
472 capacity: 50
473 format: qcow2
474 - name: manila
475 capacity: 20
476 format: qcow2
477 - name: iso # Volume with name 'iso' will be used
478 # for store image with cloud-init metadata.
479 capacity: 1
480 format: raw
481 device: cdrom
482 bus: ide
483 cloudinit_meta_data: *cloudinit_meta_data
484 cloudinit_user_data: *cloudinit_user_data_1604
485
486 interfaces: *all_interfaces
487 network_config: *all_network_config
488
489 - name: {{ HOSTNAME_GTW01 }}
490 role: salt_minion
491 params:
492 vcpu: !os_env SLAVE_NODE_CPU, 4
493 memory: !os_env SLAVE_NODE_MEMORY, 4096
494 boot:
495 - hd
496 cloud_init_volume_name: iso
497 cloud_init_iface_up: ens3
498 volumes:
499 - name: system
500 capacity: !os_env NODE_VOLUME_SIZE, 150
501 backing_store: cloudimage1604
502 format: qcow2
503 - name: iso # Volume with name 'iso' will be used
504 # for store image with cloud-init metadata.
505 capacity: 1
506 format: raw
507 device: cdrom
508 bus: ide
509 cloudinit_meta_data: *cloudinit_meta_data
510 cloudinit_user_data: *cloudinit_user_data_1604
511
512 interfaces: *all_interfaces
513 network_config: *all_network_config