blob: 2cbbce6d40e8b0ff62e0bd733b5a95594e2e3c68 [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-dvr-sl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
Dennis Dmitrievb3b37492018-07-08 21:23:00 +03005{% import 'cookied-cicd-pike-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 }}
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-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) %}
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-dvr-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:
Dennis Dmitrievb6bcc5c2018-09-26 11:07:53 +0000162 dhcp: [+180, +220]
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300163
164 groups:
165 - name: default
166 driver:
167 name: devops.driver.libvirt
168 params:
169 connection_string: !os_env CONNECTION_STRING, qemu:///system
170 storage_pool_name: !os_env STORAGE_POOL_NAME, default
171 stp: False
172 hpet: False
173 enable_acpi: true
174 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
175 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
176
177 network_pools:
178 admin: admin-pool01
179 private: private-pool01
180 tenant: tenant-pool01
181 external: external-pool01
182
183 l2_network_devices:
184 private:
185 address_pool: private-pool01
186 dhcp: false
187 forward:
188 mode: route
189
190 admin:
191 address_pool: admin-pool01
192 dhcp: true
193 forward:
194 mode: nat
195
196 tenant:
197 address_pool: tenant-pool01
198 dhcp: false
199
200 external:
201 address_pool: external-pool01
202 dhcp: false
203 forward:
204 mode: route
205
206
207 group_volumes:
208 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
209 source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2
210 format: qcow2
211 - name: cfg01_day01_image # Pre-configured day01 image
212 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
213 format: qcow2
214 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
215 source_image: !os_env MCP_IMAGE_PATH1604
216 format: qcow2
217
218 nodes:
219 - name: {{ HOSTNAME_CFG01 }}
220 role: salt_master
221 params:
222 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
223 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
224 boot:
225 - hd
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300226 volumes:
227 - name: system
228 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
229 backing_store: cfg01_day01_image
230 format: qcow2
231 - name: config
232 capacity: 1
233 format: raw
234 device: cdrom
235 bus: ide
236 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
237 # it will be uploaded after config drive generation
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300238 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
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300267 - name: iso # Volume with name 'iso' will be used
268 # for store image with cloud-init metadata.
269 capacity: 1
270 format: raw
271 device: cdrom
272 bus: ide
273 cloudinit_meta_data: *cloudinit_meta_data
274 cloudinit_user_data: *cloudinit_user_data_1604_swp
275
276 interfaces: &interfaces
277 - label: ens3
278 l2_network_device: admin
279 interface_model: *interface_model
280 - label: ens4
281 l2_network_device: private
282 interface_model: *interface_model
283 network_config: &network_config
284 ens3:
285 networks:
286 - admin
287 ens4:
288 networks:
289 - private
290
291 - name: {{ HOSTNAME_CTL02 }}
292 role: salt_minion
293 params:
294 vcpu: !os_env SLAVE_NODE_CPU, 2
295 memory: !os_env SLAVE_NODE_MEMORY, 16384
296 boot:
297 - hd
298 cloud_init_volume_name: iso
299 cloud_init_iface_up: ens3
300 volumes:
301 - name: system
302 capacity: !os_env NODE_VOLUME_SIZE, 150
303 backing_store: mcp_ubuntu_1604_image
304 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300305 - name: iso # Volume with name 'iso' will be used
306 # for store image with cloud-init metadata.
307 capacity: 1
308 format: raw
309 device: cdrom
310 bus: ide
311 cloudinit_meta_data: *cloudinit_meta_data
312 cloudinit_user_data: *cloudinit_user_data_1604_swp
313
314 interfaces: *interfaces
315 network_config: *network_config
316
317 - name: {{ HOSTNAME_CTL03 }}
318 role: salt_minion
319 params:
320 vcpu: !os_env SLAVE_NODE_CPU, 2
321 memory: !os_env SLAVE_NODE_MEMORY, 16384
322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
329 backing_store: mcp_ubuntu_1604_image
330 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300331 - name: iso # Volume with name 'iso' will be used
332 # for store image with cloud-init metadata.
333 capacity: 1
334 format: raw
335 device: cdrom
336 bus: ide
337 cloudinit_meta_data: *cloudinit_meta_data
338 cloudinit_user_data: *cloudinit_user_data_1604_swp
339
340 interfaces: *interfaces
341 network_config: *network_config
342
343 - name: {{ HOSTNAME_MON01 }}
344 role: salt_minion
345 params:
346 vcpu: !os_env SLAVE_NODE_CPU, 2
347 memory: !os_env SLAVE_NODE_MEMORY, 2048
348 boot:
349 - hd
350 cloud_init_volume_name: iso
351 cloud_init_iface_up: ens3
352 volumes:
353 - name: system
354 capacity: !os_env NODE_VOLUME_SIZE, 150
355 backing_store: mcp_ubuntu_1604_image
356 format: qcow2
357 - name: iso # Volume with name 'iso' will be used
358 # for store image with cloud-init metadata.
359 capacity: 1
360 format: raw
361 device: cdrom
362 bus: ide
363 cloudinit_meta_data: *cloudinit_meta_data
364 cloudinit_user_data: *cloudinit_user_data_1604_swp
365
366 interfaces: *interfaces
367 network_config: *network_config
368
369 - name: {{ HOSTNAME_MON02 }}
370 role: salt_minion
371 params:
372 vcpu: !os_env SLAVE_NODE_CPU, 2
373 memory: !os_env SLAVE_NODE_MEMORY, 2048
374 boot:
375 - hd
376 cloud_init_volume_name: iso
377 cloud_init_iface_up: ens3
378 volumes:
379 - name: system
380 capacity: !os_env NODE_VOLUME_SIZE, 150
381 backing_store: mcp_ubuntu_1604_image
382 format: qcow2
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385 capacity: 1
386 format: raw
387 device: cdrom
388 bus: ide
389 cloudinit_meta_data: *cloudinit_meta_data
390 cloudinit_user_data: *cloudinit_user_data_1604_swp
391
392 interfaces: *interfaces
393 network_config: *network_config
394
395 - name: {{ HOSTNAME_MON03 }}
396 role: salt_minion
397 params:
398 vcpu: !os_env SLAVE_NODE_CPU, 2
399 memory: !os_env SLAVE_NODE_MEMORY, 2048
400 boot:
401 - hd
402 cloud_init_volume_name: iso
403 cloud_init_iface_up: ens3
404 volumes:
405 - name: system
406 capacity: !os_env NODE_VOLUME_SIZE, 150
407 backing_store: mcp_ubuntu_1604_image
408 format: qcow2
409 - name: iso # Volume with name 'iso' will be used
410 # for store image with cloud-init metadata.
411 capacity: 1
412 format: raw
413 device: cdrom
414 bus: ide
415 cloudinit_meta_data: *cloudinit_meta_data
416 cloudinit_user_data: *cloudinit_user_data_1604_swp
417
418 interfaces: *interfaces
419 network_config: *network_config
420
421 - name: {{ HOSTNAME_LOG01 }}
422 role: salt_minion
423 params:
424 vcpu: !os_env SLAVE_NODE_CPU, 2
425 memory: !os_env SLAVE_NODE_MEMORY, 4096
426 boot:
427 - hd
428 cloud_init_volume_name: iso
429 cloud_init_iface_up: ens3
430 volumes:
431 - name: system
432 capacity: !os_env NODE_VOLUME_SIZE, 150
433 backing_store: mcp_ubuntu_1604_image
434 format: qcow2
435 - name: iso # Volume with name 'iso' will be used
436 # for store image with cloud-init metadata.
437 capacity: 1
438 format: raw
439 device: cdrom
440 bus: ide
441 cloudinit_meta_data: *cloudinit_meta_data
442 cloudinit_user_data: *cloudinit_user_data_1604_swp
443
444 interfaces: *interfaces
445 network_config: *network_config
446
447 - name: {{ HOSTNAME_LOG02 }}
448 role: salt_minion
449 params:
450 vcpu: !os_env SLAVE_NODE_CPU, 2
451 memory: !os_env SLAVE_NODE_MEMORY, 4096
452 boot:
453 - hd
454 cloud_init_volume_name: iso
455 cloud_init_iface_up: ens3
456 volumes:
457 - name: system
458 capacity: !os_env NODE_VOLUME_SIZE, 150
459 backing_store: mcp_ubuntu_1604_image
460 format: qcow2
461 - name: iso # Volume with name 'iso' will be used
462 # for store image with cloud-init metadata.
463 capacity: 1
464 format: raw
465 device: cdrom
466 bus: ide
467 cloudinit_meta_data: *cloudinit_meta_data
468 cloudinit_user_data: *cloudinit_user_data_1604_swp
469
470 interfaces: *interfaces
471 network_config: *network_config
472
473 - name: {{ HOSTNAME_LOG03 }}
474 role: salt_minion
475 params:
476 vcpu: !os_env SLAVE_NODE_CPU, 2
477 memory: !os_env SLAVE_NODE_MEMORY, 4096
478 boot:
479 - hd
480 cloud_init_volume_name: iso
481 cloud_init_iface_up: ens3
482 volumes:
483 - name: system
484 capacity: !os_env NODE_VOLUME_SIZE, 150
485 backing_store: mcp_ubuntu_1604_image
486 format: qcow2
487 - name: iso # Volume with name 'iso' will be used
488 # for store image with cloud-init metadata.
489 capacity: 1
490 format: raw
491 device: cdrom
492 bus: ide
493 cloudinit_meta_data: *cloudinit_meta_data
494 cloudinit_user_data: *cloudinit_user_data_1604_swp
495
496 interfaces: *interfaces
497 network_config: *network_config
498
499 - name: {{ HOSTNAME_MTR01 }}
500 role: salt_minion
501 params:
502 vcpu: !os_env SLAVE_NODE_CPU, 2
503 memory: !os_env SLAVE_NODE_MEMORY, 2048
504 boot:
505 - hd
506 cloud_init_volume_name: iso
507 cloud_init_iface_up: ens3
508 volumes:
509 - name: system
510 capacity: !os_env NODE_VOLUME_SIZE, 150
511 backing_store: mcp_ubuntu_1604_image
512 format: qcow2
513 - name: iso # Volume with name 'iso' will be used
514 # for store image with cloud-init metadata.
515 capacity: 1
516 format: raw
517 device: cdrom
518 bus: ide
519 cloudinit_meta_data: *cloudinit_meta_data
520 cloudinit_user_data: *cloudinit_user_data_1604_swp
521
522 interfaces: *interfaces
523 network_config: *network_config
524
525 - name: {{ HOSTNAME_MTR02 }}
526 role: salt_minion
527 params:
528 vcpu: !os_env SLAVE_NODE_CPU, 2
529 memory: !os_env SLAVE_NODE_MEMORY, 2048
530 boot:
531 - hd
532 cloud_init_volume_name: iso
533 cloud_init_iface_up: ens3
534 volumes:
535 - name: system
536 capacity: !os_env NODE_VOLUME_SIZE, 150
537 backing_store: mcp_ubuntu_1604_image
538 format: qcow2
539 - name: iso # Volume with name 'iso' will be used
540 # for store image with cloud-init metadata.
541 capacity: 1
542 format: raw
543 device: cdrom
544 bus: ide
545 cloudinit_meta_data: *cloudinit_meta_data
546 cloudinit_user_data: *cloudinit_user_data_1604_swp
547
548 interfaces: *interfaces
549 network_config: *network_config
550
551 - name: {{ HOSTNAME_MTR03 }}
552 role: salt_minion
553 params:
554 vcpu: !os_env SLAVE_NODE_CPU, 2
555 memory: !os_env SLAVE_NODE_MEMORY, 2048
556 boot:
557 - hd
558 cloud_init_volume_name: iso
559 cloud_init_iface_up: ens3
560 volumes:
561 - name: system
562 capacity: !os_env NODE_VOLUME_SIZE, 150
563 backing_store: mcp_ubuntu_1604_image
564 format: qcow2
565 - name: iso # Volume with name 'iso' will be used
566 # for store image with cloud-init metadata.
567 capacity: 1
568 format: raw
569 device: cdrom
570 bus: ide
571 cloudinit_meta_data: *cloudinit_meta_data
572 cloudinit_user_data: *cloudinit_user_data_1604_swp
573
574 interfaces: *interfaces
575 network_config: *network_config
576
577 - name: {{ HOSTNAME_PRX01 }}
578 role: salt_minion
579 params:
580 vcpu: !os_env SLAVE_NODE_CPU, 1
581 memory: !os_env SLAVE_NODE_MEMORY, 2048
582 boot:
583 - hd
584 cloud_init_volume_name: iso
585 cloud_init_iface_up: ens3
586 volumes:
587 - name: system
588 capacity: !os_env NODE_VOLUME_SIZE, 150
589 backing_store: mcp_ubuntu_1604_image
590 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300591 - name: iso # Volume with name 'iso' will be used
592 # for store image with cloud-init metadata.
593 capacity: 1
594 format: raw
595 device: cdrom
596 bus: ide
597 cloudinit_meta_data: *cloudinit_meta_data
598 cloudinit_user_data: *cloudinit_user_data_1604_swp
599
Dennis Dmitriev1ddf6472018-11-25 22:30:12 +0200600 interfaces:
601 - label: ens3
602 l2_network_device: admin
603 interface_model: *interface_model
604 - label: ens4
605 l2_network_device: private
606 interface_model: *interface_model
607 - label: ens5
608 l2_network_device: external
609 interface_model: *interface_model
610 network_config:
611 ens3:
612 networks:
613 - admin
614 ens4:
615 networks:
616 - private
617 ens5:
618 networks:
619 - external
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300620
621 - name: {{ HOSTNAME_CMP01 }}
622 role: salt_minion
623 params:
624 vcpu: !os_env SLAVE_NODE_CPU, 3
625 memory: !os_env SLAVE_NODE_MEMORY, 4096
626 boot:
627 - hd
628 cloud_init_volume_name: iso
629 cloud_init_iface_up: ens3
630 volumes:
631 - name: system
632 capacity: !os_env NODE_VOLUME_SIZE, 150
633 backing_store: cloudimage1604
634 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300635 - name: cinder
636 capacity: 50
637 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300638 - name: iso # Volume with name 'iso' will be used
639 # for store image with cloud-init metadata.
640 capacity: 1
641 format: raw
642 device: cdrom
643 bus: ide
644 cloudinit_meta_data: *cloudinit_meta_data
645 cloudinit_user_data: *cloudinit_user_data_1604_swp
646
647
648 interfaces: &all_interfaces
649 - label: ens3
650 l2_network_device: admin
651 interface_model: *interface_model
652 - label: ens4
653 l2_network_device: private
654 interface_model: *interface_model
655 - label: ens5
656 l2_network_device: tenant
657 interface_model: *interface_model
658 - label: ens6
659 l2_network_device: external
660 interface_model: *interface_model
661 network_config: &all_network_config
662 ens3:
663 networks:
664 - admin
665 ens4:
666 networks:
667 - private
668 ens5:
669 networks:
670 - tenant
671 ens6:
672 networks:
673 - external
674
675 - name: {{ HOSTNAME_CMP02 }}
676 role: salt_minion
677 params:
678 vcpu: !os_env SLAVE_NODE_CPU, 3
679 memory: !os_env SLAVE_NODE_MEMORY, 4096
680 boot:
681 - hd
682 cloud_init_volume_name: iso
683 cloud_init_iface_up: ens3
684 volumes:
685 - name: system
686 capacity: !os_env NODE_VOLUME_SIZE, 150
687 backing_store: cloudimage1604
688 format: qcow2
Dennis Dmitrievd40f9332018-10-24 15:31:23 +0300689 - name: cinder
690 capacity: 50
691 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300692 - name: iso # Volume with name 'iso' will be used
693 # for store image with cloud-init metadata.
694 capacity: 1
695 format: raw
696 device: cdrom
697 bus: ide
698 cloudinit_meta_data: *cloudinit_meta_data
699 cloudinit_user_data: *cloudinit_user_data_1604_swp
700
701 interfaces: *all_interfaces
702 network_config: *all_network_config
703
704 - name: {{ HOSTNAME_GTW01 }}
705 role: salt_minion
706 params:
707 vcpu: !os_env SLAVE_NODE_CPU, 4
708 memory: !os_env SLAVE_NODE_MEMORY, 4096
709 boot:
710 - hd
711 cloud_init_volume_name: iso
712 cloud_init_iface_up: ens3
713 volumes:
714 - name: system
715 capacity: !os_env NODE_VOLUME_SIZE, 150
716 backing_store: cloudimage1604
717 format: qcow2
718 - name: iso # Volume with name 'iso' will be used
719 # for store image with cloud-init metadata.
720 capacity: 1
721 format: raw
722 device: cdrom
723 bus: ide
724 cloudinit_meta_data: *cloudinit_meta_data
725 cloudinit_user_data: *cloudinit_user_data_1604_swp
726
727 interfaces: *all_interfaces
728 network_config: *all_network_config
729
730 - name: {{ HOSTNAME_KVM01 }}
731 role: salt_minion
732 params:
733 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
734 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
735 boot:
736 - hd
737 cloud_init_volume_name: iso
738 cloud_init_iface_up: ens3
739 volumes:
740 - name: system
741 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
742 backing_store: mcp_ubuntu_1604_image
743 format: qcow2
744 - name: iso # Volume with name 'iso' will be used
745 # for store image with cloud-init metadata.
746 capacity: 1
747 format: raw
748 device: cdrom
749 bus: ide
750 cloudinit_meta_data: *cloudinit_meta_data
751 cloudinit_user_data: *cloudinit_user_data_1604_swp
752
753 interfaces: *interfaces
754 network_config: *network_config
755
756 - name: {{ HOSTNAME_KVM02 }}
757 role: salt_minion
758 params:
759 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
760 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
761 boot:
762 - hd
763 cloud_init_volume_name: iso
764 cloud_init_iface_up: ens3
765 volumes:
766 - name: system
767 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
768 backing_store: mcp_ubuntu_1604_image
769 format: qcow2
770 - name: iso # Volume with name 'iso' will be used
771 # for store image with cloud-init metadata.
772 capacity: 1
773 format: raw
774 device: cdrom
775 bus: ide
776 cloudinit_meta_data: *cloudinit_meta_data
777 cloudinit_user_data: *cloudinit_user_data_1604_swp
778
779 interfaces: *interfaces
780 network_config: *network_config
781
782 - name: {{ HOSTNAME_KVM03 }}
783 role: salt_minion
784 params:
785 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
786 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
787 boot:
788 - hd
789 cloud_init_volume_name: iso
790 cloud_init_iface_up: ens3
791 volumes:
792 - name: system
793 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
794 backing_store: mcp_ubuntu_1604_image
795 format: qcow2
796 - name: iso # Volume with name 'iso' will be used
797 # for store image with cloud-init metadata.
798 capacity: 1
799 format: raw
800 device: cdrom
801 bus: ide
802 cloudinit_meta_data: *cloudinit_meta_data
803 cloudinit_user_data: *cloudinit_user_data_1604_swp
804
805 interfaces: *interfaces
806 network_config: *network_config
807
808 - name: {{ HOSTNAME_CID01 }}
809 role: salt_minion
810 params:
811 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
812 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
813 boot:
814 - hd
815 cloud_init_volume_name: iso
816 cloud_init_iface_up: ens3
817 volumes:
818 - name: system
819 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
820 backing_store: mcp_ubuntu_1604_image
821 format: qcow2
822 - name: iso # Volume with name 'iso' will be used
823 # for store image with cloud-init metadata.
824 capacity: 1
825 format: raw
826 device: cdrom
827 bus: ide
828 cloudinit_meta_data: *cloudinit_meta_data
829 cloudinit_user_data: *cloudinit_user_data_1604_swp
830
831 interfaces: *interfaces
832 network_config: *network_config
833
834 - name: {{ HOSTNAME_CID02 }}
835 role: salt_minion
836 params:
837 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
838 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
839 boot:
840 - hd
841 cloud_init_volume_name: iso
842 cloud_init_iface_up: ens3
843 volumes:
844 - name: system
845 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
846 backing_store: mcp_ubuntu_1604_image
847 format: qcow2
848 - name: iso # Volume with name 'iso' will be used
849 # for store image with cloud-init metadata.
850 capacity: 1
851 format: raw
852 device: cdrom
853 bus: ide
854 cloudinit_meta_data: *cloudinit_meta_data
855 cloudinit_user_data: *cloudinit_user_data_1604_swp
856
857 interfaces: *interfaces
858 network_config: *network_config
859
860 - name: {{ HOSTNAME_CID03 }}
861 role: salt_minion
862 params:
863 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
864 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
865 boot:
866 - hd
867 cloud_init_volume_name: iso
868 cloud_init_iface_up: ens3
869 volumes:
870 - name: system
871 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
872 backing_store: mcp_ubuntu_1604_image
873 format: qcow2
874 - name: iso # Volume with name 'iso' will be used
875 # for store image with cloud-init metadata.
876 capacity: 1
877 format: raw
878 device: cdrom
879 bus: ide
880 cloudinit_meta_data: *cloudinit_meta_data
881 cloudinit_user_data: *cloudinit_user_data_1604_swp
882
883 interfaces: *interfaces
884 network_config: *network_config