blob: 78ef271c143229b1bd7104e3483f088644db9903 [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-ovs-sl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
Dennis Dmitrievb3b37492018-07-08 21:23:00 +03005{% import 'cookied-cicd-pike-ovs-sl/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-ovs-sl') %}
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_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
26{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
27{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
30{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
31{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
32{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
33{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
34{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
35{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
36{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
37{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
38
39template:
40 devops_settings:
41 env_name: {{ os_env('ENV_NAME', 'cookied-cicd-pike-ovs-sl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
42
43 address_pools:
44 private-pool01:
45 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
46 params:
47 ip_reserved:
48 gateway: +1
49 l2_network_device: +1
50 default_{{ HOSTNAME_CFG01 }}: +15
51 default_{{ HOSTNAME_KVM }}: +240
52 default_{{ HOSTNAME_KVM01 }}: +241
53 default_{{ HOSTNAME_KVM02 }}: +242
54 default_{{ HOSTNAME_KVM03 }}: +243
55 default_{{ HOSTNAME_CID }}: +90
56 default_{{ HOSTNAME_CID01 }}: +91
57 default_{{ HOSTNAME_CID02 }}: +92
58 default_{{ HOSTNAME_CID03 }}: +93
59 default_{{ HOSTNAME_CTL01 }}: +101
60 default_{{ HOSTNAME_CTL02 }}: +102
61 default_{{ HOSTNAME_CTL03 }}: +103
62 default_{{ HOSTNAME_CMP01 }}: +105
63 default_{{ HOSTNAME_CMP02 }}: +106
64 default_{{ HOSTNAME_MON01 }}: +71
65 default_{{ HOSTNAME_MON02 }}: +72
66 default_{{ HOSTNAME_MON03 }}: +73
67 default_{{ HOSTNAME_LOG01 }}: +61
68 default_{{ HOSTNAME_LOG02 }}: +62
69 default_{{ HOSTNAME_LOG03 }}: +63
70 default_{{ HOSTNAME_MTR01 }}: +86
71 default_{{ HOSTNAME_MTR02 }}: +87
72 default_{{ HOSTNAME_MTR03 }}: +88
73 default_{{ HOSTNAME_GTW01 }}: +110
74 default_{{ HOSTNAME_PRX01 }}: +121
75 ip_ranges:
76 dhcp: [+90, -10]
77
78 admin-pool01:
79 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
80 params:
81 ip_reserved:
82 gateway: +1
83 l2_network_device: +1
84 default_{{ HOSTNAME_CFG01 }}: +15
85 default_{{ HOSTNAME_KVM }}: +240
86 default_{{ HOSTNAME_KVM01 }}: +241
87 default_{{ HOSTNAME_KVM02 }}: +242
88 default_{{ HOSTNAME_KVM03 }}: +243
89 default_{{ HOSTNAME_CID }}: +90
90 default_{{ HOSTNAME_CID01 }}: +91
91 default_{{ HOSTNAME_CID02 }}: +92
92 default_{{ HOSTNAME_CID03 }}: +93
93 default_{{ HOSTNAME_CTL01 }}: +101
94 default_{{ HOSTNAME_CTL02 }}: +102
95 default_{{ HOSTNAME_CTL03 }}: +103
96 default_{{ HOSTNAME_CMP01 }}: +105
97 default_{{ HOSTNAME_CMP02 }}: +106
98 default_{{ HOSTNAME_MON01 }}: +71
99 default_{{ HOSTNAME_MON02 }}: +72
100 default_{{ HOSTNAME_MON03 }}: +73
101 default_{{ HOSTNAME_LOG01 }}: +61
102 default_{{ HOSTNAME_LOG02 }}: +62
103 default_{{ HOSTNAME_LOG03 }}: +63
104 default_{{ HOSTNAME_MTR01 }}: +86
105 default_{{ HOSTNAME_MTR02 }}: +87
106 default_{{ HOSTNAME_MTR03 }}: +88
107 default_{{ HOSTNAME_GTW01 }}: +110
108 default_{{ HOSTNAME_PRX01 }}: +121
109 ip_ranges:
110 dhcp: [+90, -10]
111
112 tenant-pool01:
113 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
114 params:
115 ip_reserved:
116 gateway: +1
117 l2_network_device: +1
118 default_{{ HOSTNAME_CFG01 }}: +15
119 default_{{ HOSTNAME_CTL01 }}: +101
120 default_{{ HOSTNAME_CTL02 }}: +102
121 default_{{ HOSTNAME_CTL03 }}: +103
122 default_{{ HOSTNAME_CMP01 }}: +105
123 default_{{ HOSTNAME_CMP02 }}: +106
124 default_{{ HOSTNAME_MON01 }}: +71
125 default_{{ HOSTNAME_MON02 }}: +72
126 default_{{ HOSTNAME_MON03 }}: +73
127 default_{{ HOSTNAME_LOG01 }}: +61
128 default_{{ HOSTNAME_LOG02 }}: +62
129 default_{{ HOSTNAME_LOG03 }}: +63
130 default_{{ HOSTNAME_MTR01 }}: +86
131 default_{{ HOSTNAME_MTR02 }}: +87
132 default_{{ HOSTNAME_MTR03 }}: +88
133 default_{{ HOSTNAME_GTW01 }}: +110
134 default_{{ HOSTNAME_PRX01 }}: +121
135 ip_ranges:
136 dhcp: [+10, -10]
137
138 external-pool01:
139 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
140 params:
141 ip_reserved:
142 gateway: +1
143 l2_network_device: +1
144 default_{{ HOSTNAME_CFG01 }}: +15
145 default_{{ HOSTNAME_CTL01 }}: +101
146 default_{{ HOSTNAME_CTL02 }}: +102
147 default_{{ HOSTNAME_CTL03 }}: +103
148 default_{{ HOSTNAME_CMP01 }}: +105
149 default_{{ HOSTNAME_CMP02 }}: +106
150 default_{{ HOSTNAME_MON01 }}: +71
151 default_{{ HOSTNAME_MON02 }}: +72
152 default_{{ HOSTNAME_MON03 }}: +73
153 default_{{ HOSTNAME_LOG01 }}: +61
154 default_{{ HOSTNAME_LOG02 }}: +62
155 default_{{ HOSTNAME_LOG03 }}: +63
156 default_{{ HOSTNAME_MTR01 }}: +86
157 default_{{ HOSTNAME_MTR02 }}: +87
158 default_{{ HOSTNAME_MTR03 }}: +88
159 default_{{ HOSTNAME_GTW01 }}: +110
160 default_{{ HOSTNAME_PRX01 }}: +121
161 ip_ranges:
162 dhcp: [+10, -10]
163
164
165 groups:
166 - name: default
167 driver:
168 name: devops.driver.libvirt
169 params:
170 connection_string: !os_env CONNECTION_STRING, qemu:///system
171 storage_pool_name: !os_env STORAGE_POOL_NAME, default
172 stp: False
173 hpet: False
174 enable_acpi: true
175 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
176 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
177
178 network_pools:
179 admin: admin-pool01
180 private: private-pool01
181 tenant: tenant-pool01
182 external: external-pool01
183
184 l2_network_devices:
185 private:
186 address_pool: private-pool01
187 dhcp: false
188 forward:
189 mode: route
190
191 admin:
192 address_pool: admin-pool01
193 dhcp: true
194 forward:
195 mode: nat
196
197 tenant:
198 address_pool: tenant-pool01
199 dhcp: false
200
201 external:
202 address_pool: external-pool01
203 dhcp: false
204 forward:
205 mode: route
206
207
208 group_volumes:
209 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
210 source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2
211 format: qcow2
212 - name: cfg01_day01_image # Pre-configured day01 image
213 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
214 format: qcow2
215 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
216 source_image: !os_env MCP_IMAGE_PATH1604
217 format: qcow2
218
219 nodes:
220 - name: {{ HOSTNAME_CFG01 }}
221 role: salt_master
222 params:
223 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
224 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
225 boot:
226 - hd
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300227 volumes:
228 - name: system
229 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
230 backing_store: cfg01_day01_image
231 format: qcow2
232 - name: config
233 capacity: 1
234 format: raw
235 device: cdrom
236 bus: ide
237 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
238 # it will be uploaded after config drive generation
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300239 interfaces:
240 - label: ens3
241 l2_network_device: admin
242 interface_model: *interface_model
243 - label: ens4
244 l2_network_device: private
245 interface_model: *interface_model
246 network_config:
247 ens3:
248 networks:
249 - admin
250 ens4:
251 networks:
252 - private
253
254 - name: {{ HOSTNAME_CTL01 }}
255 role: salt_minion
256 params:
257 vcpu: !os_env SLAVE_NODE_CPU, 2
258 memory: !os_env SLAVE_NODE_MEMORY, 16384
259 boot:
260 - hd
261 cloud_init_volume_name: iso
262 cloud_init_iface_up: ens3
263 volumes:
264 - name: system
265 capacity: !os_env NODE_VOLUME_SIZE, 150
266 backing_store: mcp_ubuntu_1604_image
267 format: qcow2
268 - name: cinder
269 capacity: 50
270 format: qcow2
271 - name: iso # Volume with name 'iso' will be used
272 # for store image with cloud-init metadata.
273 capacity: 1
274 format: raw
275 device: cdrom
276 bus: ide
277 cloudinit_meta_data: *cloudinit_meta_data
278 cloudinit_user_data: *cloudinit_user_data_1604_swp
279
280 interfaces: &interfaces
281 - label: ens3
282 l2_network_device: admin
283 interface_model: *interface_model
284 - label: ens4
285 l2_network_device: private
286 interface_model: *interface_model
287 network_config: &network_config
288 ens3:
289 networks:
290 - admin
291 ens4:
292 networks:
293 - private
294
295 - name: {{ HOSTNAME_CTL02 }}
296 role: salt_minion
297 params:
298 vcpu: !os_env SLAVE_NODE_CPU, 2
299 memory: !os_env SLAVE_NODE_MEMORY, 16384
300 boot:
301 - hd
302 cloud_init_volume_name: iso
303 cloud_init_iface_up: ens3
304 volumes:
305 - name: system
306 capacity: !os_env NODE_VOLUME_SIZE, 150
307 backing_store: mcp_ubuntu_1604_image
308 format: qcow2
309 - name: cinder
310 capacity: 50
311 format: qcow2
312 - name: iso # Volume with name 'iso' will be used
313 # for store image with cloud-init metadata.
314 capacity: 1
315 format: raw
316 device: cdrom
317 bus: ide
318 cloudinit_meta_data: *cloudinit_meta_data
319 cloudinit_user_data: *cloudinit_user_data_1604_swp
320
321 interfaces: *interfaces
322 network_config: *network_config
323
324 - name: {{ HOSTNAME_CTL03 }}
325 role: salt_minion
326 params:
327 vcpu: !os_env SLAVE_NODE_CPU, 2
328 memory: !os_env SLAVE_NODE_MEMORY, 16384
329 boot:
330 - hd
331 cloud_init_volume_name: iso
332 cloud_init_iface_up: ens3
333 volumes:
334 - name: system
335 capacity: !os_env NODE_VOLUME_SIZE, 150
336 backing_store: mcp_ubuntu_1604_image
337 format: qcow2
338 - name: cinder
339 capacity: 50
340 format: qcow2
341 - name: iso # Volume with name 'iso' will be used
342 # for store image with cloud-init metadata.
343 capacity: 1
344 format: raw
345 device: cdrom
346 bus: ide
347 cloudinit_meta_data: *cloudinit_meta_data
348 cloudinit_user_data: *cloudinit_user_data_1604_swp
349
350 interfaces: *interfaces
351 network_config: *network_config
352
353 - name: {{ HOSTNAME_MON01 }}
354 role: salt_minion
355 params:
356 vcpu: !os_env SLAVE_NODE_CPU, 2
357 memory: !os_env SLAVE_NODE_MEMORY, 2048
358 boot:
359 - hd
360 cloud_init_volume_name: iso
361 cloud_init_iface_up: ens3
362 volumes:
363 - name: system
364 capacity: !os_env NODE_VOLUME_SIZE, 150
365 backing_store: mcp_ubuntu_1604_image
366 format: qcow2
367 - name: iso # Volume with name 'iso' will be used
368 # for store image with cloud-init metadata.
369 capacity: 1
370 format: raw
371 device: cdrom
372 bus: ide
373 cloudinit_meta_data: *cloudinit_meta_data
374 cloudinit_user_data: *cloudinit_user_data_1604_swp
375
376 interfaces: *interfaces
377 network_config: *network_config
378
379 - name: {{ HOSTNAME_MON02 }}
380 role: salt_minion
381 params:
382 vcpu: !os_env SLAVE_NODE_CPU, 2
383 memory: !os_env SLAVE_NODE_MEMORY, 2048
384 boot:
385 - hd
386 cloud_init_volume_name: iso
387 cloud_init_iface_up: ens3
388 volumes:
389 - name: system
390 capacity: !os_env NODE_VOLUME_SIZE, 150
391 backing_store: mcp_ubuntu_1604_image
392 format: qcow2
393 - name: iso # Volume with name 'iso' will be used
394 # for store image with cloud-init metadata.
395 capacity: 1
396 format: raw
397 device: cdrom
398 bus: ide
399 cloudinit_meta_data: *cloudinit_meta_data
400 cloudinit_user_data: *cloudinit_user_data_1604_swp
401
402 interfaces: *interfaces
403 network_config: *network_config
404
405 - name: {{ HOSTNAME_MON03 }}
406 role: salt_minion
407 params:
408 vcpu: !os_env SLAVE_NODE_CPU, 2
409 memory: !os_env SLAVE_NODE_MEMORY, 2048
410 boot:
411 - hd
412 cloud_init_volume_name: iso
413 cloud_init_iface_up: ens3
414 volumes:
415 - name: system
416 capacity: !os_env NODE_VOLUME_SIZE, 150
417 backing_store: mcp_ubuntu_1604_image
418 format: qcow2
419 - name: iso # Volume with name 'iso' will be used
420 # for store image with cloud-init metadata.
421 capacity: 1
422 format: raw
423 device: cdrom
424 bus: ide
425 cloudinit_meta_data: *cloudinit_meta_data
426 cloudinit_user_data: *cloudinit_user_data_1604_swp
427
428 interfaces: *interfaces
429 network_config: *network_config
430
431 - name: {{ HOSTNAME_LOG01 }}
432 role: salt_minion
433 params:
434 vcpu: !os_env SLAVE_NODE_CPU, 2
435 memory: !os_env SLAVE_NODE_MEMORY, 4096
436 boot:
437 - hd
438 cloud_init_volume_name: iso
439 cloud_init_iface_up: ens3
440 volumes:
441 - name: system
442 capacity: !os_env NODE_VOLUME_SIZE, 150
443 backing_store: mcp_ubuntu_1604_image
444 format: qcow2
445 - name: iso # Volume with name 'iso' will be used
446 # for store image with cloud-init metadata.
447 capacity: 1
448 format: raw
449 device: cdrom
450 bus: ide
451 cloudinit_meta_data: *cloudinit_meta_data
452 cloudinit_user_data: *cloudinit_user_data_1604_swp
453
454 interfaces: *interfaces
455 network_config: *network_config
456
457 - name: {{ HOSTNAME_LOG02 }}
458 role: salt_minion
459 params:
460 vcpu: !os_env SLAVE_NODE_CPU, 2
461 memory: !os_env SLAVE_NODE_MEMORY, 4096
462 boot:
463 - hd
464 cloud_init_volume_name: iso
465 cloud_init_iface_up: ens3
466 volumes:
467 - name: system
468 capacity: !os_env NODE_VOLUME_SIZE, 150
469 backing_store: mcp_ubuntu_1604_image
470 format: qcow2
471 - name: iso # Volume with name 'iso' will be used
472 # for store image with cloud-init metadata.
473 capacity: 1
474 format: raw
475 device: cdrom
476 bus: ide
477 cloudinit_meta_data: *cloudinit_meta_data
478 cloudinit_user_data: *cloudinit_user_data_1604_swp
479
480 interfaces: *interfaces
481 network_config: *network_config
482
483 - name: {{ HOSTNAME_LOG03 }}
484 role: salt_minion
485 params:
486 vcpu: !os_env SLAVE_NODE_CPU, 2
487 memory: !os_env SLAVE_NODE_MEMORY, 4096
488 boot:
489 - hd
490 cloud_init_volume_name: iso
491 cloud_init_iface_up: ens3
492 volumes:
493 - name: system
494 capacity: !os_env NODE_VOLUME_SIZE, 150
495 backing_store: mcp_ubuntu_1604_image
496 format: qcow2
497 - name: iso # Volume with name 'iso' will be used
498 # for store image with cloud-init metadata.
499 capacity: 1
500 format: raw
501 device: cdrom
502 bus: ide
503 cloudinit_meta_data: *cloudinit_meta_data
504 cloudinit_user_data: *cloudinit_user_data_1604_swp
505
506 interfaces: *interfaces
507 network_config: *network_config
508
509 - name: {{ HOSTNAME_MTR01 }}
510 role: salt_minion
511 params:
512 vcpu: !os_env SLAVE_NODE_CPU, 2
513 memory: !os_env SLAVE_NODE_MEMORY, 2048
514 boot:
515 - hd
516 cloud_init_volume_name: iso
517 cloud_init_iface_up: ens3
518 volumes:
519 - name: system
520 capacity: !os_env NODE_VOLUME_SIZE, 150
521 backing_store: mcp_ubuntu_1604_image
522 format: qcow2
523 - name: iso # Volume with name 'iso' will be used
524 # for store image with cloud-init metadata.
525 capacity: 1
526 format: raw
527 device: cdrom
528 bus: ide
529 cloudinit_meta_data: *cloudinit_meta_data
530 cloudinit_user_data: *cloudinit_user_data_1604_swp
531
532 interfaces: *interfaces
533 network_config: *network_config
534
535 - name: {{ HOSTNAME_MTR02 }}
536 role: salt_minion
537 params:
538 vcpu: !os_env SLAVE_NODE_CPU, 2
539 memory: !os_env SLAVE_NODE_MEMORY, 2048
540 boot:
541 - hd
542 cloud_init_volume_name: iso
543 cloud_init_iface_up: ens3
544 volumes:
545 - name: system
546 capacity: !os_env NODE_VOLUME_SIZE, 150
547 backing_store: mcp_ubuntu_1604_image
548 format: qcow2
549 - name: iso # Volume with name 'iso' will be used
550 # for store image with cloud-init metadata.
551 capacity: 1
552 format: raw
553 device: cdrom
554 bus: ide
555 cloudinit_meta_data: *cloudinit_meta_data
556 cloudinit_user_data: *cloudinit_user_data_1604_swp
557
558 interfaces: *interfaces
559 network_config: *network_config
560
561 - name: {{ HOSTNAME_MTR03 }}
562 role: salt_minion
563 params:
564 vcpu: !os_env SLAVE_NODE_CPU, 2
565 memory: !os_env SLAVE_NODE_MEMORY, 2048
566 boot:
567 - hd
568 cloud_init_volume_name: iso
569 cloud_init_iface_up: ens3
570 volumes:
571 - name: system
572 capacity: !os_env NODE_VOLUME_SIZE, 150
573 backing_store: mcp_ubuntu_1604_image
574 format: qcow2
575 - name: iso # Volume with name 'iso' will be used
576 # for store image with cloud-init metadata.
577 capacity: 1
578 format: raw
579 device: cdrom
580 bus: ide
581 cloudinit_meta_data: *cloudinit_meta_data
582 cloudinit_user_data: *cloudinit_user_data_1604_swp
583
584 interfaces: *interfaces
585 network_config: *network_config
586
587 - name: {{ HOSTNAME_PRX01 }}
588 role: salt_minion
589 params:
590 vcpu: !os_env SLAVE_NODE_CPU, 1
591 memory: !os_env SLAVE_NODE_MEMORY, 2048
592 boot:
593 - hd
594 cloud_init_volume_name: iso
595 cloud_init_iface_up: ens3
596 volumes:
597 - name: system
598 capacity: !os_env NODE_VOLUME_SIZE, 150
599 backing_store: mcp_ubuntu_1604_image
600 format: qcow2
601 - name: cinder
602 capacity: 50
603 format: qcow2
604 - name: iso # Volume with name 'iso' will be used
605 # for store image with cloud-init metadata.
606 capacity: 1
607 format: raw
608 device: cdrom
609 bus: ide
610 cloudinit_meta_data: *cloudinit_meta_data
611 cloudinit_user_data: *cloudinit_user_data_1604_swp
612
613 interfaces: *interfaces
614 network_config: *network_config
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_swp
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_swp
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_swp
715
716 interfaces: *all_interfaces
717 network_config: *all_network_config
718
719 - name: {{ HOSTNAME_KVM01 }}
720 role: salt_minion
721 params:
722 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
723 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
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('KVM_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_swp
741
742 interfaces: *interfaces
743 network_config: *network_config
744
745 - name: {{ HOSTNAME_KVM02 }}
746 role: salt_minion
747 params:
748 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
749 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
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('KVM_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_swp
767
768 interfaces: *interfaces
769 network_config: *network_config
770
771 - name: {{ HOSTNAME_KVM03 }}
772 role: salt_minion
773 params:
774 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
775 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
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('KVM_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_swp
793
794 interfaces: *interfaces
795 network_config: *network_config
796
797 - name: {{ HOSTNAME_CID01 }}
798 role: salt_minion
799 params:
800 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
801 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
802 boot:
803 - hd
804 cloud_init_volume_name: iso
805 cloud_init_iface_up: ens3
806 volumes:
807 - name: system
808 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
809 backing_store: mcp_ubuntu_1604_image
810 format: qcow2
811 - name: iso # Volume with name 'iso' will be used
812 # for store image with cloud-init metadata.
813 capacity: 1
814 format: raw
815 device: cdrom
816 bus: ide
817 cloudinit_meta_data: *cloudinit_meta_data
818 cloudinit_user_data: *cloudinit_user_data_1604_swp
819
820 interfaces: *interfaces
821 network_config: *network_config
822
823 - name: {{ HOSTNAME_CID02 }}
824 role: salt_minion
825 params:
826 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
827 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
828 boot:
829 - hd
830 cloud_init_volume_name: iso
831 cloud_init_iface_up: ens3
832 volumes:
833 - name: system
834 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
835 backing_store: mcp_ubuntu_1604_image
836 format: qcow2
837 - name: iso # Volume with name 'iso' will be used
838 # for store image with cloud-init metadata.
839 capacity: 1
840 format: raw
841 device: cdrom
842 bus: ide
843 cloudinit_meta_data: *cloudinit_meta_data
844 cloudinit_user_data: *cloudinit_user_data_1604_swp
845
846 interfaces: *interfaces
847 network_config: *network_config
848
849 - name: {{ HOSTNAME_CID03 }}
850 role: salt_minion
851 params:
852 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
853 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
854 boot:
855 - hd
856 cloud_init_volume_name: iso
857 cloud_init_iface_up: ens3
858 volumes:
859 - name: system
860 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
861 backing_store: mcp_ubuntu_1604_image
862 format: qcow2
863 - name: iso # Volume with name 'iso' will be used
864 # for store image with cloud-init metadata.
865 capacity: 1
866 format: raw
867 device: cdrom
868 bus: ide
869 cloudinit_meta_data: *cloudinit_meta_data
870 cloudinit_user_data: *cloudinit_user_data_1604_swp
871
872 interfaces: *interfaces
873 network_config: *network_config