blob: f8c13d405948d4d1c0ff97d0f3406a6cd6806ae4 [file] [log] [blame]
Oleksii Butenko87d00c02018-09-05 19:11:17 +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-mcp-queens-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-queens-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-queens-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 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 {{ CLOUDINIT_USER_DATA_1604 }}
14
15{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-queens-dvr') %}
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_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Oleksii Butenkoe0fc5f22018-09-25 14:29:42 +030021{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030023{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
26{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
32{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030033{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030034{% set HOSTNAME_SHARE01 = os_env('HOSTNAME_SHARE01', 'share01.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030035
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-queens-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
39
40 address_pools:
41 private-pool01:
42 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
43 params:
44 ip_reserved:
45 gateway: +1
46 l2_network_device: +1
47 default_{{ HOSTNAME_CFG01 }}: +100
48 default_{{ HOSTNAME_CTL01 }}: +101
49 default_{{ HOSTNAME_CTL02 }}: +102
50 default_{{ HOSTNAME_CTL03 }}: +103
51 default_{{ HOSTNAME_CMP01 }}: +105
52 default_{{ HOSTNAME_CMP02 }}: +106
53 default_{{ HOSTNAME_MON01 }}: +71
54 default_{{ HOSTNAME_MON02 }}: +72
55 default_{{ HOSTNAME_MON03 }}: +73
56 default_{{ HOSTNAME_LOG01 }}: +61
57 default_{{ HOSTNAME_LOG02 }}: +62
58 default_{{ HOSTNAME_LOG03 }}: +63
59 default_{{ HOSTNAME_MTR01 }}: +86
60 default_{{ HOSTNAME_MTR02 }}: +87
61 default_{{ HOSTNAME_MTR03 }}: +88
62 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko87d00c02018-09-05 19:11:17 +030063 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030064 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +030065 ip_ranges:
66 dhcp: [+90, -10]
67
68 admin-pool01:
69 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
70 params:
71 ip_reserved:
72 gateway: +1
73 l2_network_device: +1
74 default_{{ HOSTNAME_CFG01 }}: +90
75 default_{{ HOSTNAME_CTL01 }}: +101
76 default_{{ HOSTNAME_CTL02 }}: +102
77 default_{{ HOSTNAME_CTL03 }}: +103
78 default_{{ HOSTNAME_CMP01 }}: +105
79 default_{{ HOSTNAME_CMP02 }}: +106
80 default_{{ HOSTNAME_MON01 }}: +71
81 default_{{ HOSTNAME_MON02 }}: +72
82 default_{{ HOSTNAME_MON03 }}: +73
83 default_{{ HOSTNAME_LOG01 }}: +61
84 default_{{ HOSTNAME_LOG02 }}: +62
85 default_{{ HOSTNAME_LOG03 }}: +63
86 default_{{ HOSTNAME_MTR01 }}: +86
87 default_{{ HOSTNAME_MTR02 }}: +87
88 default_{{ HOSTNAME_MTR03 }}: +88
89 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko87d00c02018-09-05 19:11:17 +030090 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030091 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +030092 ip_ranges:
93 dhcp: [+90, -10]
94
95 tenant-pool01:
96 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
97 params:
98 ip_reserved:
99 gateway: +1
100 l2_network_device: +1
101 default_{{ HOSTNAME_CFG01 }}: +100
102 default_{{ HOSTNAME_CTL01 }}: +101
103 default_{{ HOSTNAME_CTL02 }}: +102
104 default_{{ HOSTNAME_CTL03 }}: +103
105 default_{{ HOSTNAME_CMP01 }}: +105
106 default_{{ HOSTNAME_CMP02 }}: +106
107 default_{{ HOSTNAME_MON01 }}: +71
108 default_{{ HOSTNAME_MON02 }}: +72
109 default_{{ HOSTNAME_MON03 }}: +73
110 default_{{ HOSTNAME_LOG01 }}: +61
111 default_{{ HOSTNAME_LOG02 }}: +62
112 default_{{ HOSTNAME_LOG03 }}: +63
113 default_{{ HOSTNAME_MTR01 }}: +86
114 default_{{ HOSTNAME_MTR02 }}: +87
115 default_{{ HOSTNAME_MTR03 }}: +88
116 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300117 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300118 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300119 ip_ranges:
120 dhcp: [+10, -10]
121
122 external-pool01:
123 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
124 params:
125 ip_reserved:
126 gateway: +1
127 l2_network_device: +1
128 default_{{ HOSTNAME_CFG01 }}: +100
129 default_{{ HOSTNAME_CTL01 }}: +101
130 default_{{ HOSTNAME_CTL02 }}: +102
131 default_{{ HOSTNAME_CTL03 }}: +103
132 default_{{ HOSTNAME_CMP01 }}: +105
133 default_{{ HOSTNAME_CMP02 }}: +106
134 default_{{ HOSTNAME_MON01 }}: +71
135 default_{{ HOSTNAME_MON02 }}: +72
136 default_{{ HOSTNAME_MON03 }}: +73
137 default_{{ HOSTNAME_LOG01 }}: +61
138 default_{{ HOSTNAME_LOG02 }}: +62
139 default_{{ HOSTNAME_LOG03 }}: +63
140 default_{{ HOSTNAME_MTR01 }}: +86
141 default_{{ HOSTNAME_MTR02 }}: +87
142 default_{{ HOSTNAME_MTR03 }}: +88
143 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300144 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300145 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300146 ip_ranges:
Oleksii Butenkoffc09222018-09-21 12:37:16 +0300147 dhcp: [+130, +220]
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300148
149
150 groups:
151 - name: default
152 driver:
153 name: devops.driver.libvirt
154 params:
155 connection_string: !os_env CONNECTION_STRING, qemu:///system
156 storage_pool_name: !os_env STORAGE_POOL_NAME, default
157 stp: False
158 hpet: False
159 enable_acpi: true
160 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
161 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
162
163 network_pools:
164 admin: admin-pool01
165 private: private-pool01
166 tenant: tenant-pool01
167 external: external-pool01
168
169 l2_network_devices:
170 private:
171 address_pool: private-pool01
172 dhcp: false
173 forward:
174 mode: route
175
176 admin:
177 address_pool: admin-pool01
178 dhcp: true
179 forward:
180 mode: nat
181
182 tenant:
183 address_pool: tenant-pool01
184 dhcp: false
185
186 external:
187 address_pool: external-pool01
188 dhcp: false
189 forward:
190 mode: route
191
192
193 group_volumes:
194 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
195 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
196 format: qcow2
197 - name: cfg01_day01_image # Pre-configured day01 image
198 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
199 format: qcow2
200 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
201 source_image: !os_env MCP_IMAGE_PATH1604
202 format: qcow2
203
204 nodes:
205 - name: {{ HOSTNAME_CFG01 }}
206 role: salt_master
207 params:
208 vcpu: !os_env SLAVE_NODE_CPU, 2
209 memory: !os_env SLAVE_NODE_MEMORY, 8192
210 boot:
211 - hd
212 cloud_init_volume_name: iso
213 cloud_init_iface_up: ens3
214 volumes:
215 - name: system
216 capacity: !os_env NODE_VOLUME_SIZE, 150
217 backing_store: cfg01_day01_image
218 format: qcow2
219 - name: iso # Volume with name 'iso' will be used
220 # for store image with cloud-init metadata.
221 capacity: 1
222 format: raw
223 device: cdrom
224 bus: ide
225 cloudinit_meta_data: *cloudinit_meta_data
226 cloudinit_user_data: *cloudinit_user_data_cfg01
227
228 interfaces:
229 - label: ens3
230 l2_network_device: admin
231 interface_model: *interface_model
232 - label: ens4
233 l2_network_device: private
234 interface_model: *interface_model
235 network_config:
236 ens3:
237 networks:
238 - admin
239 ens4:
240 networks:
241 - private
242
243 - name: {{ HOSTNAME_CTL01 }}
244 role: salt_minion
245 params:
246 vcpu: !os_env SLAVE_NODE_CPU, 2
247 memory: !os_env SLAVE_NODE_MEMORY, 16384
248 boot:
249 - hd
250 cloud_init_volume_name: iso
251 cloud_init_iface_up: ens3
252 volumes:
253 - name: system
254 capacity: !os_env NODE_VOLUME_SIZE, 150
255 backing_store: mcp_ubuntu_1604_image
256 format: qcow2
257 - name: cinder
258 capacity: 50
259 format: qcow2
260 - name: iso # Volume with name 'iso' will be used
261 # for store image with cloud-init metadata.
262 capacity: 1
263 format: raw
264 device: cdrom
265 bus: ide
266 cloudinit_meta_data: *cloudinit_meta_data
267 cloudinit_user_data: *cloudinit_user_data_1604
268
269 interfaces: &interfaces
270 - label: ens3
271 l2_network_device: admin
272 interface_model: *interface_model
273 - label: ens4
274 l2_network_device: private
275 interface_model: *interface_model
276 network_config: &network_config
277 ens3:
278 networks:
279 - admin
280 ens4:
281 networks:
282 - private
283
284 - name: {{ HOSTNAME_CTL02 }}
285 role: salt_minion
286 params:
287 vcpu: !os_env SLAVE_NODE_CPU, 2
288 memory: !os_env SLAVE_NODE_MEMORY, 16384
289 boot:
290 - hd
291 cloud_init_volume_name: iso
292 cloud_init_iface_up: ens3
293 volumes:
294 - name: system
295 capacity: !os_env NODE_VOLUME_SIZE, 150
296 backing_store: mcp_ubuntu_1604_image
297 format: qcow2
298 - name: cinder
299 capacity: 50
300 format: qcow2
301 - name: iso # Volume with name 'iso' will be used
302 # for store image with cloud-init metadata.
303 capacity: 1
304 format: raw
305 device: cdrom
306 bus: ide
307 cloudinit_meta_data: *cloudinit_meta_data
308 cloudinit_user_data: *cloudinit_user_data_1604
309
310 interfaces: *interfaces
311 network_config: *network_config
312
313 - name: {{ HOSTNAME_CTL03 }}
314 role: salt_minion
315 params:
316 vcpu: !os_env SLAVE_NODE_CPU, 2
317 memory: !os_env SLAVE_NODE_MEMORY, 16384
318 boot:
319 - hd
320 cloud_init_volume_name: iso
321 cloud_init_iface_up: ens3
322 volumes:
323 - name: system
324 capacity: !os_env NODE_VOLUME_SIZE, 150
325 backing_store: mcp_ubuntu_1604_image
326 format: qcow2
327 - name: cinder
328 capacity: 50
329 format: qcow2
330 - name: iso # Volume with name 'iso' will be used
331 # for store image with cloud-init metadata.
332 capacity: 1
333 format: raw
334 device: cdrom
335 bus: ide
336 cloudinit_meta_data: *cloudinit_meta_data
337 cloudinit_user_data: *cloudinit_user_data_1604
338
339 interfaces: *interfaces
340 network_config: *network_config
341
342 - name: {{ HOSTNAME_MON01 }}
343 role: salt_minion
344 params:
345 vcpu: !os_env SLAVE_NODE_CPU, 2
346 memory: !os_env SLAVE_NODE_MEMORY, 4096
347 boot:
348 - hd
349 cloud_init_volume_name: iso
350 cloud_init_iface_up: ens3
351 volumes:
352 - name: system
353 capacity: !os_env NODE_VOLUME_SIZE, 150
354 backing_store: mcp_ubuntu_1604_image
355 format: qcow2
356 - name: iso # Volume with name 'iso' will be used
357 # for store image with cloud-init metadata.
358 capacity: 1
359 format: raw
360 device: cdrom
361 bus: ide
362 cloudinit_meta_data: *cloudinit_meta_data
363 cloudinit_user_data: *cloudinit_user_data_1604
364
365 interfaces: *interfaces
366 network_config: *network_config
367
368 - name: {{ HOSTNAME_MON02 }}
369 role: salt_minion
370 params:
371 vcpu: !os_env SLAVE_NODE_CPU, 2
372 memory: !os_env SLAVE_NODE_MEMORY, 4096
373 boot:
374 - hd
375 cloud_init_volume_name: iso
376 cloud_init_iface_up: ens3
377 volumes:
378 - name: system
379 capacity: !os_env NODE_VOLUME_SIZE, 150
380 backing_store: mcp_ubuntu_1604_image
381 format: qcow2
382 - name: iso # Volume with name 'iso' will be used
383 # for store image with cloud-init metadata.
384 capacity: 1
385 format: raw
386 device: cdrom
387 bus: ide
388 cloudinit_meta_data: *cloudinit_meta_data
389 cloudinit_user_data: *cloudinit_user_data_1604
390
391 interfaces: *interfaces
392 network_config: *network_config
393
394 - name: {{ HOSTNAME_MON03 }}
395 role: salt_minion
396 params:
397 vcpu: !os_env SLAVE_NODE_CPU, 2
398 memory: !os_env SLAVE_NODE_MEMORY, 4096
399 boot:
400 - hd
401 cloud_init_volume_name: iso
402 cloud_init_iface_up: ens3
403 volumes:
404 - name: system
405 capacity: !os_env NODE_VOLUME_SIZE, 150
406 backing_store: mcp_ubuntu_1604_image
407 format: qcow2
408 - name: iso # Volume with name 'iso' will be used
409 # for store image with cloud-init metadata.
410 capacity: 1
411 format: raw
412 device: cdrom
413 bus: ide
414 cloudinit_meta_data: *cloudinit_meta_data
415 cloudinit_user_data: *cloudinit_user_data_1604
416
417 interfaces: *interfaces
418 network_config: *network_config
419
420 - name: {{ HOSTNAME_LOG01 }}
421 role: salt_minion
422 params:
423 vcpu: !os_env SLAVE_NODE_CPU, 2
424 memory: !os_env SLAVE_NODE_MEMORY, 4096
425 boot:
426 - hd
427 cloud_init_volume_name: iso
428 cloud_init_iface_up: ens3
429 volumes:
430 - name: system
431 capacity: !os_env NODE_VOLUME_SIZE, 150
432 backing_store: mcp_ubuntu_1604_image
433 format: qcow2
434 - name: iso # Volume with name 'iso' will be used
435 # for store image with cloud-init metadata.
436 capacity: 1
437 format: raw
438 device: cdrom
439 bus: ide
440 cloudinit_meta_data: *cloudinit_meta_data
441 cloudinit_user_data: *cloudinit_user_data_1604
442
443 interfaces: *interfaces
444 network_config: *network_config
445
446 - name: {{ HOSTNAME_LOG02 }}
447 role: salt_minion
448 params:
449 vcpu: !os_env SLAVE_NODE_CPU, 2
450 memory: !os_env SLAVE_NODE_MEMORY, 4096
451 boot:
452 - hd
453 cloud_init_volume_name: iso
454 cloud_init_iface_up: ens3
455 volumes:
456 - name: system
457 capacity: !os_env NODE_VOLUME_SIZE, 150
458 backing_store: mcp_ubuntu_1604_image
459 format: qcow2
460 - name: iso # Volume with name 'iso' will be used
461 # for store image with cloud-init metadata.
462 capacity: 1
463 format: raw
464 device: cdrom
465 bus: ide
466 cloudinit_meta_data: *cloudinit_meta_data
467 cloudinit_user_data: *cloudinit_user_data_1604
468
469 interfaces: *interfaces
470 network_config: *network_config
471
472 - name: {{ HOSTNAME_LOG03 }}
473 role: salt_minion
474 params:
475 vcpu: !os_env SLAVE_NODE_CPU, 2
476 memory: !os_env SLAVE_NODE_MEMORY, 4096
477 boot:
478 - hd
479 cloud_init_volume_name: iso
480 cloud_init_iface_up: ens3
481 volumes:
482 - name: system
483 capacity: !os_env NODE_VOLUME_SIZE, 150
484 backing_store: mcp_ubuntu_1604_image
485 format: qcow2
486 - name: iso # Volume with name 'iso' will be used
487 # for store image with cloud-init metadata.
488 capacity: 1
489 format: raw
490 device: cdrom
491 bus: ide
492 cloudinit_meta_data: *cloudinit_meta_data
493 cloudinit_user_data: *cloudinit_user_data_1604
494
495 interfaces: *interfaces
496 network_config: *network_config
497
498 - name: {{ HOSTNAME_MTR01 }}
499 role: salt_minion
500 params:
501 vcpu: !os_env SLAVE_NODE_CPU, 2
502 memory: !os_env SLAVE_NODE_MEMORY, 4096
503 boot:
504 - hd
505 cloud_init_volume_name: iso
506 cloud_init_iface_up: ens3
507 volumes:
508 - name: system
509 capacity: !os_env NODE_VOLUME_SIZE, 150
510 backing_store: mcp_ubuntu_1604_image
511 format: qcow2
512 - name: iso # Volume with name 'iso' will be used
513 # for store image with cloud-init metadata.
514 capacity: 1
515 format: raw
516 device: cdrom
517 bus: ide
518 cloudinit_meta_data: *cloudinit_meta_data
519 cloudinit_user_data: *cloudinit_user_data_1604
520
521 interfaces: *interfaces
522 network_config: *network_config
523
524 - name: {{ HOSTNAME_MTR02 }}
525 role: salt_minion
526 params:
527 vcpu: !os_env SLAVE_NODE_CPU, 2
528 memory: !os_env SLAVE_NODE_MEMORY, 4096
529 boot:
530 - hd
531 cloud_init_volume_name: iso
532 cloud_init_iface_up: ens3
533 volumes:
534 - name: system
535 capacity: !os_env NODE_VOLUME_SIZE, 150
536 backing_store: mcp_ubuntu_1604_image
537 format: qcow2
538 - name: iso # Volume with name 'iso' will be used
539 # for store image with cloud-init metadata.
540 capacity: 1
541 format: raw
542 device: cdrom
543 bus: ide
544 cloudinit_meta_data: *cloudinit_meta_data
545 cloudinit_user_data: *cloudinit_user_data_1604
546
547 interfaces: *interfaces
548 network_config: *network_config
549
550 - name: {{ HOSTNAME_MTR03 }}
551 role: salt_minion
552 params:
553 vcpu: !os_env SLAVE_NODE_CPU, 2
554 memory: !os_env SLAVE_NODE_MEMORY, 4096
555 boot:
556 - hd
557 cloud_init_volume_name: iso
558 cloud_init_iface_up: ens3
559 volumes:
560 - name: system
561 capacity: !os_env NODE_VOLUME_SIZE, 150
562 backing_store: mcp_ubuntu_1604_image
563 format: qcow2
564 - name: iso # Volume with name 'iso' will be used
565 # for store image with cloud-init metadata.
566 capacity: 1
567 format: raw
568 device: cdrom
569 bus: ide
570 cloudinit_meta_data: *cloudinit_meta_data
571 cloudinit_user_data: *cloudinit_user_data_1604
572
573 interfaces: *interfaces
574 network_config: *network_config
575
576 - name: {{ HOSTNAME_PRX01 }}
577 role: salt_minion
578 params:
579 vcpu: !os_env SLAVE_NODE_CPU, 1
580 memory: !os_env SLAVE_NODE_MEMORY, 2048
581 boot:
582 - hd
583 cloud_init_volume_name: iso
584 cloud_init_iface_up: ens3
585 volumes:
586 - name: system
587 capacity: !os_env NODE_VOLUME_SIZE, 150
588 backing_store: mcp_ubuntu_1604_image
589 format: qcow2
590 - name: cinder
591 capacity: 50
592 format: qcow2
593 - name: iso # Volume with name 'iso' will be used
594 # for store image with cloud-init metadata.
595 capacity: 1
596 format: raw
597 device: cdrom
598 bus: ide
599 cloudinit_meta_data: *cloudinit_meta_data
600 cloudinit_user_data: *cloudinit_user_data_1604
601
602 interfaces: *interfaces
603 network_config: *network_config
604
605
606 - name: {{ HOSTNAME_CMP01 }}
607 role: salt_minion
608 params:
609 vcpu: !os_env SLAVE_NODE_CPU, 3
610 memory: !os_env SLAVE_NODE_MEMORY, 4096
611 boot:
612 - hd
613 cloud_init_volume_name: iso
614 cloud_init_iface_up: ens3
615 volumes:
616 - name: system
617 capacity: !os_env NODE_VOLUME_SIZE, 150
618 backing_store: cloudimage1604
619 format: qcow2
620 - name: iso # Volume with name 'iso' will be used
621 # for store image with cloud-init metadata.
622 capacity: 1
623 format: raw
624 device: cdrom
625 bus: ide
626 cloudinit_meta_data: *cloudinit_meta_data
627 cloudinit_user_data: *cloudinit_user_data_1604
628
629
630 interfaces: &all_interfaces
631 - label: ens3
632 l2_network_device: admin
633 interface_model: *interface_model
634 - label: ens4
635 l2_network_device: private
636 interface_model: *interface_model
637 - label: ens5
638 l2_network_device: tenant
639 interface_model: *interface_model
640 - label: ens6
641 l2_network_device: external
642 interface_model: *interface_model
643 network_config: &all_network_config
644 ens3:
645 networks:
646 - admin
647 ens4:
648 networks:
649 - private
650 ens5:
651 networks:
652 - tenant
653 ens6:
654 networks:
655 - external
656
657 - name: {{ HOSTNAME_CMP02 }}
658 role: salt_minion
659 params:
660 vcpu: !os_env SLAVE_NODE_CPU, 3
661 memory: !os_env SLAVE_NODE_MEMORY, 4096
662 boot:
663 - hd
664 cloud_init_volume_name: iso
665 cloud_init_iface_up: ens3
666 volumes:
667 - name: system
668 capacity: !os_env NODE_VOLUME_SIZE, 150
669 backing_store: cloudimage1604
670 format: qcow2
671 - name: iso # Volume with name 'iso' will be used
672 # for store image with cloud-init metadata.
673 capacity: 1
674 format: raw
675 device: cdrom
676 bus: ide
677 cloudinit_meta_data: *cloudinit_meta_data
678 cloudinit_user_data: *cloudinit_user_data_1604
679
680 interfaces: *all_interfaces
681 network_config: *all_network_config
682
683 - name: {{ HOSTNAME_GTW01 }}
684 role: salt_minion
685 params:
686 vcpu: !os_env SLAVE_NODE_CPU, 4
687 memory: !os_env SLAVE_NODE_MEMORY, 4096
688 boot:
689 - hd
690 cloud_init_volume_name: iso
691 cloud_init_iface_up: ens3
692 volumes:
693 - name: system
694 capacity: !os_env NODE_VOLUME_SIZE, 150
695 backing_store: cloudimage1604
696 format: qcow2
697 - name: iso # Volume with name 'iso' will be used
698 # for store image with cloud-init metadata.
699 capacity: 1
700 format: raw
701 device: cdrom
702 bus: ide
703 cloudinit_meta_data: *cloudinit_meta_data
704 cloudinit_user_data: *cloudinit_user_data_1604
705
706 interfaces: *all_interfaces
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300707 network_config: *all_network_config
708
709 - name: {{ HOSTNAME_SHARE01 }}
710 role: salt_minion
711 params:
712 vcpu: !os_env SLAVE_NODE_CPU, 2
713 memory: !os_env SLAVE_NODE_MEMORY, 4096
714 boot:
715 - hd
716 cloud_init_volume_name: iso
717 cloud_init_iface_up: ens3
718 volumes:
719 - name: system
720 capacity: !os_env NODE_VOLUME_SIZE, 150
721 backing_store: mcp_ubuntu_1604_image
722 format: qcow2
723 - name: iso # Volume with name 'iso' will be used
724 # for store image with cloud-init metadata.
725 capacity: 1
726 format: raw
727 device: cdrom
728 bus: ide
729 cloudinit_meta_data: *cloudinit_meta_data
730 cloudinit_user_data: *cloudinit_user_data_1604
731
732 interfaces: *all_interfaces
733 network_config: *all_network_config