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