blob: a14074338278c6529af800cb0a13c69339b09fd3 [file] [log] [blame]
Oleksii Butenkoba680de2018-08-23 14:15:19 +03001{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
2
3{% import 'cookied-mcp-pike-dvr-ceph/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
4{% import 'cookied-mcp-pike-dvr-ceph/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
5{% import 'cookied-mcp-pike-dvr-ceph/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
6
7---
8aliases:
9 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
10 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
11 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
12 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
13
14{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-pike-dvr-ceph') %}
Oleksii Butenko236db652018-10-10 14:45:31 +030015{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030016{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030020{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030022{% set HOSTNAME_CMN01 = os_env('HOSTNAME_CMN01', 'cmn01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CMN02 = os_env('HOSTNAME_CMN02', 'cmn02.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMN03 = os_env('HOSTNAME_CMN03', 'cmn03.' + DOMAIN_NAME) %}
25{% set HOSTNAME_RGW01 = os_env('HOSTNAME_CMN01', 'rgw01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_RGW02 = os_env('HOSTNAME_CMN02', 'rgw02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_RGW03 = os_env('HOSTNAME_CMN03', 'rgw03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030028{% set HOSTNAME_OSD01 = os_env('HOSTNAME_OSD01', 'osd1.' + DOMAIN_NAME) %}
29{% set HOSTNAME_OSD02 = os_env('HOSTNAME_OSD02', 'osd2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030030{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
31{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
32
33template:
34 devops_settings:
35 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ceph_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
36
37 address_pools:
38 private-pool01:
39 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
40 params:
41 ip_reserved:
42 gateway: +1
43 l2_network_device: +1
44 default_{{ HOSTNAME_CFG01 }}: +15
45 default_{{ HOSTNAME_CTL01 }}: +11
46 default_{{ HOSTNAME_CTL02 }}: +12
47 default_{{ HOSTNAME_CTL03 }}: +13
48 default_{{ HOSTNAME_CMP01 }}: +105
49 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +030050 default_{{ HOSTNAME_OSD01 }}: +94
51 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +030052 default_{{ HOSTNAME_CMN01 }}: +96
53 default_{{ HOSTNAME_CMN02 }}: +97
54 default_{{ HOSTNAME_CMN03 }}: +98
55 default_{{ HOSTNAME_RGW01 }}: +76
56 default_{{ HOSTNAME_RGW02 }}: +77
57 default_{{ HOSTNAME_RGW03 }}: +78
58 default_{{ HOSTNAME_GTW01 }}: +110
59 default_{{ HOSTNAME_PRX01 }}: +121
60 ip_ranges:
61 dhcp: [+70, -10]
62
63 admin-pool01:
64 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
65 params:
66 ip_reserved:
67 gateway: +1
68 l2_network_device: +1
69 default_{{ HOSTNAME_CFG01 }}: +15
70 default_{{ HOSTNAME_CTL01 }}: +11
71 default_{{ HOSTNAME_CTL02 }}: +12
72 default_{{ HOSTNAME_CTL03 }}: +13
73 default_{{ HOSTNAME_CMP01 }}: +105
74 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +030075 default_{{ HOSTNAME_OSD01 }}: +94
76 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +030077 default_{{ HOSTNAME_CMN01 }}: +96
78 default_{{ HOSTNAME_CMN02 }}: +97
79 default_{{ HOSTNAME_CMN03 }}: +98
80 default_{{ HOSTNAME_RGW01 }}: +76
81 default_{{ HOSTNAME_RGW02 }}: +77
82 default_{{ HOSTNAME_RGW03 }}: +78
83 default_{{ HOSTNAME_GTW01 }}: +110
84 default_{{ HOSTNAME_PRX01 }}: +121
85 ip_ranges:
86 dhcp: [+70, -10]
87
88 tenant-pool01:
89 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
90 params:
91 ip_reserved:
92 gateway: +1
93 l2_network_device: +1
94 default_{{ HOSTNAME_CFG01 }}: +15
95 default_{{ HOSTNAME_CTL01 }}: +11
96 default_{{ HOSTNAME_CTL02 }}: +12
97 default_{{ HOSTNAME_CTL03 }}: +13
98 default_{{ HOSTNAME_CMP01 }}: +105
99 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300100 default_{{ HOSTNAME_OSD01 }}: +94
101 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300102 default_{{ HOSTNAME_CMN01 }}: +96
103 default_{{ HOSTNAME_CMN02 }}: +97
104 default_{{ HOSTNAME_CMN03 }}: +98
105 default_{{ HOSTNAME_RGW01 }}: +76
106 default_{{ HOSTNAME_RGW02 }}: +77
107 default_{{ HOSTNAME_RGW03 }}: +78
108 default_{{ HOSTNAME_GTW01 }}: +110
109 default_{{ HOSTNAME_PRX01 }}: +121
110 ip_ranges:
111 dhcp: [+10, -10]
112
113 external-pool01:
114 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
115 params:
116 ip_reserved:
117 gateway: +1
118 l2_network_device: +1
119 default_{{ HOSTNAME_CFG01 }}: +15
120 default_{{ HOSTNAME_CTL01 }}: +11
121 default_{{ HOSTNAME_CTL02 }}: +12
122 default_{{ HOSTNAME_CTL03 }}: +13
123 default_{{ HOSTNAME_CMP01 }}: +105
124 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300125 default_{{ HOSTNAME_OSD01 }}: +94
126 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300127 default_{{ HOSTNAME_CMN01 }}: +96
128 default_{{ HOSTNAME_CMN02 }}: +97
129 default_{{ HOSTNAME_CMN03 }}: +98
130 default_{{ HOSTNAME_RGW01 }}: +76
131 default_{{ HOSTNAME_RGW02 }}: +77
132 default_{{ HOSTNAME_RGW03 }}: +78
133 default_{{ HOSTNAME_GTW01 }}: +110
134 default_{{ HOSTNAME_PRX01 }}: +121
135 ip_ranges:
Oleksii Butenko7c2c55b2018-09-20 15:22:13 +0300136 dhcp: [+130, +230]
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300137
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300138 groups:
139 - name: default
140 driver:
141 name: devops.driver.libvirt
142 params:
143 connection_string: !os_env CONNECTION_STRING, qemu:///system
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300144 stp: False
145 hpet: False
146 enable_acpi: true
147 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
148 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
149
150 network_pools:
151 admin: admin-pool01
152 private: private-pool01
153 tenant: tenant-pool01
154 external: external-pool01
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300155
156 l2_network_devices:
157 private:
158 address_pool: private-pool01
159 dhcp: false
160 forward:
161 mode: route
162
163 admin:
164 address_pool: admin-pool01
165 dhcp: true
166 forward:
167 mode: nat
168
169 tenant:
170 address_pool: tenant-pool01
171 dhcp: false
172
173 external:
174 address_pool: external-pool01
175 dhcp: true
176 forward:
177 mode: route
178
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300179 group_volumes:
180 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
181 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
182 format: qcow2
183 - name: cfg01_day01_image # Pre-configured day01 image
184 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
185 format: qcow2
186 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
187 source_image: !os_env MCP_IMAGE_PATH1604
188 format: qcow2
189
190 nodes:
191 - name: {{ HOSTNAME_CFG01 }}
192 role: salt_master
193 params:
194 vcpu: !os_env SLAVE_NODE_CPU, 2
195 memory: !os_env SLAVE_NODE_MEMORY, 8192
196 boot:
197 - hd
198 cloud_init_volume_name: iso
199 cloud_init_iface_up: ens3
200 volumes:
201 - name: system
202 capacity: !os_env NODE_VOLUME_SIZE, 150
203 backing_store: cfg01_day01_image
204 format: qcow2
205 - name: iso # Volume with name 'iso' will be used
206 # for store image with cloud-init metadata.
207 capacity: 1
208 format: raw
209 device: cdrom
210 bus: ide
211 cloudinit_meta_data: *cloudinit_meta_data
212 cloudinit_user_data: *cloudinit_user_data_cfg01
213
214 interfaces:
215 - label: ens3
216 l2_network_device: admin
217 interface_model: *interface_model
218 - label: ens4
219 l2_network_device: private
220 interface_model: *interface_model
221 network_config:
222 ens3:
223 networks:
224 - admin
225 ens4:
226 networks:
227 - private
228
229 - name: {{ HOSTNAME_CTL01 }}
230 role: salt_minion
231 params:
232 vcpu: !os_env SLAVE_NODE_CPU, 2
233 memory: !os_env SLAVE_NODE_MEMORY, 16384
234 boot:
235 - hd
236 cloud_init_volume_name: iso
237 cloud_init_iface_up: ens3
238 volumes:
239 - name: system
240 capacity: !os_env NODE_VOLUME_SIZE, 150
241 backing_store: mcp_ubuntu_1604_image
242 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300243 - name: iso # Volume with name 'iso' will be used
244 # for store image with cloud-init metadata.
245 capacity: 1
246 format: raw
247 device: cdrom
248 bus: ide
249 cloudinit_meta_data: *cloudinit_meta_data
250 cloudinit_user_data: *cloudinit_user_data_1604
251
252 interfaces: &interfaces
253 - label: ens3
254 l2_network_device: admin
255 interface_model: *interface_model
256 - label: ens4
257 l2_network_device: private
258 interface_model: *interface_model
259 network_config: &network_config
260 ens3:
261 networks:
262 - admin
263 ens4:
264 networks:
265 - private
266
267 - name: {{ HOSTNAME_CTL02 }}
268 role: salt_minion
269 params:
270 vcpu: !os_env SLAVE_NODE_CPU, 2
271 memory: !os_env SLAVE_NODE_MEMORY, 16384
272 boot:
273 - hd
274 cloud_init_volume_name: iso
275 cloud_init_iface_up: ens3
276 volumes:
277 - name: system
278 capacity: !os_env NODE_VOLUME_SIZE, 150
279 backing_store: mcp_ubuntu_1604_image
280 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300281 - name: iso # Volume with name 'iso' will be used
282 # for store image with cloud-init metadata.
283 capacity: 1
284 format: raw
285 device: cdrom
286 bus: ide
287 cloudinit_meta_data: *cloudinit_meta_data
288 cloudinit_user_data: *cloudinit_user_data_1604
289
290 interfaces: *interfaces
291 network_config: *network_config
292
293 - name: {{ HOSTNAME_CTL03 }}
294 role: salt_minion
295 params:
296 vcpu: !os_env SLAVE_NODE_CPU, 2
297 memory: !os_env SLAVE_NODE_MEMORY, 16384
298 boot:
299 - hd
300 cloud_init_volume_name: iso
301 cloud_init_iface_up: ens3
302 volumes:
303 - name: system
304 capacity: !os_env NODE_VOLUME_SIZE, 150
305 backing_store: mcp_ubuntu_1604_image
306 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300307 - name: iso # Volume with name 'iso' will be used
308 # for store image with cloud-init metadata.
309 capacity: 1
310 format: raw
311 device: cdrom
312 bus: ide
313 cloudinit_meta_data: *cloudinit_meta_data
314 cloudinit_user_data: *cloudinit_user_data_1604
315
316 interfaces: *interfaces
317 network_config: *network_config
318
319 - name: {{ HOSTNAME_CMN01 }}
320 role: salt_minion
321 params:
322 vcpu: !os_env SLAVE_NODE_CPU, 2
323 memory: !os_env SLAVE_NODE_MEMORY, 2048
324 boot:
325 - hd
326 cloud_init_volume_name: iso
327 cloud_init_iface_up: ens3
328 volumes:
329 - name: system
330 capacity: !os_env NODE_VOLUME_SIZE, 150
331 backing_store: cloudimage1604
332 format: qcow2
333 - name: iso # Volume with name 'iso' will be used
334 # for store image with cloud-init metadata.
335 capacity: 1
336 format: raw
337 device: cdrom
338 bus: ide
339 cloudinit_meta_data: *cloudinit_meta_data
340 cloudinit_user_data: *cloudinit_user_data_1604
341
342 interfaces: *interfaces
343 network_config: *network_config
344
345 - name: {{ HOSTNAME_CMN02 }}
346 role: salt_minion
347 params:
348 vcpu: !os_env SLAVE_NODE_CPU, 2
349 memory: !os_env SLAVE_NODE_MEMORY, 2048
350 boot:
351 - hd
352 cloud_init_volume_name: iso
353 cloud_init_iface_up: ens3
354 volumes:
355 - name: system
356 capacity: !os_env NODE_VOLUME_SIZE, 150
357 backing_store: cloudimage1604
358 format: qcow2
359 - name: iso # Volume with name 'iso' will be used
360 # for store image with cloud-init metadata.
361 capacity: 1
362 format: raw
363 device: cdrom
364 bus: ide
365 cloudinit_meta_data: *cloudinit_meta_data
366 cloudinit_user_data: *cloudinit_user_data_1604
367
368 interfaces: *interfaces
369 network_config: *network_config
370
371 - name: {{ HOSTNAME_CMN03 }}
372 role: salt_minion
373 params:
374 vcpu: !os_env SLAVE_NODE_CPU, 2
375 memory: !os_env SLAVE_NODE_MEMORY, 2048
376 boot:
377 - hd
378 cloud_init_volume_name: iso
379 cloud_init_iface_up: ens3
380 volumes:
381 - name: system
382 capacity: !os_env NODE_VOLUME_SIZE, 150
383 backing_store: cloudimage1604
384 format: qcow2
385 - name: iso # Volume with name 'iso' will be used
386 # for store image with cloud-init metadata.
387 capacity: 1
388 format: raw
389 device: cdrom
390 bus: ide
391 cloudinit_meta_data: *cloudinit_meta_data
392 cloudinit_user_data: *cloudinit_user_data_1604
393
394 interfaces: *interfaces
395 network_config: *network_config
396
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300397 - name: {{ HOSTNAME_OSD01 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300398 role: salt_minion
399 params:
400 vcpu: !os_env SLAVE_NODE_CPU, 2
401 memory: !os_env SLAVE_NODE_MEMORY, 2048
402 boot:
403 - hd
404 cloud_init_volume_name: iso
405 cloud_init_iface_up: ens3
406 volumes:
407 - name: system
408 capacity: !os_env NODE_VOLUME_SIZE, 150
409 backing_store: cloudimage1604
410 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300411 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300412 capacity: 50
413 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300414 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300415 capacity: 50
416 format: qcow2
417 - name: iso # Volume with name 'iso' will be used
418 # for store image with cloud-init metadata.
419 capacity: 1
420 format: raw
421 device: cdrom
422 bus: ide
423 cloudinit_meta_data: *cloudinit_meta_data
424 cloudinit_user_data: *cloudinit_user_data_1604
425
426 interfaces: *interfaces
427 network_config: *network_config
428
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300429 - name: {{ HOSTNAME_OSD02 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300430 role: salt_minion
431 params:
432 vcpu: !os_env SLAVE_NODE_CPU, 2
433 memory: !os_env SLAVE_NODE_MEMORY, 2048
434 boot:
435 - hd
436 cloud_init_volume_name: iso
437 cloud_init_iface_up: ens3
438 volumes:
439 - name: system
440 capacity: !os_env NODE_VOLUME_SIZE, 150
441 backing_store: cloudimage1604
442 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300443 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300444 capacity: 50
445 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300446 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300447 capacity: 50
448 format: qcow2
449 - name: iso # Volume with name 'iso' will be used
450 # for store image with cloud-init metadata.
451 capacity: 1
452 format: raw
453 device: cdrom
454 bus: ide
455 cloudinit_meta_data: *cloudinit_meta_data
456 cloudinit_user_data: *cloudinit_user_data_1604
457
458 interfaces: *interfaces
459 network_config: *network_config
460
461 - name: {{ HOSTNAME_RGW01 }}
462 role: salt_minion
463 params:
464 vcpu: !os_env SLAVE_NODE_CPU, 2
465 memory: !os_env SLAVE_NODE_MEMORY, 2048
466 boot:
467 - hd
468 cloud_init_volume_name: iso
469 cloud_init_iface_up: ens3
470 volumes:
471 - name: system
472 capacity: !os_env NODE_VOLUME_SIZE, 150
473 backing_store: cloudimage1604
474 format: qcow2
475 - name: iso # Volume with name 'iso' will be used
476 # for store image with cloud-init metadata.
477 capacity: 1
478 format: raw
479 device: cdrom
480 bus: ide
481 cloudinit_meta_data: *cloudinit_meta_data
482 cloudinit_user_data: *cloudinit_user_data_1604
483
484 interfaces: *interfaces
485 network_config: *network_config
486
487 - name: {{ HOSTNAME_RGW02 }}
488 role: salt_minion
489 params:
490 vcpu: !os_env SLAVE_NODE_CPU, 2
491 memory: !os_env SLAVE_NODE_MEMORY, 2048
492 boot:
493 - hd
494 cloud_init_volume_name: iso
495 cloud_init_iface_up: ens3
496 volumes:
497 - name: system
498 capacity: !os_env NODE_VOLUME_SIZE, 150
499 backing_store: cloudimage1604
500 format: qcow2
501 - name: iso # Volume with name 'iso' will be used
502 # for store image with cloud-init metadata.
503 capacity: 1
504 format: raw
505 device: cdrom
506 bus: ide
507 cloudinit_meta_data: *cloudinit_meta_data
508 cloudinit_user_data: *cloudinit_user_data_1604
509
510 interfaces: *interfaces
511 network_config: *network_config
512 - name: {{ HOSTNAME_RGW03 }}
513 role: salt_minion
514 params:
515 vcpu: !os_env SLAVE_NODE_CPU, 2
516 memory: !os_env SLAVE_NODE_MEMORY, 2048
517 boot:
518 - hd
519 cloud_init_volume_name: iso
520 cloud_init_iface_up: ens3
521 volumes:
522 - name: system
523 capacity: !os_env NODE_VOLUME_SIZE, 150
524 backing_store: cloudimage1604
525 format: qcow2
526 - name: iso # Volume with name 'iso' will be used
527 # for store image with cloud-init metadata.
528 capacity: 1
529 format: raw
530 device: cdrom
531 bus: ide
532 cloudinit_meta_data: *cloudinit_meta_data
533 cloudinit_user_data: *cloudinit_user_data_1604
534
535 interfaces: *interfaces
536 network_config: *network_config
537
538 - name: {{ HOSTNAME_PRX01 }}
539 role: salt_minion
540 params:
541 vcpu: !os_env SLAVE_NODE_CPU, 1
542 memory: !os_env SLAVE_NODE_MEMORY, 2048
543 boot:
544 - hd
545 cloud_init_volume_name: iso
546 cloud_init_iface_up: ens3
547 volumes:
548 - name: system
549 capacity: !os_env NODE_VOLUME_SIZE, 150
550 backing_store: mcp_ubuntu_1604_image
551 format: qcow2
552 - name: iso # Volume with name 'iso' will be used
553 # for store image with cloud-init metadata.
554 capacity: 1
555 format: raw
556 device: cdrom
557 bus: ide
558 cloudinit_meta_data: *cloudinit_meta_data
559 cloudinit_user_data: *cloudinit_user_data_1604
560
561 interfaces: *interfaces
562 network_config: *network_config
563
564 - name: {{ HOSTNAME_CMP01 }}
565 role: salt_minion
566 params:
567 vcpu: !os_env SLAVE_NODE_CPU, 3
568 memory: !os_env SLAVE_NODE_MEMORY, 4096
569 boot:
570 - hd
571 cloud_init_volume_name: iso
572 cloud_init_iface_up: ens3
573 volumes:
574 - name: system
575 capacity: !os_env NODE_VOLUME_SIZE, 150
576 backing_store: cloudimage1604
577 format: qcow2
578 - name: iso # Volume with name 'iso' will be used
579 # for store image with cloud-init metadata.
580 capacity: 1
581 format: raw
582 device: cdrom
583 bus: ide
584 cloudinit_meta_data: *cloudinit_meta_data
585 cloudinit_user_data: *cloudinit_user_data_1604
586
587
588 interfaces: &all_interfaces
589 - label: ens3
590 l2_network_device: admin
591 interface_model: *interface_model
592 - label: ens4
593 l2_network_device: private
594 interface_model: *interface_model
595 - label: ens5
596 l2_network_device: tenant
597 interface_model: *interface_model
598 - label: ens6
599 l2_network_device: external
600 interface_model: *interface_model
601 network_config: &all_network_config
602 ens3:
603 networks:
604 - admin
605 ens4:
606 networks:
607 - private
608 ens5:
609 networks:
610 - tenant
611 ens6:
612 networks:
613 - external
614
615 - name: {{ HOSTNAME_CMP02 }}
616 role: salt_minion
617 params:
618 vcpu: !os_env SLAVE_NODE_CPU, 3
619 memory: !os_env SLAVE_NODE_MEMORY, 4096
620 boot:
621 - hd
622 cloud_init_volume_name: iso
623 cloud_init_iface_up: ens3
624 volumes:
625 - name: system
626 capacity: !os_env NODE_VOLUME_SIZE, 150
627 backing_store: cloudimage1604
628 format: qcow2
629 - name: iso # Volume with name 'iso' will be used
630 # for store image with cloud-init metadata.
631 capacity: 1
632 format: raw
633 device: cdrom
634 bus: ide
635 cloudinit_meta_data: *cloudinit_meta_data
636 cloudinit_user_data: *cloudinit_user_data_1604
637
638 interfaces: *all_interfaces
639 network_config: *all_network_config
640
641 - name: {{ HOSTNAME_GTW01 }}
642 role: salt_minion
643 params:
644 vcpu: !os_env SLAVE_NODE_CPU, 4
645 memory: !os_env SLAVE_NODE_MEMORY, 4096
646 boot:
647 - hd
648 cloud_init_volume_name: iso
649 cloud_init_iface_up: ens3
650 volumes:
651 - name: system
652 capacity: !os_env NODE_VOLUME_SIZE, 150
653 backing_store: cloudimage1604
654 format: qcow2
655 - name: iso # Volume with name 'iso' will be used
656 # for store image with cloud-init metadata.
657 capacity: 1
658 format: raw
659 device: cdrom
660 bus: ide
661 cloudinit_meta_data: *cloudinit_meta_data
662 cloudinit_user_data: *cloudinit_user_data_1604
663
664 interfaces: *all_interfaces
665 network_config: *all_network_config