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