blob: ab4dbe56431c36bc3bf6d2b41f735f69ec120b13 [file] [log] [blame]
Tatyana Leontovichd34f4102018-04-03 17:49:24 +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 'virtual-offline-pike-ovs-dpdk/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-offline-pike-ovs-dpdk/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-offline-pike-ovs-dpdk/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7{% import 'virtual-offline-pike-ovs-dpdk/underlay--user-data-apt01.yaml' as CLOUDINIT_USER_DATA_APT01 with context %}
8
9
10---
11aliases:
12 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
13 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
14 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
15 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
16 - &cloudinit_user_data_apt01 {{ CLOUDINIT_USER_DATA_APT01 }}
17
18{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-offline-pike-ovs-dpdk') %}
19{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
20{% set HOSTNAME_APT01 = os_env('HOSTNAME_APT01', 'apt01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + 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', 'cmp01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030029{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MDB01 = os_env('HOSTNAME_MDB01', 'mdb01.' + DOMAIN_NAME) %}
32{% set HOSTNAME_MDB02 = os_env('HOSTNAME_MDB02', 'mdb02.' + DOMAIN_NAME) %}
33{% set HOSTNAME_MDB03 = os_env('HOSTNAME_MDB03', 'mdb03.' + DOMAIN_NAME) %}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030034{% set HOSTNAME_VS = 'vs.' + DOMAIN_NAME %}
35
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', 'virtual-offline-pike-ovs-dpdk_' + 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 l2_network_device: +1
46 default_{{ HOSTNAME_APT01 }}: +122
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_GTW01 }}: +110
54 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030055 default_{{ HOSTNAME_MDB01 }}: +45
56 default_{{ HOSTNAME_MDB02 }}: +46
57 default_{{ HOSTNAME_MDB03 }}: +47
58 default_{{ HOSTNAME_DNS01 }}: +111
59 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030060 default_{{ HOSTNAME_VS }}: +178
61 ip_ranges:
62 dhcp: [+90, -10]
63
64 admin-pool01:
65 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
66 params:
67 ip_reserved:
68 gateway: +122
69 l2_network_device: +1
70 default_{{ HOSTNAME_APT01 }}: +122
71 default_{{ HOSTNAME_CFG01 }}: +90
72 default_{{ HOSTNAME_CTL01 }}: +101
73 default_{{ HOSTNAME_CTL02 }}: +102
74 default_{{ HOSTNAME_CTL03 }}: +103
75 default_{{ HOSTNAME_CMP01 }}: +105
76 default_{{ HOSTNAME_CMP02 }}: +106
77 default_{{ HOSTNAME_GTW01 }}: +110
78 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030079 default_{{ HOSTNAME_MDB01 }}: +45
80 default_{{ HOSTNAME_MDB02 }}: +46
81 default_{{ HOSTNAME_MDB03 }}: +47
82 default_{{ HOSTNAME_DNS01 }}: +111
83 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030084 default_{{ HOSTNAME_VS }}: +178
85 ip_ranges:
86 dhcp: [+90, -10]
87
88 tenant-pool01:
89 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
90 params:
91 ip_reserved:
92 l2_network_device: +1
93 default_{{ HOSTNAME_APT01 }}: +122
94 default_{{ HOSTNAME_CFG01 }}: +100
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
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300100 default_{{ HOSTNAME_MDB01 }}: +45
101 default_{{ HOSTNAME_MDB02 }}: +46
102 default_{{ HOSTNAME_MDB03 }}: +47
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300103 default_{{ HOSTNAME_GTW01 }}: +110
104 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300105 default_{{ HOSTNAME_DNS01 }}: +111
106 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300107 ip_ranges:
108 dhcp: [+10, -10]
109 external-pool01:
110 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
111 params:
112 ip_reserved:
113 l2_network_device: +1
114 default_{{ HOSTNAME_APT01 }}: +122
115 default_{{ HOSTNAME_CFG01 }}: +100
116 default_{{ HOSTNAME_CTL01 }}: +101
117 default_{{ HOSTNAME_CTL02 }}: +102
118 default_{{ HOSTNAME_CTL03 }}: +103
119 default_{{ HOSTNAME_CMP01 }}: +105
120 default_{{ HOSTNAME_CMP02 }}: +106
121 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300122 default_{{ HOSTNAME_MDB01 }}: +45
123 default_{{ HOSTNAME_MDB02 }}: +46
124 default_{{ HOSTNAME_MDB03 }}: +47
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300125 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300126 default_{{ HOSTNAME_DNS01 }}: +111
127 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300128 ip_ranges:
129 dhcp: [+90, -10]
130
131 groups:
132 - name: default
133 driver:
134 name: devops.driver.libvirt
135 params:
136 connection_string: !os_env CONNECTION_STRING, qemu:///system
137 storage_pool_name: !os_env STORAGE_POOL_NAME, default
138 stp: False
139 hpet: False
140 enable_acpi: true
141 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
142 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
143
144 network_pools:
145 admin: admin-pool01
146 private: private-pool01
147 tenant: tenant-pool01
148 external: external-pool01
149
150 l2_network_devices:
151 private:
152 address_pool: private-pool01
153 dhcp: false
154 forward:
155 mode: route
156
157 admin:
158 address_pool: admin-pool01
159 dhcp: true
160 forward:
161 mode: nat
162
163 tenant:
164 address_pool: tenant-pool01
165 dhcp: false
166
167 external:
168 address_pool: external-pool01
169 dhcp: true
170 forward:
Dennis Dmitrievb0ce3682018-05-01 16:48:11 +0300171 mode: route
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300172
173 group_volumes:
174 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
175 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
176 format: qcow2
177 - name: cfg01_day01_image # Pre-configured day01 image
178 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
179 format: qcow2
180 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
181 source_image: !os_env MCP_IMAGE_PATH1604
182 format: qcow2
183 - name: apt_cloudimage1604 # This name is used for 'backing_store' option for node volumes.
184 source_image: !os_env APT_IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
185 format: qcow2
186
187 nodes:
188 - name: {{ HOSTNAME_APT01 }}
189 role: salt_minion
190 params:
191 vcpu: !os_env SLAVE_NODE_CPU, 2
192 memory: !os_env SLAVE_NODE_MEMORY, 4096
193 boot:
194 - hd
195 cloud_init_volume_name: iso
196 cloud_init_iface_up: ens3
197 volumes:
198 - name: system
199 capacity: !os_env NODE_VOLUME_SIZE, 150
200 backing_store: apt_cloudimage1604
201 format: qcow2
202 - name: iso # Volume with name 'iso' will be used
203 # for store image with cloud-init metadata.
204 capacity: 1
205 format: raw
206 device: cdrom
207 bus: ide
208 cloudinit_meta_data: *cloudinit_meta_data
209 cloudinit_user_data: *cloudinit_user_data_apt01
210
211 interfaces:
212 - label: ens3
213 l2_network_device: admin
214 interface_model: *interface_model
215 - label: ens4
216 l2_network_device: private
217 interface_model: *interface_model
218 - label: ens5
219 l2_network_device: tenant
220 interface_model: *interface_model
221 - label: ens6
222 l2_network_device: external
223 interface_model: *interface_model
224 network_config:
225 ens3:
226 networks:
227 - admin
228 ens4:
229 networks:
230 - private
231 ens5:
232 networks:
233 - tenant
234 ens6:
235 networks:
236 - external
237
238 - name: {{ HOSTNAME_CFG01 }}
239 role: salt_master
240 params:
241 vcpu: !os_env SLAVE_NODE_CPU, 2
242 memory: !os_env SLAVE_NODE_MEMORY, 8192
243 boot:
244 - hd
245 cloud_init_volume_name: iso
246 cloud_init_iface_up: ens3
247 volumes:
248 - name: system
249 capacity: !os_env NODE_VOLUME_SIZE, 150
250 backing_store: cfg01_day01_image
251 format: qcow2
252 - name: iso # Volume with name 'iso' will be used
253 # for store image with cloud-init metadata.
254 capacity: 1
255 format: raw
256 device: cdrom
257 bus: ide
258 cloudinit_meta_data: *cloudinit_meta_data
259 cloudinit_user_data: *cloudinit_user_data_cfg01
260
261 interfaces:
262 - label: ens3
263 l2_network_device: admin
264 interface_model: *interface_model
265 - label: ens4
266 l2_network_device: private
267 interface_model: *interface_model
268 network_config:
269 ens3:
270 networks:
271 - admin
272 ens4:
273 networks:
274 - private
275
276 - name: {{ HOSTNAME_CTL01 }}
277 role: salt_minion
278 params:
279 vcpu: !os_env SLAVE_NODE_CPU, 3
280 memory: !os_env SLAVE_NODE_MEMORY, 16384
281 boot:
282 - hd
283 cloud_init_volume_name: iso
284 cloud_init_iface_up: ens3
285 volumes:
286 - name: system
287 capacity: !os_env NODE_VOLUME_SIZE, 150
288 backing_store: mcp_ubuntu_1604_image
289 format: qcow2
290 - name: cinder
291 capacity: 50
292 format: qcow2
293 - name: iso # Volume with name 'iso' will be used
294 # for store image with cloud-init metadata.
295 capacity: 1
296 format: raw
297 device: cdrom
298 bus: ide
299 cloudinit_meta_data: *cloudinit_meta_data
300 cloudinit_user_data: *cloudinit_user_data_1604
301
302 interfaces: &interfaces
303 - label: ens3
304 l2_network_device: admin
305 interface_model: *interface_model
306 - label: ens4
307 l2_network_device: private
308 interface_model: *interface_model
309 network_config: &network_config
310 ens3:
311 networks:
312 - admin
313 ens4:
314 networks:
315 - private
316
317 - name: {{ HOSTNAME_CTL02 }}
318 role: salt_minion
319 params:
320 vcpu: !os_env SLAVE_NODE_CPU, 3
321 memory: !os_env SLAVE_NODE_MEMORY, 16384
322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
329 backing_store: mcp_ubuntu_1604_image
330 format: qcow2
331 - name: cinder
332 capacity: 50
333 format: qcow2
334 - name: iso # Volume with name 'iso' will be used
335 # for store image with cloud-init metadata.
336 capacity: 1
337 format: raw
338 device: cdrom
339 bus: ide
340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
342
343 interfaces: *interfaces
344 network_config: *network_config
345
346 - name: {{ HOSTNAME_CTL03 }}
347 role: salt_minion
348 params:
349 vcpu: !os_env SLAVE_NODE_CPU, 3
350 memory: !os_env SLAVE_NODE_MEMORY, 16384
351 boot:
352 - hd
353 cloud_init_volume_name: iso
354 cloud_init_iface_up: ens3
355 volumes:
356 - name: system
357 capacity: !os_env NODE_VOLUME_SIZE, 150
358 backing_store: mcp_ubuntu_1604_image
359 format: qcow2
360 - name: cinder
361 capacity: 50
362 format: qcow2
363 - name: iso # Volume with name 'iso' will be used
364 # for store image with cloud-init metadata.
365 capacity: 1
366 format: raw
367 device: cdrom
368 bus: ide
369 cloudinit_meta_data: *cloudinit_meta_data
370 cloudinit_user_data: *cloudinit_user_data_1604
371
372 interfaces: *interfaces
373 network_config: *network_config
374
375 - name: {{ HOSTNAME_PRX01 }}
376 role: salt_minion
377 params:
378 vcpu: !os_env SLAVE_NODE_CPU, 1
379 memory: !os_env SLAVE_NODE_MEMORY, 2048
380 boot:
381 - hd
382 cloud_init_volume_name: iso
383 cloud_init_iface_up: ens3
384 volumes:
385 - name: system
386 capacity: !os_env NODE_VOLUME_SIZE, 150
387 backing_store: mcp_ubuntu_1604_image
388 format: qcow2
389 - name: iso # Volume with name 'iso' will be used
390 # for store image with cloud-init metadata.
391 capacity: 1
392 format: raw
393 device: cdrom
394 bus: ide
395 cloudinit_meta_data: *cloudinit_meta_data
396 cloudinit_user_data: *cloudinit_user_data_1604
397
398 interfaces: *interfaces
399 network_config: *network_config
400
401 - name: {{ HOSTNAME_CMP01 }}
402 role: salt_minion
403 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300404 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300405 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300406 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300407 - cpus: 0,1,2,3,4,5
408 memory: 4096
409 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300410 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300411 boot:
412 - hd
413 cloud_init_volume_name: iso
414 cloud_init_iface_up: ens3
415 volumes:
416 - name: system
417 capacity: !os_env NODE_VOLUME_SIZE, 150
418 backing_store: cloudimage1604
419 format: qcow2
420 - name: iso # Volume with name 'iso' will be used
421 # for store image with cloud-init metadata.
422 capacity: 1
423 format: raw
424 device: cdrom
425 bus: ide
426 cloudinit_meta_data: *cloudinit_meta_data
427 cloudinit_user_data: *cloudinit_user_data_1604
428
429
430 interfaces: &all_interfaces
431 - label: ens3
432 l2_network_device: admin
433 interface_model: *interface_model
434 - label: ens4
435 l2_network_device: private
436 interface_model: *interface_model
437 - label: ens5
438 l2_network_device: tenant
439 interface_model: *interface_model
440 - label: ens6
441 l2_network_device: external
442 interface_model: *interface_model
443 network_config: &all_network_config
444 ens3:
445 networks:
446 - admin
447 ens4:
448 networks:
449 - private
450 ens5:
451 networks:
452 - tenant
453 ens6:
454 networks:
455 - external
456
457 - name: {{ HOSTNAME_CMP02 }}
458 role: salt_minion
459 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300460 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300461 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300462 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300463 - cpus: 0,1,2,3,4,5
464 memory: 4096
465 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300466 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300467 boot:
468 - hd
469 cloud_init_volume_name: iso
470 cloud_init_iface_up: ens3
471 volumes:
472 - name: system
473 capacity: !os_env NODE_VOLUME_SIZE, 150
474 backing_store: cloudimage1604
475 format: qcow2
476 - name: iso # Volume with name 'iso' will be used
477 # for store image with cloud-init metadata.
478 capacity: 1
479 format: raw
480 device: cdrom
481 bus: ide
482 cloudinit_meta_data: *cloudinit_meta_data
483 cloudinit_user_data: *cloudinit_user_data_1604
484
485 interfaces: *all_interfaces
486 network_config: *all_network_config
487
488 - name: {{ HOSTNAME_GTW01 }}
489 role: salt_minion
490 params:
491 vcpu: !os_env SLAVE_NODE_CPU, 8
492 memory: !os_env SLAVE_NODE_MEMORY, 8192
493 boot:
494 - hd
495 cloud_init_volume_name: iso
496 cloud_init_iface_up: ens3
497 volumes:
498 - name: system
499 capacity: !os_env NODE_VOLUME_SIZE, 150
500 backing_store: cloudimage1604
501 format: qcow2
502 - name: iso # Volume with name 'iso' will be used
503 # for store image with cloud-init metadata.
504 capacity: 1
505 format: raw
506 device: cdrom
507 bus: ide
508 cloudinit_meta_data: *cloudinit_meta_data
509 cloudinit_user_data: *cloudinit_user_data_1604
510
511 interfaces: *all_interfaces
512 network_config: *all_network_config
513
514 - name: {{ HOSTNAME_VS }}
515 role: vm
516 params:
517 vcpu: !os_env SLAVE_NODE_CPU, 2
518 memory: !os_env SLAVE_NODE_MEMORY, 2048
519 boot:
520 - hd
521 cloud_init_volume_name: iso
522 cloud_init_iface_up: ens3
523 volumes:
524 - name: system
525 capacity: !os_env NODE_VOLUME_SIZE, 150
526 backing_store: cloudimage1604
527 format: qcow2
528 - name: iso # Volume with name 'iso' will be used
529 # for store image with cloud-init metadata.
530 capacity: 1
531 format: raw
532 device: cdrom
533 bus: ide
534 cloudinit_meta_data: *cloudinit_meta_data
535 cloudinit_user_data: *cloudinit_user_data_1604
536
537 interfaces: *interfaces
538 network_config: *network_config
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300539
540 - name: {{ HOSTNAME_DNS01 }}
541 role: salt_minion
542 params:
543 vcpu: !os_env SLAVE_NODE_CPU, 1
544 memory: !os_env SLAVE_NODE_MEMORY, 2048
545 boot:
546 - hd
547 cloud_init_volume_name: iso
548 cloud_init_iface_up: ens3
549 volumes:
550 - name: system
551 capacity: !os_env NODE_VOLUME_SIZE, 150
552 backing_store: mcp_ubuntu_1604_image
553 format: qcow2
554 - name: iso # Volume with name 'iso' will be used
555 # for store image with cloud-init metadata.
556 capacity: 1
557 format: raw
558 device: cdrom
559 bus: ide
560 cloudinit_meta_data: *cloudinit_meta_data
561 cloudinit_user_data: *cloudinit_user_data_1604
562
563 interfaces: *all_interfaces
564 network_config: *all_network_config
565
566 - name: {{ HOSTNAME_DNS02 }}
567 role: salt_minion
568 params:
569 vcpu: !os_env SLAVE_NODE_CPU, 1
570 memory: !os_env SLAVE_NODE_MEMORY, 2048
571 boot:
572 - hd
573 cloud_init_volume_name: iso
574 cloud_init_iface_up: ens3
575 volumes:
576 - name: system
577 capacity: !os_env NODE_VOLUME_SIZE, 150
578 backing_store: mcp_ubuntu_1604_image
579 format: qcow2
580 - name: iso # Volume with name 'iso' will be used
581 # for store image with cloud-init metadata.
582 capacity: 1
583 format: raw
584 device: cdrom
585 bus: ide
586 cloudinit_meta_data: *cloudinit_meta_data
587 cloudinit_user_data: *cloudinit_user_data_1604
588
589 interfaces: *all_interfaces
590 network_config: *all_network_config
591
592 - name: {{ HOSTNAME_MDB01 }}
593 role: salt_minion
594 params:
595 vcpu: !os_env SLAVE_NODE_CPU, 2
596 memory: !os_env SLAVE_NODE_MEMORY, 2018
597 boot:
598 - hd
599 cloud_init_volume_name: iso
600 cloud_init_iface_up: ens3
601 volumes:
602 - name: system
603 capacity: !os_env NODE_VOLUME_SIZE, 150
604 backing_store: mcp_ubuntu_1604_image
605 format: qcow2
606 - name: iso # Volume with name 'iso' will be used
607 # for store image with cloud-init metadata.
608 capacity: 1
609 format: raw
610 device: cdrom
611 bus: ide
612 cloudinit_meta_data: *cloudinit_meta_data
613 cloudinit_user_data: *cloudinit_user_data_1604
614
615 interfaces: *interfaces
616 network_config: *network_config
617
618 - name: {{ HOSTNAME_MDB02 }}
619 role: salt_minion
620 params:
621 vcpu: !os_env SLAVE_NODE_CPU, 2
622 memory: !os_env SLAVE_NODE_MEMORY, 2048
623 boot:
624 - hd
625 cloud_init_volume_name: iso
626 cloud_init_iface_up: ens3
627 volumes:
628 - name: system
629 capacity: !os_env NODE_VOLUME_SIZE, 150
630 backing_store: mcp_ubuntu_1604_image
631 format: qcow2
632 - name: iso # Volume with name 'iso' will be used
633 # for store image with cloud-init metadata.
634 capacity: 1
635 format: raw
636 device: cdrom
637 bus: ide
638 cloudinit_meta_data: *cloudinit_meta_data
639 cloudinit_user_data: *cloudinit_user_data_1604
640
641 interfaces: *interfaces
642 network_config: *network_config
643
644 - name: {{ HOSTNAME_MDB03 }}
645 role: salt_minion
646 params:
647 vcpu: !os_env SLAVE_NODE_CPU, 2
648 memory: !os_env SLAVE_NODE_MEMORY, 2048
649 boot:
650 - hd
651 cloud_init_volume_name: iso
652 cloud_init_iface_up: ens3
653 volumes:
654 - name: system
655 capacity: !os_env NODE_VOLUME_SIZE, 150
656 backing_store: mcp_ubuntu_1604_image
657 format: qcow2
658 - name: iso # Volume with name 'iso' will be used
659 # for store image with cloud-init metadata.
660 capacity: 1
661 format: raw
662 device: cdrom
663 bus: ide
664 cloudinit_meta_data: *cloudinit_meta_data
665 cloudinit_user_data: *cloudinit_user_data_1604
666
667 interfaces: *interfaces
668 network_config: *network_config