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