blob: a7b966c210cbecb9c0fc0acc5bcdb073e8293e3d [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
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300268 - name: iso # Volume with name 'iso' will be used
269 # for store image with cloud-init metadata.
270 capacity: 1
271 format: raw
272 device: cdrom
273 bus: ide
274 cloudinit_meta_data: *cloudinit_meta_data
275 cloudinit_user_data: *cloudinit_user_data_1604_swp
276
277 interfaces: &interfaces
278 - label: ens3
279 l2_network_device: admin
280 interface_model: *interface_model
281 - label: ens4
282 l2_network_device: private
283 interface_model: *interface_model
284 network_config: &network_config
285 ens3:
286 networks:
287 - admin
288 ens4:
289 networks:
290 - private
291
292 - name: {{ HOSTNAME_CTL02 }}
293 role: salt_minion
294 params:
295 vcpu: !os_env SLAVE_NODE_CPU, 2
296 memory: !os_env SLAVE_NODE_MEMORY, 16384
297 boot:
298 - hd
299 cloud_init_volume_name: iso
300 cloud_init_iface_up: ens3
301 volumes:
302 - name: system
303 capacity: !os_env NODE_VOLUME_SIZE, 150
304 backing_store: mcp_ubuntu_1604_image
305 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300306 - name: iso # Volume with name 'iso' will be used
307 # for store image with cloud-init metadata.
308 capacity: 1
309 format: raw
310 device: cdrom
311 bus: ide
312 cloudinit_meta_data: *cloudinit_meta_data
313 cloudinit_user_data: *cloudinit_user_data_1604_swp
314
315 interfaces: *interfaces
316 network_config: *network_config
317
318 - name: {{ HOSTNAME_CTL03 }}
319 role: salt_minion
320 params:
321 vcpu: !os_env SLAVE_NODE_CPU, 2
322 memory: !os_env SLAVE_NODE_MEMORY, 16384
323 boot:
324 - hd
325 cloud_init_volume_name: iso
326 cloud_init_iface_up: ens3
327 volumes:
328 - name: system
329 capacity: !os_env NODE_VOLUME_SIZE, 150
330 backing_store: mcp_ubuntu_1604_image
331 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300332 - name: iso # Volume with name 'iso' will be used
333 # for store image with cloud-init metadata.
334 capacity: 1
335 format: raw
336 device: cdrom
337 bus: ide
338 cloudinit_meta_data: *cloudinit_meta_data
339 cloudinit_user_data: *cloudinit_user_data_1604_swp
340
341 interfaces: *interfaces
342 network_config: *network_config
343
344 - name: {{ HOSTNAME_MON01 }}
345 role: salt_minion
346 params:
347 vcpu: !os_env SLAVE_NODE_CPU, 2
348 memory: !os_env SLAVE_NODE_MEMORY, 2048
349 boot:
350 - hd
351 cloud_init_volume_name: iso
352 cloud_init_iface_up: ens3
353 volumes:
354 - name: system
355 capacity: !os_env NODE_VOLUME_SIZE, 150
356 backing_store: mcp_ubuntu_1604_image
357 format: qcow2
358 - name: iso # Volume with name 'iso' will be used
359 # for store image with cloud-init metadata.
360 capacity: 1
361 format: raw
362 device: cdrom
363 bus: ide
364 cloudinit_meta_data: *cloudinit_meta_data
365 cloudinit_user_data: *cloudinit_user_data_1604_swp
366
367 interfaces: *interfaces
368 network_config: *network_config
369
370 - name: {{ HOSTNAME_MON02 }}
371 role: salt_minion
372 params:
373 vcpu: !os_env SLAVE_NODE_CPU, 2
374 memory: !os_env SLAVE_NODE_MEMORY, 2048
375 boot:
376 - hd
377 cloud_init_volume_name: iso
378 cloud_init_iface_up: ens3
379 volumes:
380 - name: system
381 capacity: !os_env NODE_VOLUME_SIZE, 150
382 backing_store: mcp_ubuntu_1604_image
383 format: qcow2
384 - name: iso # Volume with name 'iso' will be used
385 # for store image with cloud-init metadata.
386 capacity: 1
387 format: raw
388 device: cdrom
389 bus: ide
390 cloudinit_meta_data: *cloudinit_meta_data
391 cloudinit_user_data: *cloudinit_user_data_1604_swp
392
393 interfaces: *interfaces
394 network_config: *network_config
395
396 - name: {{ HOSTNAME_MON03 }}
397 role: salt_minion
398 params:
399 vcpu: !os_env SLAVE_NODE_CPU, 2
400 memory: !os_env SLAVE_NODE_MEMORY, 2048
401 boot:
402 - hd
403 cloud_init_volume_name: iso
404 cloud_init_iface_up: ens3
405 volumes:
406 - name: system
407 capacity: !os_env NODE_VOLUME_SIZE, 150
408 backing_store: mcp_ubuntu_1604_image
409 format: qcow2
410 - name: iso # Volume with name 'iso' will be used
411 # for store image with cloud-init metadata.
412 capacity: 1
413 format: raw
414 device: cdrom
415 bus: ide
416 cloudinit_meta_data: *cloudinit_meta_data
417 cloudinit_user_data: *cloudinit_user_data_1604_swp
418
419 interfaces: *interfaces
420 network_config: *network_config
421
422 - name: {{ HOSTNAME_LOG01 }}
423 role: salt_minion
424 params:
425 vcpu: !os_env SLAVE_NODE_CPU, 2
426 memory: !os_env SLAVE_NODE_MEMORY, 4096
427 boot:
428 - hd
429 cloud_init_volume_name: iso
430 cloud_init_iface_up: ens3
431 volumes:
432 - name: system
433 capacity: !os_env NODE_VOLUME_SIZE, 150
434 backing_store: mcp_ubuntu_1604_image
435 format: qcow2
436 - name: iso # Volume with name 'iso' will be used
437 # for store image with cloud-init metadata.
438 capacity: 1
439 format: raw
440 device: cdrom
441 bus: ide
442 cloudinit_meta_data: *cloudinit_meta_data
443 cloudinit_user_data: *cloudinit_user_data_1604_swp
444
445 interfaces: *interfaces
446 network_config: *network_config
447
448 - name: {{ HOSTNAME_LOG02 }}
449 role: salt_minion
450 params:
451 vcpu: !os_env SLAVE_NODE_CPU, 2
452 memory: !os_env SLAVE_NODE_MEMORY, 4096
453 boot:
454 - hd
455 cloud_init_volume_name: iso
456 cloud_init_iface_up: ens3
457 volumes:
458 - name: system
459 capacity: !os_env NODE_VOLUME_SIZE, 150
460 backing_store: mcp_ubuntu_1604_image
461 format: qcow2
462 - name: iso # Volume with name 'iso' will be used
463 # for store image with cloud-init metadata.
464 capacity: 1
465 format: raw
466 device: cdrom
467 bus: ide
468 cloudinit_meta_data: *cloudinit_meta_data
469 cloudinit_user_data: *cloudinit_user_data_1604_swp
470
471 interfaces: *interfaces
472 network_config: *network_config
473
474 - name: {{ HOSTNAME_LOG03 }}
475 role: salt_minion
476 params:
477 vcpu: !os_env SLAVE_NODE_CPU, 2
478 memory: !os_env SLAVE_NODE_MEMORY, 4096
479 boot:
480 - hd
481 cloud_init_volume_name: iso
482 cloud_init_iface_up: ens3
483 volumes:
484 - name: system
485 capacity: !os_env NODE_VOLUME_SIZE, 150
486 backing_store: mcp_ubuntu_1604_image
487 format: qcow2
488 - name: iso # Volume with name 'iso' will be used
489 # for store image with cloud-init metadata.
490 capacity: 1
491 format: raw
492 device: cdrom
493 bus: ide
494 cloudinit_meta_data: *cloudinit_meta_data
495 cloudinit_user_data: *cloudinit_user_data_1604_swp
496
497 interfaces: *interfaces
498 network_config: *network_config
499
500 - name: {{ HOSTNAME_MTR01 }}
501 role: salt_minion
502 params:
503 vcpu: !os_env SLAVE_NODE_CPU, 2
504 memory: !os_env SLAVE_NODE_MEMORY, 2048
505 boot:
506 - hd
507 cloud_init_volume_name: iso
508 cloud_init_iface_up: ens3
509 volumes:
510 - name: system
511 capacity: !os_env NODE_VOLUME_SIZE, 150
512 backing_store: mcp_ubuntu_1604_image
513 format: qcow2
514 - name: iso # Volume with name 'iso' will be used
515 # for store image with cloud-init metadata.
516 capacity: 1
517 format: raw
518 device: cdrom
519 bus: ide
520 cloudinit_meta_data: *cloudinit_meta_data
521 cloudinit_user_data: *cloudinit_user_data_1604_swp
522
523 interfaces: *interfaces
524 network_config: *network_config
525
526 - name: {{ HOSTNAME_MTR02 }}
527 role: salt_minion
528 params:
529 vcpu: !os_env SLAVE_NODE_CPU, 2
530 memory: !os_env SLAVE_NODE_MEMORY, 2048
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: mcp_ubuntu_1604_image
539 format: qcow2
540 - name: iso # Volume with name 'iso' will be used
541 # for store image with cloud-init metadata.
542 capacity: 1
543 format: raw
544 device: cdrom
545 bus: ide
546 cloudinit_meta_data: *cloudinit_meta_data
547 cloudinit_user_data: *cloudinit_user_data_1604_swp
548
549 interfaces: *interfaces
550 network_config: *network_config
551
552 - name: {{ HOSTNAME_MTR03 }}
553 role: salt_minion
554 params:
555 vcpu: !os_env SLAVE_NODE_CPU, 2
556 memory: !os_env SLAVE_NODE_MEMORY, 2048
557 boot:
558 - hd
559 cloud_init_volume_name: iso
560 cloud_init_iface_up: ens3
561 volumes:
562 - name: system
563 capacity: !os_env NODE_VOLUME_SIZE, 150
564 backing_store: mcp_ubuntu_1604_image
565 format: qcow2
566 - name: iso # Volume with name 'iso' will be used
567 # for store image with cloud-init metadata.
568 capacity: 1
569 format: raw
570 device: cdrom
571 bus: ide
572 cloudinit_meta_data: *cloudinit_meta_data
573 cloudinit_user_data: *cloudinit_user_data_1604_swp
574
575 interfaces: *interfaces
576 network_config: *network_config
577
578 - name: {{ HOSTNAME_PRX01 }}
579 role: salt_minion
580 params:
581 vcpu: !os_env SLAVE_NODE_CPU, 1
582 memory: !os_env SLAVE_NODE_MEMORY, 2048
583 boot:
584 - hd
585 cloud_init_volume_name: iso
586 cloud_init_iface_up: ens3
587 volumes:
588 - name: system
589 capacity: !os_env NODE_VOLUME_SIZE, 150
590 backing_store: mcp_ubuntu_1604_image
591 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300592 - name: iso # Volume with name 'iso' will be used
593 # for store image with cloud-init metadata.
594 capacity: 1
595 format: raw
596 device: cdrom
597 bus: ide
598 cloudinit_meta_data: *cloudinit_meta_data
599 cloudinit_user_data: *cloudinit_user_data_1604_swp
600
Dennis Dmitriev1ddf6472018-11-25 22:30:12 +0200601 interfaces:
602 - label: ens3
603 l2_network_device: admin
604 interface_model: *interface_model
605 - label: ens4
606 l2_network_device: private
607 interface_model: *interface_model
608 - label: ens5
609 l2_network_device: external
610 interface_model: *interface_model
611 network_config:
612 ens3:
613 networks:
614 - admin
615 ens4:
616 networks:
617 - private
618 ens5:
619 networks:
620 - external
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300621
622 - name: {{ HOSTNAME_CMP01 }}
623 role: salt_minion
624 params:
625 vcpu: !os_env SLAVE_NODE_CPU, 3
626 memory: !os_env SLAVE_NODE_MEMORY, 4096
627 boot:
628 - hd
629 cloud_init_volume_name: iso
630 cloud_init_iface_up: ens3
631 volumes:
632 - name: system
633 capacity: !os_env NODE_VOLUME_SIZE, 150
634 backing_store: cloudimage1604
635 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300636 - name: cinder
637 capacity: 50
638 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300639 - name: iso # Volume with name 'iso' will be used
640 # for store image with cloud-init metadata.
641 capacity: 1
642 format: raw
643 device: cdrom
644 bus: ide
645 cloudinit_meta_data: *cloudinit_meta_data
646 cloudinit_user_data: *cloudinit_user_data_1604_swp
647
648
649 interfaces: &all_interfaces
650 - label: ens3
651 l2_network_device: admin
652 interface_model: *interface_model
653 - label: ens4
654 l2_network_device: private
655 interface_model: *interface_model
656 - label: ens5
657 l2_network_device: tenant
658 interface_model: *interface_model
659 - label: ens6
660 l2_network_device: external
661 interface_model: *interface_model
662 network_config: &all_network_config
663 ens3:
664 networks:
665 - admin
666 ens4:
667 networks:
668 - private
669 ens5:
670 networks:
671 - tenant
672 ens6:
673 networks:
674 - external
675
676 - name: {{ HOSTNAME_CMP02 }}
677 role: salt_minion
678 params:
679 vcpu: !os_env SLAVE_NODE_CPU, 3
680 memory: !os_env SLAVE_NODE_MEMORY, 4096
681 boot:
682 - hd
683 cloud_init_volume_name: iso
684 cloud_init_iface_up: ens3
685 volumes:
686 - name: system
687 capacity: !os_env NODE_VOLUME_SIZE, 150
688 backing_store: cloudimage1604
689 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300690 - name: cinder
691 capacity: 50
692 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300693 - name: iso # Volume with name 'iso' will be used
694 # for store image with cloud-init metadata.
695 capacity: 1
696 format: raw
697 device: cdrom
698 bus: ide
699 cloudinit_meta_data: *cloudinit_meta_data
700 cloudinit_user_data: *cloudinit_user_data_1604_swp
701
702 interfaces: *all_interfaces
703 network_config: *all_network_config
704
705 - name: {{ HOSTNAME_GTW01 }}
706 role: salt_minion
707 params:
708 vcpu: !os_env SLAVE_NODE_CPU, 4
709 memory: !os_env SLAVE_NODE_MEMORY, 4096
710 boot:
711 - hd
712 cloud_init_volume_name: iso
713 cloud_init_iface_up: ens3
714 volumes:
715 - name: system
716 capacity: !os_env NODE_VOLUME_SIZE, 150
717 backing_store: cloudimage1604
718 format: qcow2
719 - name: iso # Volume with name 'iso' will be used
720 # for store image with cloud-init metadata.
721 capacity: 1
722 format: raw
723 device: cdrom
724 bus: ide
725 cloudinit_meta_data: *cloudinit_meta_data
726 cloudinit_user_data: *cloudinit_user_data_1604_swp
727
728 interfaces: *all_interfaces
729 network_config: *all_network_config
730
731 - name: {{ HOSTNAME_KVM01 }}
732 role: salt_minion
733 params:
734 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
735 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
736 boot:
737 - hd
738 cloud_init_volume_name: iso
739 cloud_init_iface_up: ens3
740 volumes:
741 - name: system
742 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
743 backing_store: mcp_ubuntu_1604_image
744 format: qcow2
745 - name: iso # Volume with name 'iso' will be used
746 # for store image with cloud-init metadata.
747 capacity: 1
748 format: raw
749 device: cdrom
750 bus: ide
751 cloudinit_meta_data: *cloudinit_meta_data
752 cloudinit_user_data: *cloudinit_user_data_1604_swp
753
754 interfaces: *interfaces
755 network_config: *network_config
756
757 - name: {{ HOSTNAME_KVM02 }}
758 role: salt_minion
759 params:
760 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
761 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
762 boot:
763 - hd
764 cloud_init_volume_name: iso
765 cloud_init_iface_up: ens3
766 volumes:
767 - name: system
768 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
769 backing_store: mcp_ubuntu_1604_image
770 format: qcow2
771 - name: iso # Volume with name 'iso' will be used
772 # for store image with cloud-init metadata.
773 capacity: 1
774 format: raw
775 device: cdrom
776 bus: ide
777 cloudinit_meta_data: *cloudinit_meta_data
778 cloudinit_user_data: *cloudinit_user_data_1604_swp
779
780 interfaces: *interfaces
781 network_config: *network_config
782
783 - name: {{ HOSTNAME_KVM03 }}
784 role: salt_minion
785 params:
786 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
787 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
788 boot:
789 - hd
790 cloud_init_volume_name: iso
791 cloud_init_iface_up: ens3
792 volumes:
793 - name: system
794 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
795 backing_store: mcp_ubuntu_1604_image
796 format: qcow2
797 - name: iso # Volume with name 'iso' will be used
798 # for store image with cloud-init metadata.
799 capacity: 1
800 format: raw
801 device: cdrom
802 bus: ide
803 cloudinit_meta_data: *cloudinit_meta_data
804 cloudinit_user_data: *cloudinit_user_data_1604_swp
805
806 interfaces: *interfaces
807 network_config: *network_config
808
809 - name: {{ HOSTNAME_CID01 }}
810 role: salt_minion
811 params:
812 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
813 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
814 boot:
815 - hd
816 cloud_init_volume_name: iso
817 cloud_init_iface_up: ens3
818 volumes:
819 - name: system
820 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
821 backing_store: mcp_ubuntu_1604_image
822 format: qcow2
823 - name: iso # Volume with name 'iso' will be used
824 # for store image with cloud-init metadata.
825 capacity: 1
826 format: raw
827 device: cdrom
828 bus: ide
829 cloudinit_meta_data: *cloudinit_meta_data
830 cloudinit_user_data: *cloudinit_user_data_1604_swp
831
832 interfaces: *interfaces
833 network_config: *network_config
834
835 - name: {{ HOSTNAME_CID02 }}
836 role: salt_minion
837 params:
838 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
839 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
840 boot:
841 - hd
842 cloud_init_volume_name: iso
843 cloud_init_iface_up: ens3
844 volumes:
845 - name: system
846 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
847 backing_store: mcp_ubuntu_1604_image
848 format: qcow2
849 - name: iso # Volume with name 'iso' will be used
850 # for store image with cloud-init metadata.
851 capacity: 1
852 format: raw
853 device: cdrom
854 bus: ide
855 cloudinit_meta_data: *cloudinit_meta_data
856 cloudinit_user_data: *cloudinit_user_data_1604_swp
857
858 interfaces: *interfaces
859 network_config: *network_config
860
861 - name: {{ HOSTNAME_CID03 }}
862 role: salt_minion
863 params:
864 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
865 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
866 boot:
867 - hd
868 cloud_init_volume_name: iso
869 cloud_init_iface_up: ens3
870 volumes:
871 - name: system
872 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
873 backing_store: mcp_ubuntu_1604_image
874 format: qcow2
875 - name: iso # Volume with name 'iso' will be used
876 # for store image with cloud-init metadata.
877 capacity: 1
878 format: raw
879 device: cdrom
880 bus: ide
881 cloudinit_meta_data: *cloudinit_meta_data
882 cloudinit_user_data: *cloudinit_user_data_1604_swp
883
884 interfaces: *interfaces
885 network_config: *network_config