blob: 438ee517797c0d0dd2a47c9ec9651b665c25e0d2 [file] [log] [blame]
Tatyana Leontovichf3718442018-10-31 13:36:13 +02001# 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-queens-dvr-sl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-cicd-queens-dvr-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 }}
11 - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }}
12
13{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-queens-dvr-sl') %}
14{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
15{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
Tatyana Leontovichf3718442018-10-31 13:36:13 +020016{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
26{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
27{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
29{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
32{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
33{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
34{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
35
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', 'cookied-cicd-queens-dvr-sl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
39
40 address_pools:
41 private-pool01:
42 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
43 params:
44 ip_reserved:
45 gateway: +1
46 l2_network_device: +1
47 default_{{ HOSTNAME_CFG01 }}: +15
Tatyana Leontovichf3718442018-10-31 13:36:13 +020048 default_{{ HOSTNAME_CID }}: +90
49 default_{{ HOSTNAME_CID01 }}: +91
50 default_{{ HOSTNAME_CID02 }}: +92
51 default_{{ HOSTNAME_CID03 }}: +93
52 default_{{ HOSTNAME_CTL01 }}: +101
53 default_{{ HOSTNAME_CTL02 }}: +102
54 default_{{ HOSTNAME_CTL03 }}: +103
55 default_{{ HOSTNAME_CMP01 }}: +105
56 default_{{ HOSTNAME_CMP02 }}: +106
57 default_{{ HOSTNAME_MON01 }}: +71
58 default_{{ HOSTNAME_MON02 }}: +72
59 default_{{ HOSTNAME_MON03 }}: +73
60 default_{{ HOSTNAME_LOG01 }}: +61
61 default_{{ HOSTNAME_LOG02 }}: +62
62 default_{{ HOSTNAME_LOG03 }}: +63
63 default_{{ HOSTNAME_MTR01 }}: +86
64 default_{{ HOSTNAME_MTR02 }}: +87
65 default_{{ HOSTNAME_MTR03 }}: +88
66 default_{{ HOSTNAME_GTW01 }}: +110
67 default_{{ HOSTNAME_PRX01 }}: +121
68 ip_ranges:
69 dhcp: [+90, -10]
70
71 admin-pool01:
72 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
73 params:
74 ip_reserved:
75 gateway: +1
76 l2_network_device: +1
77 default_{{ HOSTNAME_CFG01 }}: +15
Tatyana Leontovichf3718442018-10-31 13:36:13 +020078 default_{{ HOSTNAME_CID }}: +90
79 default_{{ HOSTNAME_CID01 }}: +91
80 default_{{ HOSTNAME_CID02 }}: +92
81 default_{{ HOSTNAME_CID03 }}: +93
82 default_{{ HOSTNAME_CTL01 }}: +101
83 default_{{ HOSTNAME_CTL02 }}: +102
84 default_{{ HOSTNAME_CTL03 }}: +103
85 default_{{ HOSTNAME_CMP01 }}: +105
86 default_{{ HOSTNAME_CMP02 }}: +106
87 default_{{ HOSTNAME_MON01 }}: +71
88 default_{{ HOSTNAME_MON02 }}: +72
89 default_{{ HOSTNAME_MON03 }}: +73
90 default_{{ HOSTNAME_LOG01 }}: +61
91 default_{{ HOSTNAME_LOG02 }}: +62
92 default_{{ HOSTNAME_LOG03 }}: +63
93 default_{{ HOSTNAME_MTR01 }}: +86
94 default_{{ HOSTNAME_MTR02 }}: +87
95 default_{{ HOSTNAME_MTR03 }}: +88
96 default_{{ HOSTNAME_GTW01 }}: +110
97 default_{{ HOSTNAME_PRX01 }}: +121
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 }}: +15
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 ip_ranges:
125 dhcp: [+10, -10]
126
127 external-pool01:
128 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
129 params:
130 ip_reserved:
131 gateway: +1
132 l2_network_device: +1
133 default_{{ HOSTNAME_CFG01 }}: +15
134 default_{{ HOSTNAME_CTL01 }}: +101
135 default_{{ HOSTNAME_CTL02 }}: +102
136 default_{{ HOSTNAME_CTL03 }}: +103
137 default_{{ HOSTNAME_CMP01 }}: +105
138 default_{{ HOSTNAME_CMP02 }}: +106
139 default_{{ HOSTNAME_MON01 }}: +71
140 default_{{ HOSTNAME_MON02 }}: +72
141 default_{{ HOSTNAME_MON03 }}: +73
142 default_{{ HOSTNAME_LOG01 }}: +61
143 default_{{ HOSTNAME_LOG02 }}: +62
144 default_{{ HOSTNAME_LOG03 }}: +63
145 default_{{ HOSTNAME_MTR01 }}: +86
146 default_{{ HOSTNAME_MTR02 }}: +87
147 default_{{ HOSTNAME_MTR03 }}: +88
148 default_{{ HOSTNAME_GTW01 }}: +110
149 default_{{ HOSTNAME_PRX01 }}: +121
150 ip_ranges:
151 dhcp: [+180, +220]
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('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2
199 format: qcow2
200 - name: cfg01_day01_image # Pre-configured day01 image
201 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # 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('CFG_NODE_CPU', 3) }}
Dennis Dmitriev19afa872018-12-21 15:18:51 +0200212 memory: {{ os_env('CFG_NODE_MEMORY', 12288) }}
Tatyana Leontovichf3718442018-10-31 13:36:13 +0200213 boot:
214 - hd
215 volumes:
216 - name: system
217 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
218 backing_store: cfg01_day01_image
219 format: qcow2
220 - name: config
221 capacity: 1
222 format: raw
223 device: cdrom
224 bus: ide
225 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
226 # it will be uploaded after config drive generation
227 interfaces:
228 - label: ens3
229 l2_network_device: admin
230 interface_model: *interface_model
231 - label: ens4
232 l2_network_device: private
233 interface_model: *interface_model
234 network_config:
235 ens3:
236 networks:
237 - admin
238 ens4:
239 networks:
240 - private
241
242 - name: {{ HOSTNAME_CTL01 }}
243 role: salt_minion
244 params:
245 vcpu: !os_env SLAVE_NODE_CPU, 2
246 memory: !os_env SLAVE_NODE_MEMORY, 16384
247 boot:
248 - hd
249 cloud_init_volume_name: iso
250 cloud_init_iface_up: ens3
251 volumes:
252 - name: system
253 capacity: !os_env NODE_VOLUME_SIZE, 150
254 backing_store: mcp_ubuntu_1604_image
255 format: qcow2
256 - name: iso # Volume with name 'iso' will be used
257 # for store image with cloud-init metadata.
258 capacity: 1
259 format: raw
260 device: cdrom
261 bus: ide
262 cloudinit_meta_data: *cloudinit_meta_data
263 cloudinit_user_data: *cloudinit_user_data_1604_swp
264
265 interfaces: &interfaces
266 - label: ens3
267 l2_network_device: admin
268 interface_model: *interface_model
269 - label: ens4
270 l2_network_device: private
271 interface_model: *interface_model
272 network_config: &network_config
273 ens3:
274 networks:
275 - admin
276 ens4:
277 networks:
278 - private
279
280 - name: {{ HOSTNAME_CTL02 }}
281 role: salt_minion
282 params:
283 vcpu: !os_env SLAVE_NODE_CPU, 2
284 memory: !os_env SLAVE_NODE_MEMORY, 16384
285 boot:
286 - hd
287 cloud_init_volume_name: iso
288 cloud_init_iface_up: ens3
289 volumes:
290 - name: system
291 capacity: !os_env NODE_VOLUME_SIZE, 150
292 backing_store: mcp_ubuntu_1604_image
293 format: qcow2
294 - name: iso # Volume with name 'iso' will be used
295 # for store image with cloud-init metadata.
296 capacity: 1
297 format: raw
298 device: cdrom
299 bus: ide
300 cloudinit_meta_data: *cloudinit_meta_data
301 cloudinit_user_data: *cloudinit_user_data_1604_swp
302
303 interfaces: *interfaces
304 network_config: *network_config
305
306 - name: {{ HOSTNAME_CTL03 }}
307 role: salt_minion
308 params:
309 vcpu: !os_env SLAVE_NODE_CPU, 2
310 memory: !os_env SLAVE_NODE_MEMORY, 16384
311 boot:
312 - hd
313 cloud_init_volume_name: iso
314 cloud_init_iface_up: ens3
315 volumes:
316 - name: system
317 capacity: !os_env NODE_VOLUME_SIZE, 150
318 backing_store: mcp_ubuntu_1604_image
319 format: qcow2
320 - name: iso # Volume with name 'iso' will be used
321 # for store image with cloud-init metadata.
322 capacity: 1
323 format: raw
324 device: cdrom
325 bus: ide
326 cloudinit_meta_data: *cloudinit_meta_data
327 cloudinit_user_data: *cloudinit_user_data_1604_swp
328
329 interfaces: *interfaces
330 network_config: *network_config
331
332 - name: {{ HOSTNAME_MON01 }}
333 role: salt_minion
334 params:
335 vcpu: !os_env SLAVE_NODE_CPU, 2
336 memory: !os_env SLAVE_NODE_MEMORY, 2048
337 boot:
338 - hd
339 cloud_init_volume_name: iso
340 cloud_init_iface_up: ens3
341 volumes:
342 - name: system
343 capacity: !os_env NODE_VOLUME_SIZE, 150
344 backing_store: mcp_ubuntu_1604_image
345 format: qcow2
346 - name: iso # Volume with name 'iso' will be used
347 # for store image with cloud-init metadata.
348 capacity: 1
349 format: raw
350 device: cdrom
351 bus: ide
352 cloudinit_meta_data: *cloudinit_meta_data
353 cloudinit_user_data: *cloudinit_user_data_1604_swp
354
355 interfaces: *interfaces
356 network_config: *network_config
357
358 - name: {{ HOSTNAME_MON02 }}
359 role: salt_minion
360 params:
361 vcpu: !os_env SLAVE_NODE_CPU, 2
362 memory: !os_env SLAVE_NODE_MEMORY, 2048
363 boot:
364 - hd
365 cloud_init_volume_name: iso
366 cloud_init_iface_up: ens3
367 volumes:
368 - name: system
369 capacity: !os_env NODE_VOLUME_SIZE, 150
370 backing_store: mcp_ubuntu_1604_image
371 format: qcow2
372 - name: iso # Volume with name 'iso' will be used
373 # for store image with cloud-init metadata.
374 capacity: 1
375 format: raw
376 device: cdrom
377 bus: ide
378 cloudinit_meta_data: *cloudinit_meta_data
379 cloudinit_user_data: *cloudinit_user_data_1604_swp
380
381 interfaces: *interfaces
382 network_config: *network_config
383
384 - name: {{ HOSTNAME_MON03 }}
385 role: salt_minion
386 params:
387 vcpu: !os_env SLAVE_NODE_CPU, 2
388 memory: !os_env SLAVE_NODE_MEMORY, 2048
389 boot:
390 - hd
391 cloud_init_volume_name: iso
392 cloud_init_iface_up: ens3
393 volumes:
394 - name: system
395 capacity: !os_env NODE_VOLUME_SIZE, 150
396 backing_store: mcp_ubuntu_1604_image
397 format: qcow2
398 - name: iso # Volume with name 'iso' will be used
399 # for store image with cloud-init metadata.
400 capacity: 1
401 format: raw
402 device: cdrom
403 bus: ide
404 cloudinit_meta_data: *cloudinit_meta_data
405 cloudinit_user_data: *cloudinit_user_data_1604_swp
406
407 interfaces: *interfaces
408 network_config: *network_config
409
410 - name: {{ HOSTNAME_LOG01 }}
411 role: salt_minion
412 params:
413 vcpu: !os_env SLAVE_NODE_CPU, 2
414 memory: !os_env SLAVE_NODE_MEMORY, 4096
415 boot:
416 - hd
417 cloud_init_volume_name: iso
418 cloud_init_iface_up: ens3
419 volumes:
420 - name: system
421 capacity: !os_env NODE_VOLUME_SIZE, 150
422 backing_store: mcp_ubuntu_1604_image
423 format: qcow2
424 - name: iso # Volume with name 'iso' will be used
425 # for store image with cloud-init metadata.
426 capacity: 1
427 format: raw
428 device: cdrom
429 bus: ide
430 cloudinit_meta_data: *cloudinit_meta_data
431 cloudinit_user_data: *cloudinit_user_data_1604_swp
432
433 interfaces: *interfaces
434 network_config: *network_config
435
436 - name: {{ HOSTNAME_LOG02 }}
437 role: salt_minion
438 params:
439 vcpu: !os_env SLAVE_NODE_CPU, 2
440 memory: !os_env SLAVE_NODE_MEMORY, 4096
441 boot:
442 - hd
443 cloud_init_volume_name: iso
444 cloud_init_iface_up: ens3
445 volumes:
446 - name: system
447 capacity: !os_env NODE_VOLUME_SIZE, 150
448 backing_store: mcp_ubuntu_1604_image
449 format: qcow2
450 - name: iso # Volume with name 'iso' will be used
451 # for store image with cloud-init metadata.
452 capacity: 1
453 format: raw
454 device: cdrom
455 bus: ide
456 cloudinit_meta_data: *cloudinit_meta_data
457 cloudinit_user_data: *cloudinit_user_data_1604_swp
458
459 interfaces: *interfaces
460 network_config: *network_config
461
462 - name: {{ HOSTNAME_LOG03 }}
463 role: salt_minion
464 params:
465 vcpu: !os_env SLAVE_NODE_CPU, 2
466 memory: !os_env SLAVE_NODE_MEMORY, 4096
467 boot:
468 - hd
469 cloud_init_volume_name: iso
470 cloud_init_iface_up: ens3
471 volumes:
472 - name: system
473 capacity: !os_env NODE_VOLUME_SIZE, 150
474 backing_store: mcp_ubuntu_1604_image
475 format: qcow2
476 - name: iso # Volume with name 'iso' will be used
477 # for store image with cloud-init metadata.
478 capacity: 1
479 format: raw
480 device: cdrom
481 bus: ide
482 cloudinit_meta_data: *cloudinit_meta_data
483 cloudinit_user_data: *cloudinit_user_data_1604_swp
484
485 interfaces: *interfaces
486 network_config: *network_config
487
488 - name: {{ HOSTNAME_MTR01 }}
489 role: salt_minion
490 params:
491 vcpu: !os_env SLAVE_NODE_CPU, 2
492 memory: !os_env SLAVE_NODE_MEMORY, 2048
493 boot:
494 - hd
495 cloud_init_volume_name: iso
496 cloud_init_iface_up: ens3
497 volumes:
498 - name: system
499 capacity: !os_env NODE_VOLUME_SIZE, 150
500 backing_store: mcp_ubuntu_1604_image
501 format: qcow2
502 - name: iso # Volume with name 'iso' will be used
503 # for store image with cloud-init metadata.
504 capacity: 1
505 format: raw
506 device: cdrom
507 bus: ide
508 cloudinit_meta_data: *cloudinit_meta_data
509 cloudinit_user_data: *cloudinit_user_data_1604_swp
510
511 interfaces: *interfaces
512 network_config: *network_config
513
514 - name: {{ HOSTNAME_MTR02 }}
515 role: salt_minion
516 params:
517 vcpu: !os_env SLAVE_NODE_CPU, 2
518 memory: !os_env SLAVE_NODE_MEMORY, 2048
519 boot:
520 - hd
521 cloud_init_volume_name: iso
522 cloud_init_iface_up: ens3
523 volumes:
524 - name: system
525 capacity: !os_env NODE_VOLUME_SIZE, 150
526 backing_store: mcp_ubuntu_1604_image
527 format: qcow2
528 - name: iso # Volume with name 'iso' will be used
529 # for store image with cloud-init metadata.
530 capacity: 1
531 format: raw
532 device: cdrom
533 bus: ide
534 cloudinit_meta_data: *cloudinit_meta_data
535 cloudinit_user_data: *cloudinit_user_data_1604_swp
536
537 interfaces: *interfaces
538 network_config: *network_config
539
540 - name: {{ HOSTNAME_MTR03 }}
541 role: salt_minion
542 params:
543 vcpu: !os_env SLAVE_NODE_CPU, 2
544 memory: !os_env SLAVE_NODE_MEMORY, 2048
545 boot:
546 - hd
547 cloud_init_volume_name: iso
548 cloud_init_iface_up: ens3
549 volumes:
550 - name: system
551 capacity: !os_env NODE_VOLUME_SIZE, 150
552 backing_store: mcp_ubuntu_1604_image
553 format: qcow2
554 - name: iso # Volume with name 'iso' will be used
555 # for store image with cloud-init metadata.
556 capacity: 1
557 format: raw
558 device: cdrom
559 bus: ide
560 cloudinit_meta_data: *cloudinit_meta_data
561 cloudinit_user_data: *cloudinit_user_data_1604_swp
562
563 interfaces: *interfaces
564 network_config: *network_config
565
566 - name: {{ HOSTNAME_PRX01 }}
567 role: salt_minion
568 params:
569 vcpu: !os_env SLAVE_NODE_CPU, 1
570 memory: !os_env SLAVE_NODE_MEMORY, 2048
571 boot:
572 - hd
573 cloud_init_volume_name: iso
574 cloud_init_iface_up: ens3
575 volumes:
576 - name: system
577 capacity: !os_env NODE_VOLUME_SIZE, 150
578 backing_store: mcp_ubuntu_1604_image
579 format: qcow2
580 - name: iso # Volume with name 'iso' will be used
581 # for store image with cloud-init metadata.
582 capacity: 1
583 format: raw
584 device: cdrom
585 bus: ide
586 cloudinit_meta_data: *cloudinit_meta_data
587 cloudinit_user_data: *cloudinit_user_data_1604_swp
588
Dennis Dmitrievb612c442018-11-28 16:42:49 +0200589 interfaces:
590 - label: ens3
591 l2_network_device: admin
592 interface_model: *interface_model
593 - label: ens4
594 l2_network_device: private
595 interface_model: *interface_model
596 - label: ens5
597 l2_network_device: external
598 interface_model: *interface_model
599 network_config:
600 ens3:
601 networks:
602 - admin
603 ens4:
604 networks:
605 - private
606 ens5:
607 networks:
608 - external
Tatyana Leontovichf3718442018-10-31 13:36:13 +0200609
610 - name: {{ HOSTNAME_CMP01 }}
611 role: salt_minion
612 params:
613 vcpu: !os_env SLAVE_NODE_CPU, 3
614 memory: !os_env SLAVE_NODE_MEMORY, 4096
615 boot:
616 - hd
617 cloud_init_volume_name: iso
618 cloud_init_iface_up: ens3
619 volumes:
620 - name: system
621 capacity: !os_env NODE_VOLUME_SIZE, 150
622 backing_store: cloudimage1604
623 format: qcow2
624 - name: cinder
625 capacity: 50
626 format: qcow2
627 - name: iso # Volume with name 'iso' will be used
628 # for store image with cloud-init metadata.
629 capacity: 1
630 format: raw
631 device: cdrom
632 bus: ide
633 cloudinit_meta_data: *cloudinit_meta_data
634 cloudinit_user_data: *cloudinit_user_data_1604_swp
635
636
637 interfaces: &all_interfaces
638 - label: ens3
639 l2_network_device: admin
640 interface_model: *interface_model
641 - label: ens4
642 l2_network_device: private
643 interface_model: *interface_model
644 - label: ens5
645 l2_network_device: tenant
646 interface_model: *interface_model
647 - label: ens6
648 l2_network_device: external
649 interface_model: *interface_model
650 network_config: &all_network_config
651 ens3:
652 networks:
653 - admin
654 ens4:
655 networks:
656 - private
657 ens5:
658 networks:
659 - tenant
660 ens6:
661 networks:
662 - external
663
664 - name: {{ HOSTNAME_CMP02 }}
665 role: salt_minion
666 params:
667 vcpu: !os_env SLAVE_NODE_CPU, 3
668 memory: !os_env SLAVE_NODE_MEMORY, 4096
669 boot:
670 - hd
671 cloud_init_volume_name: iso
672 cloud_init_iface_up: ens3
673 volumes:
674 - name: system
675 capacity: !os_env NODE_VOLUME_SIZE, 150
676 backing_store: cloudimage1604
677 format: qcow2
678 - name: cinder
679 capacity: 50
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
Tatyana Leontovichf3718442018-10-31 13:36:13 +0200719 - name: {{ HOSTNAME_CID01 }}
720 role: salt_minion
721 params:
722 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
723 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
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('CID_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_CID02 }}
746 role: salt_minion
747 params:
748 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
749 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
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('CID_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_CID03 }}
772 role: salt_minion
773 params:
774 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
775 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
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('CID_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