blob: b30c9dc657e3f82df5438a9a10f612ee12d39cef [file] [log] [blame]
Oleksii Butenko87d00c02018-09-05 19:11:17 +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-queens-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-queens-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-queens-dvr/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') %}
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_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
32{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
33#{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
34#{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
35{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
36
37template:
38 devops_settings:
39 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-queens-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
40
41 address_pools:
42 private-pool01:
43 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
44 params:
45 ip_reserved:
46 gateway: +1
47 l2_network_device: +1
48 default_{{ HOSTNAME_CFG01 }}: +100
49 default_{{ HOSTNAME_CTL01 }}: +101
50 default_{{ HOSTNAME_CTL02 }}: +102
51 default_{{ HOSTNAME_CTL03 }}: +103
52 default_{{ HOSTNAME_CMP01 }}: +105
53 default_{{ HOSTNAME_CMP02 }}: +106
54 default_{{ HOSTNAME_MON01 }}: +71
55 default_{{ HOSTNAME_MON02 }}: +72
56 default_{{ HOSTNAME_MON03 }}: +73
57 default_{{ HOSTNAME_LOG01 }}: +61
58 default_{{ HOSTNAME_LOG02 }}: +62
59 default_{{ HOSTNAME_LOG03 }}: +63
60 default_{{ HOSTNAME_MTR01 }}: +86
61 default_{{ HOSTNAME_MTR02 }}: +87
62 default_{{ HOSTNAME_MTR03 }}: +88
63 default_{{ HOSTNAME_GTW01 }}: +110
64# default_{{ HOSTNAME_DNS01 }}: +111
65# default_{{ HOSTNAME_DNS02 }}: +112
66 default_{{ HOSTNAME_PRX01 }}: +121
67 ip_ranges:
68 dhcp: [+90, -10]
69
70 admin-pool01:
71 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
72 params:
73 ip_reserved:
74 gateway: +1
75 l2_network_device: +1
76 default_{{ HOSTNAME_CFG01 }}: +90
77 default_{{ HOSTNAME_CTL01 }}: +101
78 default_{{ HOSTNAME_CTL02 }}: +102
79 default_{{ HOSTNAME_CTL03 }}: +103
80 default_{{ HOSTNAME_CMP01 }}: +105
81 default_{{ HOSTNAME_CMP02 }}: +106
82 default_{{ HOSTNAME_MON01 }}: +71
83 default_{{ HOSTNAME_MON02 }}: +72
84 default_{{ HOSTNAME_MON03 }}: +73
85 default_{{ HOSTNAME_LOG01 }}: +61
86 default_{{ HOSTNAME_LOG02 }}: +62
87 default_{{ HOSTNAME_LOG03 }}: +63
88 default_{{ HOSTNAME_MTR01 }}: +86
89 default_{{ HOSTNAME_MTR02 }}: +87
90 default_{{ HOSTNAME_MTR03 }}: +88
91 default_{{ HOSTNAME_GTW01 }}: +110
92# default_{{ HOSTNAME_DNS01 }}: +111
93# default_{{ HOSTNAME_DNS02 }}: +112
94 default_{{ HOSTNAME_PRX01 }}: +121
95 ip_ranges:
96 dhcp: [+90, -10]
97
98 tenant-pool01:
99 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
100 params:
101 ip_reserved:
102 gateway: +1
103 l2_network_device: +1
104 default_{{ HOSTNAME_CFG01 }}: +100
105 default_{{ HOSTNAME_CTL01 }}: +101
106 default_{{ HOSTNAME_CTL02 }}: +102
107 default_{{ HOSTNAME_CTL03 }}: +103
108 default_{{ HOSTNAME_CMP01 }}: +105
109 default_{{ HOSTNAME_CMP02 }}: +106
110 default_{{ HOSTNAME_MON01 }}: +71
111 default_{{ HOSTNAME_MON02 }}: +72
112 default_{{ HOSTNAME_MON03 }}: +73
113 default_{{ HOSTNAME_LOG01 }}: +61
114 default_{{ HOSTNAME_LOG02 }}: +62
115 default_{{ HOSTNAME_LOG03 }}: +63
116 default_{{ HOSTNAME_MTR01 }}: +86
117 default_{{ HOSTNAME_MTR02 }}: +87
118 default_{{ HOSTNAME_MTR03 }}: +88
119 default_{{ HOSTNAME_GTW01 }}: +110
120# default_{{ HOSTNAME_DNS01 }}: +111
121# default_{{ HOSTNAME_DNS02 }}: +112
122 default_{{ HOSTNAME_PRX01 }}: +121
123 ip_ranges:
124 dhcp: [+10, -10]
125
126 external-pool01:
127 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
128 params:
129 ip_reserved:
130 gateway: +1
131 l2_network_device: +1
132 default_{{ HOSTNAME_CFG01 }}: +100
133 default_{{ HOSTNAME_CTL01 }}: +101
134 default_{{ HOSTNAME_CTL02 }}: +102
135 default_{{ HOSTNAME_CTL03 }}: +103
136 default_{{ HOSTNAME_CMP01 }}: +105
137 default_{{ HOSTNAME_CMP02 }}: +106
138 default_{{ HOSTNAME_MON01 }}: +71
139 default_{{ HOSTNAME_MON02 }}: +72
140 default_{{ HOSTNAME_MON03 }}: +73
141 default_{{ HOSTNAME_LOG01 }}: +61
142 default_{{ HOSTNAME_LOG02 }}: +62
143 default_{{ HOSTNAME_LOG03 }}: +63
144 default_{{ HOSTNAME_MTR01 }}: +86
145 default_{{ HOSTNAME_MTR02 }}: +87
146 default_{{ HOSTNAME_MTR03 }}: +88
147 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300148 default_{{ HOSTNAME_PRX01 }}: +121
149 ip_ranges:
Oleksii Butenkoffc09222018-09-21 12:37:16 +0300150 dhcp: [+130, +220]
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300151
152
153 groups:
154 - name: default
155 driver:
156 name: devops.driver.libvirt
157 params:
158 connection_string: !os_env CONNECTION_STRING, qemu:///system
159 storage_pool_name: !os_env STORAGE_POOL_NAME, default
160 stp: False
161 hpet: False
162 enable_acpi: true
163 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
164 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
165
166 network_pools:
167 admin: admin-pool01
168 private: private-pool01
169 tenant: tenant-pool01
170 external: external-pool01
171
172 l2_network_devices:
173 private:
174 address_pool: private-pool01
175 dhcp: false
176 forward:
177 mode: route
178
179 admin:
180 address_pool: admin-pool01
181 dhcp: true
182 forward:
183 mode: nat
184
185 tenant:
186 address_pool: tenant-pool01
187 dhcp: false
188
189 external:
190 address_pool: external-pool01
191 dhcp: false
192 forward:
193 mode: route
194
195
196 group_volumes:
197 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
198 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
199 format: qcow2
200 - name: cfg01_day01_image # Pre-configured day01 image
201 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
202 format: qcow2
203 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
204 source_image: !os_env MCP_IMAGE_PATH1604
205 format: qcow2
206
207 nodes:
208 - name: {{ HOSTNAME_CFG01 }}
209 role: salt_master
210 params:
211 vcpu: !os_env SLAVE_NODE_CPU, 2
212 memory: !os_env SLAVE_NODE_MEMORY, 8192
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: cfg01_day01_image
221 format: qcow2
222 - 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_cfg01
230
231 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:
239 ens3:
240 networks:
241 - admin
242 ens4:
243 networks:
244 - private
245
246 - name: {{ HOSTNAME_CTL01 }}
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
260 - name: cinder
261 capacity: 50
262 format: qcow2
263 - name: iso # Volume with name 'iso' will be used
264 # for store image with cloud-init metadata.
265 capacity: 1
266 format: raw
267 device: cdrom
268 bus: ide
269 cloudinit_meta_data: *cloudinit_meta_data
270 cloudinit_user_data: *cloudinit_user_data_1604
271
272 interfaces: &interfaces
273 - label: ens3
274 l2_network_device: admin
275 interface_model: *interface_model
276 - label: ens4
277 l2_network_device: private
278 interface_model: *interface_model
279 network_config: &network_config
280 ens3:
281 networks:
282 - admin
283 ens4:
284 networks:
285 - private
286
287 - name: {{ HOSTNAME_CTL02 }}
288 role: salt_minion
289 params:
290 vcpu: !os_env SLAVE_NODE_CPU, 2
291 memory: !os_env SLAVE_NODE_MEMORY, 16384
292 boot:
293 - hd
294 cloud_init_volume_name: iso
295 cloud_init_iface_up: ens3
296 volumes:
297 - name: system
298 capacity: !os_env NODE_VOLUME_SIZE, 150
299 backing_store: mcp_ubuntu_1604_image
300 format: qcow2
301 - name: cinder
302 capacity: 50
303 format: qcow2
304 - name: iso # Volume with name 'iso' will be used
305 # for store image with cloud-init metadata.
306 capacity: 1
307 format: raw
308 device: cdrom
309 bus: ide
310 cloudinit_meta_data: *cloudinit_meta_data
311 cloudinit_user_data: *cloudinit_user_data_1604
312
313 interfaces: *interfaces
314 network_config: *network_config
315
316 - name: {{ HOSTNAME_CTL03 }}
317 role: salt_minion
318 params:
319 vcpu: !os_env SLAVE_NODE_CPU, 2
320 memory: !os_env SLAVE_NODE_MEMORY, 16384
321 boot:
322 - hd
323 cloud_init_volume_name: iso
324 cloud_init_iface_up: ens3
325 volumes:
326 - name: system
327 capacity: !os_env NODE_VOLUME_SIZE, 150
328 backing_store: mcp_ubuntu_1604_image
329 format: qcow2
330 - name: cinder
331 capacity: 50
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_MON01 }}
346 role: salt_minion
347 params:
348 vcpu: !os_env SLAVE_NODE_CPU, 2
349 memory: !os_env SLAVE_NODE_MEMORY, 4096
350 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
371 - name: {{ HOSTNAME_MON02 }}
372 role: salt_minion
373 params:
374 vcpu: !os_env SLAVE_NODE_CPU, 2
375 memory: !os_env SLAVE_NODE_MEMORY, 4096
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_MON03 }}
398 role: salt_minion
399 params:
400 vcpu: !os_env SLAVE_NODE_CPU, 2
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: mcp_ubuntu_1604_image
410 format: qcow2
411 - name: iso # Volume with name 'iso' will be used
412 # for store image with cloud-init metadata.
413 capacity: 1
414 format: raw
415 device: cdrom
416 bus: ide
417 cloudinit_meta_data: *cloudinit_meta_data
418 cloudinit_user_data: *cloudinit_user_data_1604
419
420 interfaces: *interfaces
421 network_config: *network_config
422
423 - name: {{ HOSTNAME_LOG01 }}
424 role: salt_minion
425 params:
426 vcpu: !os_env SLAVE_NODE_CPU, 2
427 memory: !os_env SLAVE_NODE_MEMORY, 4096
428 boot:
429 - hd
430 cloud_init_volume_name: iso
431 cloud_init_iface_up: ens3
432 volumes:
433 - name: system
434 capacity: !os_env NODE_VOLUME_SIZE, 150
435 backing_store: mcp_ubuntu_1604_image
436 format: qcow2
437 - name: iso # Volume with name 'iso' will be used
438 # for store image with cloud-init metadata.
439 capacity: 1
440 format: raw
441 device: cdrom
442 bus: ide
443 cloudinit_meta_data: *cloudinit_meta_data
444 cloudinit_user_data: *cloudinit_user_data_1604
445
446 interfaces: *interfaces
447 network_config: *network_config
448
449 - name: {{ HOSTNAME_LOG02 }}
450 role: salt_minion
451 params:
452 vcpu: !os_env SLAVE_NODE_CPU, 2
453 memory: !os_env SLAVE_NODE_MEMORY, 4096
454 boot:
455 - hd
456 cloud_init_volume_name: iso
457 cloud_init_iface_up: ens3
458 volumes:
459 - name: system
460 capacity: !os_env NODE_VOLUME_SIZE, 150
461 backing_store: mcp_ubuntu_1604_image
462 format: qcow2
463 - name: iso # Volume with name 'iso' will be used
464 # for store image with cloud-init metadata.
465 capacity: 1
466 format: raw
467 device: cdrom
468 bus: ide
469 cloudinit_meta_data: *cloudinit_meta_data
470 cloudinit_user_data: *cloudinit_user_data_1604
471
472 interfaces: *interfaces
473 network_config: *network_config
474
475 - name: {{ HOSTNAME_LOG03 }}
476 role: salt_minion
477 params:
478 vcpu: !os_env SLAVE_NODE_CPU, 2
479 memory: !os_env SLAVE_NODE_MEMORY, 4096
480 boot:
481 - hd
482 cloud_init_volume_name: iso
483 cloud_init_iface_up: ens3
484 volumes:
485 - name: system
486 capacity: !os_env NODE_VOLUME_SIZE, 150
487 backing_store: mcp_ubuntu_1604_image
488 format: qcow2
489 - name: iso # Volume with name 'iso' will be used
490 # for store image with cloud-init metadata.
491 capacity: 1
492 format: raw
493 device: cdrom
494 bus: ide
495 cloudinit_meta_data: *cloudinit_meta_data
496 cloudinit_user_data: *cloudinit_user_data_1604
497
498 interfaces: *interfaces
499 network_config: *network_config
500
501 - name: {{ HOSTNAME_MTR01 }}
502 role: salt_minion
503 params:
504 vcpu: !os_env SLAVE_NODE_CPU, 2
505 memory: !os_env SLAVE_NODE_MEMORY, 4096
506 boot:
507 - hd
508 cloud_init_volume_name: iso
509 cloud_init_iface_up: ens3
510 volumes:
511 - name: system
512 capacity: !os_env NODE_VOLUME_SIZE, 150
513 backing_store: mcp_ubuntu_1604_image
514 format: qcow2
515 - name: iso # Volume with name 'iso' will be used
516 # for store image with cloud-init metadata.
517 capacity: 1
518 format: raw
519 device: cdrom
520 bus: ide
521 cloudinit_meta_data: *cloudinit_meta_data
522 cloudinit_user_data: *cloudinit_user_data_1604
523
524 interfaces: *interfaces
525 network_config: *network_config
526
527 - name: {{ HOSTNAME_MTR02 }}
528 role: salt_minion
529 params:
530 vcpu: !os_env SLAVE_NODE_CPU, 2
531 memory: !os_env SLAVE_NODE_MEMORY, 4096
532 boot:
533 - hd
534 cloud_init_volume_name: iso
535 cloud_init_iface_up: ens3
536 volumes:
537 - name: system
538 capacity: !os_env NODE_VOLUME_SIZE, 150
539 backing_store: mcp_ubuntu_1604_image
540 format: qcow2
541 - name: iso # Volume with name 'iso' will be used
542 # for store image with cloud-init metadata.
543 capacity: 1
544 format: raw
545 device: cdrom
546 bus: ide
547 cloudinit_meta_data: *cloudinit_meta_data
548 cloudinit_user_data: *cloudinit_user_data_1604
549
550 interfaces: *interfaces
551 network_config: *network_config
552
553 - name: {{ HOSTNAME_MTR03 }}
554 role: salt_minion
555 params:
556 vcpu: !os_env SLAVE_NODE_CPU, 2
557 memory: !os_env SLAVE_NODE_MEMORY, 4096
558 boot:
559 - hd
560 cloud_init_volume_name: iso
561 cloud_init_iface_up: ens3
562 volumes:
563 - name: system
564 capacity: !os_env NODE_VOLUME_SIZE, 150
565 backing_store: mcp_ubuntu_1604_image
566 format: qcow2
567 - name: iso # Volume with name 'iso' will be used
568 # for store image with cloud-init metadata.
569 capacity: 1
570 format: raw
571 device: cdrom
572 bus: ide
573 cloudinit_meta_data: *cloudinit_meta_data
574 cloudinit_user_data: *cloudinit_user_data_1604
575
576 interfaces: *interfaces
577 network_config: *network_config
578
579 - name: {{ HOSTNAME_PRX01 }}
580 role: salt_minion
581 params:
582 vcpu: !os_env SLAVE_NODE_CPU, 1
583 memory: !os_env SLAVE_NODE_MEMORY, 2048
584 boot:
585 - hd
586 cloud_init_volume_name: iso
587 cloud_init_iface_up: ens3
588 volumes:
589 - name: system
590 capacity: !os_env NODE_VOLUME_SIZE, 150
591 backing_store: mcp_ubuntu_1604_image
592 format: qcow2
593 - name: cinder
594 capacity: 50
595 format: qcow2
596 - name: iso # Volume with name 'iso' will be used
597 # for store image with cloud-init metadata.
598 capacity: 1
599 format: raw
600 device: cdrom
601 bus: ide
602 cloudinit_meta_data: *cloudinit_meta_data
603 cloudinit_user_data: *cloudinit_user_data_1604
604
605 interfaces: *interfaces
606 network_config: *network_config
607
608
609 - name: {{ HOSTNAME_CMP01 }}
610 role: salt_minion
611 params:
612 vcpu: !os_env SLAVE_NODE_CPU, 3
613 memory: !os_env SLAVE_NODE_MEMORY, 4096
614 boot:
615 - hd
616 cloud_init_volume_name: iso
617 cloud_init_iface_up: ens3
618 volumes:
619 - name: system
620 capacity: !os_env NODE_VOLUME_SIZE, 150
621 backing_store: cloudimage1604
622 format: qcow2
623 - name: iso # Volume with name 'iso' will be used
624 # for store image with cloud-init metadata.
625 capacity: 1
626 format: raw
627 device: cdrom
628 bus: ide
629 cloudinit_meta_data: *cloudinit_meta_data
630 cloudinit_user_data: *cloudinit_user_data_1604
631
632
633 interfaces: &all_interfaces
634 - label: ens3
635 l2_network_device: admin
636 interface_model: *interface_model
637 - label: ens4
638 l2_network_device: private
639 interface_model: *interface_model
640 - label: ens5
641 l2_network_device: tenant
642 interface_model: *interface_model
643 - label: ens6
644 l2_network_device: external
645 interface_model: *interface_model
646 network_config: &all_network_config
647 ens3:
648 networks:
649 - admin
650 ens4:
651 networks:
652 - private
653 ens5:
654 networks:
655 - tenant
656 ens6:
657 networks:
658 - external
659
660 - name: {{ HOSTNAME_CMP02 }}
661 role: salt_minion
662 params:
663 vcpu: !os_env SLAVE_NODE_CPU, 3
664 memory: !os_env SLAVE_NODE_MEMORY, 4096
665 boot:
666 - hd
667 cloud_init_volume_name: iso
668 cloud_init_iface_up: ens3
669 volumes:
670 - name: system
671 capacity: !os_env NODE_VOLUME_SIZE, 150
672 backing_store: cloudimage1604
673 format: qcow2
674 - name: iso # Volume with name 'iso' will be used
675 # for store image with cloud-init metadata.
676 capacity: 1
677 format: raw
678 device: cdrom
679 bus: ide
680 cloudinit_meta_data: *cloudinit_meta_data
681 cloudinit_user_data: *cloudinit_user_data_1604
682
683 interfaces: *all_interfaces
684 network_config: *all_network_config
685
686 - name: {{ HOSTNAME_GTW01 }}
687 role: salt_minion
688 params:
689 vcpu: !os_env SLAVE_NODE_CPU, 4
690 memory: !os_env SLAVE_NODE_MEMORY, 4096
691 boot:
692 - hd
693 cloud_init_volume_name: iso
694 cloud_init_iface_up: ens3
695 volumes:
696 - name: system
697 capacity: !os_env NODE_VOLUME_SIZE, 150
698 backing_store: cloudimage1604
699 format: qcow2
700 - name: iso # Volume with name 'iso' will be used
701 # for store image with cloud-init metadata.
702 capacity: 1
703 format: raw
704 device: cdrom
705 bus: ide
706 cloudinit_meta_data: *cloudinit_meta_data
707 cloudinit_user_data: *cloudinit_user_data_1604
708
709 interfaces: *all_interfaces
710 network_config: *all_network_config
711
712# - name: {{ HOSTNAME_DNS01 }}
713# role: salt_minion
714# params:
715# vcpu: !os_env SLAVE_NODE_CPU, 1
716# memory: !os_env SLAVE_NODE_MEMORY, 2048
717# boot:
718# - hd
719# cloud_init_volume_name: iso
720# cloud_init_iface_up: ens3
721# volumes:
722# - name: system
723# capacity: !os_env NODE_VOLUME_SIZE, 150
724# backing_store: mcp_ubuntu_1604_image
725# format: qcow2
726# - name: iso # Volume with name 'iso' will be used
727# # for store image with cloud-init metadata.
728# capacity: 1
729# format: raw
730# device: cdrom
731# bus: ide
732# cloudinit_meta_data: *cloudinit_meta_data
733# cloudinit_user_data: *cloudinit_user_data_1604
734#
735# interfaces: *all_interfaces
736# network_config: *all_network_config
737#
738# - name: {{ HOSTNAME_DNS02 }}
739# role: salt_minion
740# params:
741# vcpu: !os_env SLAVE_NODE_CPU, 1
742# memory: !os_env SLAVE_NODE_MEMORY, 2048
743# boot:
744# - hd
745# cloud_init_volume_name: iso
746# cloud_init_iface_up: ens3
747# volumes:
748# - name: system
749# capacity: !os_env NODE_VOLUME_SIZE, 150
750# backing_store: mcp_ubuntu_1604_image
751# format: qcow2
752# - name: iso # Volume with name 'iso' will be used
753# # for store image with cloud-init metadata.
754# capacity: 1
755# format: raw
756# device: cdrom
757# bus: ide
758# cloudinit_meta_data: *cloudinit_meta_data
759# cloudinit_user_data: *cloudinit_user_data_1604
760#
761# interfaces: *all_interfaces
762# network_config: *all_network_config