blob: b1efeb1c86405be4c1dff12487b9e4b67656a7f3 [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
601 interfaces: *interfaces
602 network_config: *network_config
603
604 - name: {{ HOSTNAME_CMP01 }}
605 role: salt_minion
606 params:
607 vcpu: !os_env SLAVE_NODE_CPU, 3
608 memory: !os_env SLAVE_NODE_MEMORY, 4096
609 boot:
610 - hd
611 cloud_init_volume_name: iso
612 cloud_init_iface_up: ens3
613 volumes:
614 - name: system
615 capacity: !os_env NODE_VOLUME_SIZE, 150
616 backing_store: cloudimage1604
617 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300618 - name: cinder
619 capacity: 50
620 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300621 - name: iso # Volume with name 'iso' will be used
622 # for store image with cloud-init metadata.
623 capacity: 1
624 format: raw
625 device: cdrom
626 bus: ide
627 cloudinit_meta_data: *cloudinit_meta_data
628 cloudinit_user_data: *cloudinit_user_data_1604_swp
629
630
631 interfaces: &all_interfaces
632 - label: ens3
633 l2_network_device: admin
634 interface_model: *interface_model
635 - label: ens4
636 l2_network_device: private
637 interface_model: *interface_model
638 - label: ens5
639 l2_network_device: tenant
640 interface_model: *interface_model
641 - label: ens6
642 l2_network_device: external
643 interface_model: *interface_model
644 network_config: &all_network_config
645 ens3:
646 networks:
647 - admin
648 ens4:
649 networks:
650 - private
651 ens5:
652 networks:
653 - tenant
654 ens6:
655 networks:
656 - external
657
658 - name: {{ HOSTNAME_CMP02 }}
659 role: salt_minion
660 params:
661 vcpu: !os_env SLAVE_NODE_CPU, 3
662 memory: !os_env SLAVE_NODE_MEMORY, 4096
663 boot:
664 - hd
665 cloud_init_volume_name: iso
666 cloud_init_iface_up: ens3
667 volumes:
668 - name: system
669 capacity: !os_env NODE_VOLUME_SIZE, 150
670 backing_store: cloudimage1604
671 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300672 - name: cinder
673 capacity: 50
674 format: qcow2
Dennis Dmitrievb3b37492018-07-08 21:23:00 +0300675 - name: iso # Volume with name 'iso' will be used
676 # for store image with cloud-init metadata.
677 capacity: 1
678 format: raw
679 device: cdrom
680 bus: ide
681 cloudinit_meta_data: *cloudinit_meta_data
682 cloudinit_user_data: *cloudinit_user_data_1604_swp
683
684 interfaces: *all_interfaces
685 network_config: *all_network_config
686
687 - name: {{ HOSTNAME_GTW01 }}
688 role: salt_minion
689 params:
690 vcpu: !os_env SLAVE_NODE_CPU, 4
691 memory: !os_env SLAVE_NODE_MEMORY, 4096
692 boot:
693 - hd
694 cloud_init_volume_name: iso
695 cloud_init_iface_up: ens3
696 volumes:
697 - name: system
698 capacity: !os_env NODE_VOLUME_SIZE, 150
699 backing_store: cloudimage1604
700 format: qcow2
701 - name: iso # Volume with name 'iso' will be used
702 # for store image with cloud-init metadata.
703 capacity: 1
704 format: raw
705 device: cdrom
706 bus: ide
707 cloudinit_meta_data: *cloudinit_meta_data
708 cloudinit_user_data: *cloudinit_user_data_1604_swp
709
710 interfaces: *all_interfaces
711 network_config: *all_network_config
712
713 - name: {{ HOSTNAME_KVM01 }}
714 role: salt_minion
715 params:
716 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
717 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
718 boot:
719 - hd
720 cloud_init_volume_name: iso
721 cloud_init_iface_up: ens3
722 volumes:
723 - name: system
724 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
725 backing_store: mcp_ubuntu_1604_image
726 format: qcow2
727 - name: iso # Volume with name 'iso' will be used
728 # for store image with cloud-init metadata.
729 capacity: 1
730 format: raw
731 device: cdrom
732 bus: ide
733 cloudinit_meta_data: *cloudinit_meta_data
734 cloudinit_user_data: *cloudinit_user_data_1604_swp
735
736 interfaces: *interfaces
737 network_config: *network_config
738
739 - name: {{ HOSTNAME_KVM02 }}
740 role: salt_minion
741 params:
742 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
743 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
744 boot:
745 - hd
746 cloud_init_volume_name: iso
747 cloud_init_iface_up: ens3
748 volumes:
749 - name: system
750 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
751 backing_store: mcp_ubuntu_1604_image
752 format: qcow2
753 - name: iso # Volume with name 'iso' will be used
754 # for store image with cloud-init metadata.
755 capacity: 1
756 format: raw
757 device: cdrom
758 bus: ide
759 cloudinit_meta_data: *cloudinit_meta_data
760 cloudinit_user_data: *cloudinit_user_data_1604_swp
761
762 interfaces: *interfaces
763 network_config: *network_config
764
765 - name: {{ HOSTNAME_KVM03 }}
766 role: salt_minion
767 params:
768 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
769 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
770 boot:
771 - hd
772 cloud_init_volume_name: iso
773 cloud_init_iface_up: ens3
774 volumes:
775 - name: system
776 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
777 backing_store: mcp_ubuntu_1604_image
778 format: qcow2
779 - name: iso # Volume with name 'iso' will be used
780 # for store image with cloud-init metadata.
781 capacity: 1
782 format: raw
783 device: cdrom
784 bus: ide
785 cloudinit_meta_data: *cloudinit_meta_data
786 cloudinit_user_data: *cloudinit_user_data_1604_swp
787
788 interfaces: *interfaces
789 network_config: *network_config
790
791 - name: {{ HOSTNAME_CID01 }}
792 role: salt_minion
793 params:
794 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
795 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
796 boot:
797 - hd
798 cloud_init_volume_name: iso
799 cloud_init_iface_up: ens3
800 volumes:
801 - name: system
802 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
803 backing_store: mcp_ubuntu_1604_image
804 format: qcow2
805 - name: iso # Volume with name 'iso' will be used
806 # for store image with cloud-init metadata.
807 capacity: 1
808 format: raw
809 device: cdrom
810 bus: ide
811 cloudinit_meta_data: *cloudinit_meta_data
812 cloudinit_user_data: *cloudinit_user_data_1604_swp
813
814 interfaces: *interfaces
815 network_config: *network_config
816
817 - name: {{ HOSTNAME_CID02 }}
818 role: salt_minion
819 params:
820 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
821 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
822 boot:
823 - hd
824 cloud_init_volume_name: iso
825 cloud_init_iface_up: ens3
826 volumes:
827 - name: system
828 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
829 backing_store: mcp_ubuntu_1604_image
830 format: qcow2
831 - name: iso # Volume with name 'iso' will be used
832 # for store image with cloud-init metadata.
833 capacity: 1
834 format: raw
835 device: cdrom
836 bus: ide
837 cloudinit_meta_data: *cloudinit_meta_data
838 cloudinit_user_data: *cloudinit_user_data_1604_swp
839
840 interfaces: *interfaces
841 network_config: *network_config
842
843 - name: {{ HOSTNAME_CID03 }}
844 role: salt_minion
845 params:
846 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
847 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
848 boot:
849 - hd
850 cloud_init_volume_name: iso
851 cloud_init_iface_up: ens3
852 volumes:
853 - name: system
854 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
855 backing_store: mcp_ubuntu_1604_image
856 format: qcow2
857 - name: iso # Volume with name 'iso' will be used
858 # for store image with cloud-init metadata.
859 capacity: 1
860 format: raw
861 device: cdrom
862 bus: ide
863 cloudinit_meta_data: *cloudinit_meta_data
864 cloudinit_user_data: *cloudinit_user_data_1604_swp
865
866 interfaces: *interfaces
867 network_config: *network_config