blob: a964d2bd0ff679c89835b8e35c1bbecbb6d69f8b [file] [log] [blame]
Dennis Dmitrievb3b37492018-07-08 21:23:00 +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-cicd-pike-dvr-sl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-cicd-pike-dvr-sl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-cicd-pike-dvr-sl/underlay--user-data1604-swp.yaml' as CLOUDINIT_USER_DATA_1604_SWP 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_swp {{ CLOUDINIT_USER_DATA_1604_SWP }}
14
15{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-pike-dvr-sl') %}
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_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
25{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
26{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
27{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
28{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
32{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
33{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
34{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
35{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
36{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
37{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
38{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
39{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
40
41template:
42 devops_settings:
43 env_name: {{ os_env('ENV_NAME', 'cookied-cicd-pike-dvr-sl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
44
45 address_pools:
46 private-pool01:
47 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
48 params:
49 ip_reserved:
50 gateway: +1
51 l2_network_device: +1
52 default_{{ HOSTNAME_CFG01 }}: +15
53 default_{{ HOSTNAME_KVM }}: +240
54 default_{{ HOSTNAME_KVM01 }}: +241
55 default_{{ HOSTNAME_KVM02 }}: +242
56 default_{{ HOSTNAME_KVM03 }}: +243
57 default_{{ HOSTNAME_CID }}: +90
58 default_{{ HOSTNAME_CID01 }}: +91
59 default_{{ HOSTNAME_CID02 }}: +92
60 default_{{ HOSTNAME_CID03 }}: +93
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 }}: +71
67 default_{{ HOSTNAME_MON02 }}: +72
68 default_{{ HOSTNAME_MON03 }}: +73
69 default_{{ HOSTNAME_LOG01 }}: +61
70 default_{{ HOSTNAME_LOG02 }}: +62
71 default_{{ HOSTNAME_LOG03 }}: +63
72 default_{{ HOSTNAME_MTR01 }}: +86
73 default_{{ HOSTNAME_MTR02 }}: +87
74 default_{{ HOSTNAME_MTR03 }}: +88
75 default_{{ HOSTNAME_GTW01 }}: +110
76 default_{{ HOSTNAME_PRX01 }}: +121
77 ip_ranges:
78 dhcp: [+90, -10]
79
80 admin-pool01:
81 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
82 params:
83 ip_reserved:
84 gateway: +1
85 l2_network_device: +1
86 default_{{ HOSTNAME_CFG01 }}: +15
87 default_{{ HOSTNAME_KVM }}: +240
88 default_{{ HOSTNAME_KVM01 }}: +241
89 default_{{ HOSTNAME_KVM02 }}: +242
90 default_{{ HOSTNAME_KVM03 }}: +243
91 default_{{ HOSTNAME_CID }}: +90
92 default_{{ HOSTNAME_CID01 }}: +91
93 default_{{ HOSTNAME_CID02 }}: +92
94 default_{{ HOSTNAME_CID03 }}: +93
95 default_{{ HOSTNAME_CTL01 }}: +101
96 default_{{ HOSTNAME_CTL02 }}: +102
97 default_{{ HOSTNAME_CTL03 }}: +103
98 default_{{ HOSTNAME_CMP01 }}: +105
99 default_{{ HOSTNAME_CMP02 }}: +106
100 default_{{ HOSTNAME_MON01 }}: +71
101 default_{{ HOSTNAME_MON02 }}: +72
102 default_{{ HOSTNAME_MON03 }}: +73
103 default_{{ HOSTNAME_LOG01 }}: +61
104 default_{{ HOSTNAME_LOG02 }}: +62
105 default_{{ HOSTNAME_LOG03 }}: +63
106 default_{{ HOSTNAME_MTR01 }}: +86
107 default_{{ HOSTNAME_MTR02 }}: +87
108 default_{{ HOSTNAME_MTR03 }}: +88
109 default_{{ HOSTNAME_GTW01 }}: +110
110 default_{{ HOSTNAME_PRX01 }}: +121
111 ip_ranges:
112 dhcp: [+90, -10]
113
114 tenant-pool01:
115 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
116 params:
117 ip_reserved:
118 gateway: +1
119 l2_network_device: +1
120 default_{{ HOSTNAME_CFG01 }}: +15
121 default_{{ HOSTNAME_CTL01 }}: +101
122 default_{{ HOSTNAME_CTL02 }}: +102
123 default_{{ HOSTNAME_CTL03 }}: +103
124 default_{{ HOSTNAME_CMP01 }}: +105
125 default_{{ HOSTNAME_CMP02 }}: +106
126 default_{{ HOSTNAME_MON01 }}: +71
127 default_{{ HOSTNAME_MON02 }}: +72
128 default_{{ HOSTNAME_MON03 }}: +73
129 default_{{ HOSTNAME_LOG01 }}: +61
130 default_{{ HOSTNAME_LOG02 }}: +62
131 default_{{ HOSTNAME_LOG03 }}: +63
132 default_{{ HOSTNAME_MTR01 }}: +86
133 default_{{ HOSTNAME_MTR02 }}: +87
134 default_{{ HOSTNAME_MTR03 }}: +88
135 default_{{ HOSTNAME_GTW01 }}: +110
136 default_{{ HOSTNAME_PRX01 }}: +121
137 ip_ranges:
138 dhcp: [+10, -10]
139
140 external-pool01:
141 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
142 params:
143 ip_reserved:
144 gateway: +1
145 l2_network_device: +1
146 default_{{ HOSTNAME_CFG01 }}: +15
147 default_{{ HOSTNAME_CTL01 }}: +101
148 default_{{ HOSTNAME_CTL02 }}: +102
149 default_{{ HOSTNAME_CTL03 }}: +103
150 default_{{ HOSTNAME_CMP01 }}: +105
151 default_{{ HOSTNAME_CMP02 }}: +106
152 default_{{ HOSTNAME_MON01 }}: +71
153 default_{{ HOSTNAME_MON02 }}: +72
154 default_{{ HOSTNAME_MON03 }}: +73
155 default_{{ HOSTNAME_LOG01 }}: +61
156 default_{{ HOSTNAME_LOG02 }}: +62
157 default_{{ HOSTNAME_LOG03 }}: +63
158 default_{{ HOSTNAME_MTR01 }}: +86
159 default_{{ HOSTNAME_MTR02 }}: +87
160 default_{{ HOSTNAME_MTR03 }}: +88
161 default_{{ HOSTNAME_GTW01 }}: +110
162 default_{{ HOSTNAME_PRX01 }}: +121
163 ip_ranges:
164 dhcp: [+10, -10]
165
166
167 groups:
168 - name: default
169 driver:
170 name: devops.driver.libvirt
171 params:
172 connection_string: !os_env CONNECTION_STRING, qemu:///system
173 storage_pool_name: !os_env STORAGE_POOL_NAME, default
174 stp: False
175 hpet: False
176 enable_acpi: true
177 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
178 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
179
180 network_pools:
181 admin: admin-pool01
182 private: private-pool01
183 tenant: tenant-pool01
184 external: external-pool01
185
186 l2_network_devices:
187 private:
188 address_pool: private-pool01
189 dhcp: false
190 forward:
191 mode: route
192
193 admin:
194 address_pool: admin-pool01
195 dhcp: true
196 forward:
197 mode: nat
198
199 tenant:
200 address_pool: tenant-pool01
201 dhcp: false
202
203 external:
204 address_pool: external-pool01
205 dhcp: false
206 forward:
207 mode: route
208
209
210 group_volumes:
211 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
212 source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2
213 format: qcow2
214 - name: cfg01_day01_image # Pre-configured day01 image
215 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
216 format: qcow2
217 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
218 source_image: !os_env MCP_IMAGE_PATH1604
219 format: qcow2
220
221 nodes:
222 - name: {{ HOSTNAME_CFG01 }}
223 role: salt_master
224 params:
225 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
226 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
227 boot:
228 - hd
229 cloud_init_volume_name: iso
230 cloud_init_iface_up: ens3
231 volumes:
232 - name: system
233 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
234 backing_store: cfg01_day01_image
235 format: qcow2
236 - name: config
237 capacity: 1
238 format: raw
239 device: cdrom
240 bus: ide
241 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
242 # it will be uploaded after config drive generation
243 - name: iso # Volume with name 'iso' will be used
244 # for store image with cloud-init metadata.
245 capacity: 1
246 format: raw
247 device: cdrom
248 bus: ide
249 cloudinit_meta_data: *cloudinit_meta_data
250 cloudinit_user_data: *cloudinit_user_data_cfg01
251
252 interfaces:
253 - label: ens3
254 l2_network_device: admin
255 interface_model: *interface_model
256 - label: ens4
257 l2_network_device: private
258 interface_model: *interface_model
259 network_config:
260 ens3:
261 networks:
262 - admin
263 ens4:
264 networks:
265 - private
266
267 - name: {{ HOSTNAME_CTL01 }}
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: cinder
282 capacity: 50
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_swp
292
293 interfaces: &interfaces
294 - label: ens3
295 l2_network_device: admin
296 interface_model: *interface_model
297 - label: ens4
298 l2_network_device: private
299 interface_model: *interface_model
300 network_config: &network_config
301 ens3:
302 networks:
303 - admin
304 ens4:
305 networks:
306 - private
307
308 - name: {{ HOSTNAME_CTL02 }}
309 role: salt_minion
310 params:
311 vcpu: !os_env SLAVE_NODE_CPU, 2
312 memory: !os_env SLAVE_NODE_MEMORY, 16384
313 boot:
314 - hd
315 cloud_init_volume_name: iso
316 cloud_init_iface_up: ens3
317 volumes:
318 - name: system
319 capacity: !os_env NODE_VOLUME_SIZE, 150
320 backing_store: mcp_ubuntu_1604_image
321 format: qcow2
322 - name: cinder
323 capacity: 50
324 format: qcow2
325 - name: iso # Volume with name 'iso' will be used
326 # for store image with cloud-init metadata.
327 capacity: 1
328 format: raw
329 device: cdrom
330 bus: ide
331 cloudinit_meta_data: *cloudinit_meta_data
332 cloudinit_user_data: *cloudinit_user_data_1604_swp
333
334 interfaces: *interfaces
335 network_config: *network_config
336
337 - name: {{ HOSTNAME_CTL03 }}
338 role: salt_minion
339 params:
340 vcpu: !os_env SLAVE_NODE_CPU, 2
341 memory: !os_env SLAVE_NODE_MEMORY, 16384
342 boot:
343 - hd
344 cloud_init_volume_name: iso
345 cloud_init_iface_up: ens3
346 volumes:
347 - name: system
348 capacity: !os_env NODE_VOLUME_SIZE, 150
349 backing_store: mcp_ubuntu_1604_image
350 format: qcow2
351 - name: cinder
352 capacity: 50
353 format: qcow2
354 - name: iso # Volume with name 'iso' will be used
355 # for store image with cloud-init metadata.
356 capacity: 1
357 format: raw
358 device: cdrom
359 bus: ide
360 cloudinit_meta_data: *cloudinit_meta_data
361 cloudinit_user_data: *cloudinit_user_data_1604_swp
362
363 interfaces: *interfaces
364 network_config: *network_config
365
366 - name: {{ HOSTNAME_MON01 }}
367 role: salt_minion
368 params:
369 vcpu: !os_env SLAVE_NODE_CPU, 2
370 memory: !os_env SLAVE_NODE_MEMORY, 2048
371 boot:
372 - hd
373 cloud_init_volume_name: iso
374 cloud_init_iface_up: ens3
375 volumes:
376 - name: system
377 capacity: !os_env NODE_VOLUME_SIZE, 150
378 backing_store: mcp_ubuntu_1604_image
379 format: qcow2
380 - name: iso # Volume with name 'iso' will be used
381 # for store image with cloud-init metadata.
382 capacity: 1
383 format: raw
384 device: cdrom
385 bus: ide
386 cloudinit_meta_data: *cloudinit_meta_data
387 cloudinit_user_data: *cloudinit_user_data_1604_swp
388
389 interfaces: *interfaces
390 network_config: *network_config
391
392 - name: {{ HOSTNAME_MON02 }}
393 role: salt_minion
394 params:
395 vcpu: !os_env SLAVE_NODE_CPU, 2
396 memory: !os_env SLAVE_NODE_MEMORY, 2048
397 boot:
398 - hd
399 cloud_init_volume_name: iso
400 cloud_init_iface_up: ens3
401 volumes:
402 - name: system
403 capacity: !os_env NODE_VOLUME_SIZE, 150
404 backing_store: mcp_ubuntu_1604_image
405 format: qcow2
406 - name: iso # Volume with name 'iso' will be used
407 # for store image with cloud-init metadata.
408 capacity: 1
409 format: raw
410 device: cdrom
411 bus: ide
412 cloudinit_meta_data: *cloudinit_meta_data
413 cloudinit_user_data: *cloudinit_user_data_1604_swp
414
415 interfaces: *interfaces
416 network_config: *network_config
417
418 - name: {{ HOSTNAME_MON03 }}
419 role: salt_minion
420 params:
421 vcpu: !os_env SLAVE_NODE_CPU, 2
422 memory: !os_env SLAVE_NODE_MEMORY, 2048
423 boot:
424 - hd
425 cloud_init_volume_name: iso
426 cloud_init_iface_up: ens3
427 volumes:
428 - name: system
429 capacity: !os_env NODE_VOLUME_SIZE, 150
430 backing_store: mcp_ubuntu_1604_image
431 format: qcow2
432 - name: iso # Volume with name 'iso' will be used
433 # for store image with cloud-init metadata.
434 capacity: 1
435 format: raw
436 device: cdrom
437 bus: ide
438 cloudinit_meta_data: *cloudinit_meta_data
439 cloudinit_user_data: *cloudinit_user_data_1604_swp
440
441 interfaces: *interfaces
442 network_config: *network_config
443
444 - name: {{ HOSTNAME_LOG01 }}
445 role: salt_minion
446 params:
447 vcpu: !os_env SLAVE_NODE_CPU, 2
448 memory: !os_env SLAVE_NODE_MEMORY, 4096
449 boot:
450 - hd
451 cloud_init_volume_name: iso
452 cloud_init_iface_up: ens3
453 volumes:
454 - name: system
455 capacity: !os_env NODE_VOLUME_SIZE, 150
456 backing_store: mcp_ubuntu_1604_image
457 format: qcow2
458 - name: iso # Volume with name 'iso' will be used
459 # for store image with cloud-init metadata.
460 capacity: 1
461 format: raw
462 device: cdrom
463 bus: ide
464 cloudinit_meta_data: *cloudinit_meta_data
465 cloudinit_user_data: *cloudinit_user_data_1604_swp
466
467 interfaces: *interfaces
468 network_config: *network_config
469
470 - name: {{ HOSTNAME_LOG02 }}
471 role: salt_minion
472 params:
473 vcpu: !os_env SLAVE_NODE_CPU, 2
474 memory: !os_env SLAVE_NODE_MEMORY, 4096
475 boot:
476 - hd
477 cloud_init_volume_name: iso
478 cloud_init_iface_up: ens3
479 volumes:
480 - name: system
481 capacity: !os_env NODE_VOLUME_SIZE, 150
482 backing_store: mcp_ubuntu_1604_image
483 format: qcow2
484 - name: iso # Volume with name 'iso' will be used
485 # for store image with cloud-init metadata.
486 capacity: 1
487 format: raw
488 device: cdrom
489 bus: ide
490 cloudinit_meta_data: *cloudinit_meta_data
491 cloudinit_user_data: *cloudinit_user_data_1604_swp
492
493 interfaces: *interfaces
494 network_config: *network_config
495
496 - name: {{ HOSTNAME_LOG03 }}
497 role: salt_minion
498 params:
499 vcpu: !os_env SLAVE_NODE_CPU, 2
500 memory: !os_env SLAVE_NODE_MEMORY, 4096
501 boot:
502 - hd
503 cloud_init_volume_name: iso
504 cloud_init_iface_up: ens3
505 volumes:
506 - name: system
507 capacity: !os_env NODE_VOLUME_SIZE, 150
508 backing_store: mcp_ubuntu_1604_image
509 format: qcow2
510 - name: iso # Volume with name 'iso' will be used
511 # for store image with cloud-init metadata.
512 capacity: 1
513 format: raw
514 device: cdrom
515 bus: ide
516 cloudinit_meta_data: *cloudinit_meta_data
517 cloudinit_user_data: *cloudinit_user_data_1604_swp
518
519 interfaces: *interfaces
520 network_config: *network_config
521
522 - name: {{ HOSTNAME_MTR01 }}
523 role: salt_minion
524 params:
525 vcpu: !os_env SLAVE_NODE_CPU, 2
526 memory: !os_env SLAVE_NODE_MEMORY, 2048
527 boot:
528 - hd
529 cloud_init_volume_name: iso
530 cloud_init_iface_up: ens3
531 volumes:
532 - name: system
533 capacity: !os_env NODE_VOLUME_SIZE, 150
534 backing_store: mcp_ubuntu_1604_image
535 format: qcow2
536 - name: iso # Volume with name 'iso' will be used
537 # for store image with cloud-init metadata.
538 capacity: 1
539 format: raw
540 device: cdrom
541 bus: ide
542 cloudinit_meta_data: *cloudinit_meta_data
543 cloudinit_user_data: *cloudinit_user_data_1604_swp
544
545 interfaces: *interfaces
546 network_config: *network_config
547
548 - name: {{ HOSTNAME_MTR02 }}
549 role: salt_minion
550 params:
551 vcpu: !os_env SLAVE_NODE_CPU, 2
552 memory: !os_env SLAVE_NODE_MEMORY, 2048
553 boot:
554 - hd
555 cloud_init_volume_name: iso
556 cloud_init_iface_up: ens3
557 volumes:
558 - name: system
559 capacity: !os_env NODE_VOLUME_SIZE, 150
560 backing_store: mcp_ubuntu_1604_image
561 format: qcow2
562 - name: iso # Volume with name 'iso' will be used
563 # for store image with cloud-init metadata.
564 capacity: 1
565 format: raw
566 device: cdrom
567 bus: ide
568 cloudinit_meta_data: *cloudinit_meta_data
569 cloudinit_user_data: *cloudinit_user_data_1604_swp
570
571 interfaces: *interfaces
572 network_config: *network_config
573
574 - name: {{ HOSTNAME_MTR03 }}
575 role: salt_minion
576 params:
577 vcpu: !os_env SLAVE_NODE_CPU, 2
578 memory: !os_env SLAVE_NODE_MEMORY, 2048
579 boot:
580 - hd
581 cloud_init_volume_name: iso
582 cloud_init_iface_up: ens3
583 volumes:
584 - name: system
585 capacity: !os_env NODE_VOLUME_SIZE, 150
586 backing_store: mcp_ubuntu_1604_image
587 format: qcow2
588 - name: iso # Volume with name 'iso' will be used
589 # for store image with cloud-init metadata.
590 capacity: 1
591 format: raw
592 device: cdrom
593 bus: ide
594 cloudinit_meta_data: *cloudinit_meta_data
595 cloudinit_user_data: *cloudinit_user_data_1604_swp
596
597 interfaces: *interfaces
598 network_config: *network_config
599
600 - name: {{ HOSTNAME_PRX01 }}
601 role: salt_minion
602 params:
603 vcpu: !os_env SLAVE_NODE_CPU, 1
604 memory: !os_env SLAVE_NODE_MEMORY, 2048
605 boot:
606 - hd
607 cloud_init_volume_name: iso
608 cloud_init_iface_up: ens3
609 volumes:
610 - name: system
611 capacity: !os_env NODE_VOLUME_SIZE, 150
612 backing_store: mcp_ubuntu_1604_image
613 format: qcow2
614 - name: cinder
615 capacity: 50
616 format: qcow2
617 - name: iso # Volume with name 'iso' will be used
618 # for store image with cloud-init metadata.
619 capacity: 1
620 format: raw
621 device: cdrom
622 bus: ide
623 cloudinit_meta_data: *cloudinit_meta_data
624 cloudinit_user_data: *cloudinit_user_data_1604_swp
625
626 interfaces: *interfaces
627 network_config: *network_config
628
629
630 - name: {{ HOSTNAME_CMP01 }}
631 role: salt_minion
632 params:
633 vcpu: !os_env SLAVE_NODE_CPU, 3
634 memory: !os_env SLAVE_NODE_MEMORY, 4096
635 boot:
636 - hd
637 cloud_init_volume_name: iso
638 cloud_init_iface_up: ens3
639 volumes:
640 - name: system
641 capacity: !os_env NODE_VOLUME_SIZE, 150
642 backing_store: cloudimage1604
643 format: qcow2
644 - name: iso # Volume with name 'iso' will be used
645 # for store image with cloud-init metadata.
646 capacity: 1
647 format: raw
648 device: cdrom
649 bus: ide
650 cloudinit_meta_data: *cloudinit_meta_data
651 cloudinit_user_data: *cloudinit_user_data_1604_swp
652
653
654 interfaces: &all_interfaces
655 - label: ens3
656 l2_network_device: admin
657 interface_model: *interface_model
658 - label: ens4
659 l2_network_device: private
660 interface_model: *interface_model
661 - label: ens5
662 l2_network_device: tenant
663 interface_model: *interface_model
664 - label: ens6
665 l2_network_device: external
666 interface_model: *interface_model
667 network_config: &all_network_config
668 ens3:
669 networks:
670 - admin
671 ens4:
672 networks:
673 - private
674 ens5:
675 networks:
676 - tenant
677 ens6:
678 networks:
679 - external
680
681 - name: {{ HOSTNAME_CMP02 }}
682 role: salt_minion
683 params:
684 vcpu: !os_env SLAVE_NODE_CPU, 3
685 memory: !os_env SLAVE_NODE_MEMORY, 4096
686 boot:
687 - hd
688 cloud_init_volume_name: iso
689 cloud_init_iface_up: ens3
690 volumes:
691 - name: system
692 capacity: !os_env NODE_VOLUME_SIZE, 150
693 backing_store: cloudimage1604
694 format: qcow2
695 - name: iso # Volume with name 'iso' will be used
696 # for store image with cloud-init metadata.
697 capacity: 1
698 format: raw
699 device: cdrom
700 bus: ide
701 cloudinit_meta_data: *cloudinit_meta_data
702 cloudinit_user_data: *cloudinit_user_data_1604_swp
703
704 interfaces: *all_interfaces
705 network_config: *all_network_config
706
707 - name: {{ HOSTNAME_GTW01 }}
708 role: salt_minion
709 params:
710 vcpu: !os_env SLAVE_NODE_CPU, 4
711 memory: !os_env SLAVE_NODE_MEMORY, 4096
712 boot:
713 - hd
714 cloud_init_volume_name: iso
715 cloud_init_iface_up: ens3
716 volumes:
717 - name: system
718 capacity: !os_env NODE_VOLUME_SIZE, 150
719 backing_store: cloudimage1604
720 format: qcow2
721 - name: iso # Volume with name 'iso' will be used
722 # for store image with cloud-init metadata.
723 capacity: 1
724 format: raw
725 device: cdrom
726 bus: ide
727 cloudinit_meta_data: *cloudinit_meta_data
728 cloudinit_user_data: *cloudinit_user_data_1604_swp
729
730 interfaces: *all_interfaces
731 network_config: *all_network_config
732
733 - name: {{ HOSTNAME_KVM01 }}
734 role: salt_minion
735 params:
736 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
737 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
738 boot:
739 - hd
740 cloud_init_volume_name: iso
741 cloud_init_iface_up: ens3
742 volumes:
743 - name: system
744 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
745 backing_store: mcp_ubuntu_1604_image
746 format: qcow2
747 - name: iso # Volume with name 'iso' will be used
748 # for store image with cloud-init metadata.
749 capacity: 1
750 format: raw
751 device: cdrom
752 bus: ide
753 cloudinit_meta_data: *cloudinit_meta_data
754 cloudinit_user_data: *cloudinit_user_data_1604_swp
755
756 interfaces: *interfaces
757 network_config: *network_config
758
759 - name: {{ HOSTNAME_KVM02 }}
760 role: salt_minion
761 params:
762 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
763 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
764 boot:
765 - hd
766 cloud_init_volume_name: iso
767 cloud_init_iface_up: ens3
768 volumes:
769 - name: system
770 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
771 backing_store: mcp_ubuntu_1604_image
772 format: qcow2
773 - name: iso # Volume with name 'iso' will be used
774 # for store image with cloud-init metadata.
775 capacity: 1
776 format: raw
777 device: cdrom
778 bus: ide
779 cloudinit_meta_data: *cloudinit_meta_data
780 cloudinit_user_data: *cloudinit_user_data_1604_swp
781
782 interfaces: *interfaces
783 network_config: *network_config
784
785 - name: {{ HOSTNAME_KVM03 }}
786 role: salt_minion
787 params:
788 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
789 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
790 boot:
791 - hd
792 cloud_init_volume_name: iso
793 cloud_init_iface_up: ens3
794 volumes:
795 - name: system
796 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
797 backing_store: mcp_ubuntu_1604_image
798 format: qcow2
799 - name: iso # Volume with name 'iso' will be used
800 # for store image with cloud-init metadata.
801 capacity: 1
802 format: raw
803 device: cdrom
804 bus: ide
805 cloudinit_meta_data: *cloudinit_meta_data
806 cloudinit_user_data: *cloudinit_user_data_1604_swp
807
808 interfaces: *interfaces
809 network_config: *network_config
810
811 - name: {{ HOSTNAME_CID01 }}
812 role: salt_minion
813 params:
814 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
815 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
816 boot:
817 - hd
818 cloud_init_volume_name: iso
819 cloud_init_iface_up: ens3
820 volumes:
821 - name: system
822 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
823 backing_store: mcp_ubuntu_1604_image
824 format: qcow2
825 - name: iso # Volume with name 'iso' will be used
826 # for store image with cloud-init metadata.
827 capacity: 1
828 format: raw
829 device: cdrom
830 bus: ide
831 cloudinit_meta_data: *cloudinit_meta_data
832 cloudinit_user_data: *cloudinit_user_data_1604_swp
833
834 interfaces: *interfaces
835 network_config: *network_config
836
837 - name: {{ HOSTNAME_CID02 }}
838 role: salt_minion
839 params:
840 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
841 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
842 boot:
843 - hd
844 cloud_init_volume_name: iso
845 cloud_init_iface_up: ens3
846 volumes:
847 - name: system
848 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
849 backing_store: mcp_ubuntu_1604_image
850 format: qcow2
851 - name: iso # Volume with name 'iso' will be used
852 # for store image with cloud-init metadata.
853 capacity: 1
854 format: raw
855 device: cdrom
856 bus: ide
857 cloudinit_meta_data: *cloudinit_meta_data
858 cloudinit_user_data: *cloudinit_user_data_1604_swp
859
860 interfaces: *interfaces
861 network_config: *network_config
862
863 - name: {{ HOSTNAME_CID03 }}
864 role: salt_minion
865 params:
866 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
867 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
868 boot:
869 - hd
870 cloud_init_volume_name: iso
871 cloud_init_iface_up: ens3
872 volumes:
873 - name: system
874 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
875 backing_store: mcp_ubuntu_1604_image
876 format: qcow2
877 - name: iso # Volume with name 'iso' will be used
878 # for store image with cloud-init metadata.
879 capacity: 1
880 format: raw
881 device: cdrom
882 bus: ide
883 cloudinit_meta_data: *cloudinit_meta_data
884 cloudinit_user_data: *cloudinit_user_data_1604_swp
885
886 interfaces: *interfaces
887 network_config: *network_config