blob: b9da22a79811b478893bd2a779a835de92e48357 [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) %}
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +030022{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030025{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
28{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
29{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
30{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
31{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030032{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
33{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
34{% set HOSTNAME_MDB01 = os_env('HOSTNAME_MDB01', 'mdb01.' + DOMAIN_NAME) %}
35{% set HOSTNAME_MDB02 = os_env('HOSTNAME_MDB02', 'mdb02.' + DOMAIN_NAME) %}
36{% set HOSTNAME_MDB03 = os_env('HOSTNAME_MDB03', 'mdb03.' + DOMAIN_NAME) %}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030037{% set HOSTNAME_VS = 'vs.' + DOMAIN_NAME %}
38
39template:
40 devops_settings:
41 env_name: {{ os_env('ENV_NAME', 'virtual-offline-pike-ovs-dpdk_' + 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 l2_network_device: +1
49 default_{{ HOSTNAME_APT01 }}: +122
50 default_{{ HOSTNAME_CFG01 }}: +100
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +030051 default_{{ HOSTNAME_CID }}: +80
52 default_{{ HOSTNAME_CID01 }}: +91
53 default_{{ HOSTNAME_CID02 }}: +92
54 default_{{ HOSTNAME_CID03 }}: +93
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030055 default_{{ HOSTNAME_CTL01 }}: +101
56 default_{{ HOSTNAME_CTL02 }}: +102
57 default_{{ HOSTNAME_CTL03 }}: +103
58 default_{{ HOSTNAME_CMP01 }}: +105
59 default_{{ HOSTNAME_CMP02 }}: +106
60 default_{{ HOSTNAME_GTW01 }}: +110
61 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030062 default_{{ HOSTNAME_MDB01 }}: +45
63 default_{{ HOSTNAME_MDB02 }}: +46
64 default_{{ HOSTNAME_MDB03 }}: +47
65 default_{{ HOSTNAME_DNS01 }}: +111
66 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030067 default_{{ HOSTNAME_VS }}: +178
68 ip_ranges:
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +030069 dhcp: [+60, -10]
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030070
71 admin-pool01:
72 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
73 params:
74 ip_reserved:
75 gateway: +122
76 l2_network_device: +1
77 default_{{ HOSTNAME_APT01 }}: +122
78 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +030079 default_{{ HOSTNAME_CID }}: +80
80 default_{{ HOSTNAME_CID01 }}: +91
81 default_{{ HOSTNAME_CID02 }}: +92
82 default_{{ HOSTNAME_CID03 }}: +93
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030083 default_{{ HOSTNAME_CTL01 }}: +101
84 default_{{ HOSTNAME_CTL02 }}: +102
85 default_{{ HOSTNAME_CTL03 }}: +103
86 default_{{ HOSTNAME_CMP01 }}: +105
87 default_{{ HOSTNAME_CMP02 }}: +106
88 default_{{ HOSTNAME_GTW01 }}: +110
89 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030090 default_{{ HOSTNAME_MDB01 }}: +45
91 default_{{ HOSTNAME_MDB02 }}: +46
92 default_{{ HOSTNAME_MDB03 }}: +47
93 default_{{ HOSTNAME_DNS01 }}: +111
94 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030095 default_{{ HOSTNAME_VS }}: +178
96 ip_ranges:
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +030097 dhcp: [+60, -10]
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030098
99 tenant-pool01:
100 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
101 params:
102 ip_reserved:
103 l2_network_device: +1
104 default_{{ HOSTNAME_APT01 }}: +122
105 default_{{ HOSTNAME_CFG01 }}: +100
106 default_{{ HOSTNAME_CTL01 }}: +101
107 default_{{ HOSTNAME_CTL02 }}: +102
108 default_{{ HOSTNAME_CTL03 }}: +103
109 default_{{ HOSTNAME_CMP01 }}: +105
110 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300111 default_{{ HOSTNAME_MDB01 }}: +45
112 default_{{ HOSTNAME_MDB02 }}: +46
113 default_{{ HOSTNAME_MDB03 }}: +47
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300114 default_{{ HOSTNAME_GTW01 }}: +110
115 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300116 default_{{ HOSTNAME_DNS01 }}: +111
117 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300118 ip_ranges:
119 dhcp: [+10, -10]
120 external-pool01:
121 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
122 params:
123 ip_reserved:
Tatyana Leontovicheea03e92018-11-20 12:51:50 +0200124 gateway: +1
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300125 l2_network_device: +1
126 default_{{ HOSTNAME_APT01 }}: +122
127 default_{{ HOSTNAME_CFG01 }}: +100
128 default_{{ HOSTNAME_CTL01 }}: +101
129 default_{{ HOSTNAME_CTL02 }}: +102
130 default_{{ HOSTNAME_CTL03 }}: +103
131 default_{{ HOSTNAME_CMP01 }}: +105
132 default_{{ HOSTNAME_CMP02 }}: +106
133 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300134 default_{{ HOSTNAME_MDB01 }}: +45
135 default_{{ HOSTNAME_MDB02 }}: +46
136 default_{{ HOSTNAME_MDB03 }}: +47
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300137 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300138 default_{{ HOSTNAME_DNS01 }}: +111
139 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300140 ip_ranges:
141 dhcp: [+90, -10]
142
143 groups:
144 - name: default
145 driver:
146 name: devops.driver.libvirt
147 params:
148 connection_string: !os_env CONNECTION_STRING, qemu:///system
149 storage_pool_name: !os_env STORAGE_POOL_NAME, default
150 stp: False
151 hpet: False
152 enable_acpi: true
153 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
154 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
155
156 network_pools:
157 admin: admin-pool01
158 private: private-pool01
159 tenant: tenant-pool01
160 external: external-pool01
161
162 l2_network_devices:
163 private:
164 address_pool: private-pool01
165 dhcp: false
166 forward:
167 mode: route
168
169 admin:
170 address_pool: admin-pool01
171 dhcp: true
172 forward:
173 mode: nat
174
175 tenant:
176 address_pool: tenant-pool01
177 dhcp: false
178
179 external:
180 address_pool: external-pool01
181 dhcp: true
182 forward:
Dennis Dmitrievb0ce3682018-05-01 16:48:11 +0300183 mode: route
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300184
185 group_volumes:
186 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
187 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
188 format: qcow2
189 - name: cfg01_day01_image # Pre-configured day01 image
190 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
191 format: qcow2
192 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
193 source_image: !os_env MCP_IMAGE_PATH1604
194 format: qcow2
195 - name: apt_cloudimage1604 # This name is used for 'backing_store' option for node volumes.
196 source_image: !os_env APT_IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
197 format: qcow2
198
199 nodes:
200 - name: {{ HOSTNAME_APT01 }}
201 role: salt_minion
202 params:
203 vcpu: !os_env SLAVE_NODE_CPU, 2
204 memory: !os_env SLAVE_NODE_MEMORY, 4096
205 boot:
206 - hd
207 cloud_init_volume_name: iso
208 cloud_init_iface_up: ens3
209 volumes:
210 - name: system
211 capacity: !os_env NODE_VOLUME_SIZE, 150
212 backing_store: apt_cloudimage1604
213 format: qcow2
214 - name: iso # Volume with name 'iso' will be used
215 # for store image with cloud-init metadata.
216 capacity: 1
217 format: raw
218 device: cdrom
219 bus: ide
220 cloudinit_meta_data: *cloudinit_meta_data
221 cloudinit_user_data: *cloudinit_user_data_apt01
222
223 interfaces:
224 - label: ens3
225 l2_network_device: admin
226 interface_model: *interface_model
227 - label: ens4
228 l2_network_device: private
229 interface_model: *interface_model
230 - label: ens5
231 l2_network_device: tenant
232 interface_model: *interface_model
233 - label: ens6
234 l2_network_device: external
235 interface_model: *interface_model
236 network_config:
237 ens3:
238 networks:
239 - admin
240 ens4:
241 networks:
242 - private
243 ens5:
244 networks:
245 - tenant
246 ens6:
247 networks:
248 - external
249
250 - name: {{ HOSTNAME_CFG01 }}
251 role: salt_master
252 params:
253 vcpu: !os_env SLAVE_NODE_CPU, 2
254 memory: !os_env SLAVE_NODE_MEMORY, 8192
255 boot:
256 - hd
257 cloud_init_volume_name: iso
258 cloud_init_iface_up: ens3
259 volumes:
260 - name: system
261 capacity: !os_env NODE_VOLUME_SIZE, 150
262 backing_store: cfg01_day01_image
263 format: qcow2
264 - name: iso # Volume with name 'iso' will be used
265 # for store image with cloud-init metadata.
266 capacity: 1
267 format: raw
268 device: cdrom
269 bus: ide
270 cloudinit_meta_data: *cloudinit_meta_data
271 cloudinit_user_data: *cloudinit_user_data_cfg01
272
273 interfaces:
274 - label: ens3
275 l2_network_device: admin
276 interface_model: *interface_model
277 - label: ens4
278 l2_network_device: private
279 interface_model: *interface_model
280 network_config:
281 ens3:
282 networks:
283 - admin
284 ens4:
285 networks:
286 - private
287
288 - name: {{ HOSTNAME_CTL01 }}
289 role: salt_minion
290 params:
291 vcpu: !os_env SLAVE_NODE_CPU, 3
292 memory: !os_env SLAVE_NODE_MEMORY, 16384
293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: !os_env NODE_VOLUME_SIZE, 150
300 backing_store: mcp_ubuntu_1604_image
301 format: qcow2
302 - name: cinder
303 capacity: 50
304 format: qcow2
305 - name: iso # Volume with name 'iso' will be used
306 # for store image with cloud-init metadata.
307 capacity: 1
308 format: raw
309 device: cdrom
310 bus: ide
311 cloudinit_meta_data: *cloudinit_meta_data
312 cloudinit_user_data: *cloudinit_user_data_1604
313
314 interfaces: &interfaces
315 - label: ens3
316 l2_network_device: admin
317 interface_model: *interface_model
318 - label: ens4
319 l2_network_device: private
320 interface_model: *interface_model
321 network_config: &network_config
322 ens3:
323 networks:
324 - admin
325 ens4:
326 networks:
327 - private
328
329 - name: {{ HOSTNAME_CTL02 }}
330 role: salt_minion
331 params:
332 vcpu: !os_env SLAVE_NODE_CPU, 3
333 memory: !os_env SLAVE_NODE_MEMORY, 16384
334 boot:
335 - hd
336 cloud_init_volume_name: iso
337 cloud_init_iface_up: ens3
338 volumes:
339 - name: system
340 capacity: !os_env NODE_VOLUME_SIZE, 150
341 backing_store: mcp_ubuntu_1604_image
342 format: qcow2
343 - name: cinder
344 capacity: 50
345 format: qcow2
346 - name: iso # Volume with name 'iso' will be used
347 # for store image with cloud-init metadata.
348 capacity: 1
349 format: raw
350 device: cdrom
351 bus: ide
352 cloudinit_meta_data: *cloudinit_meta_data
353 cloudinit_user_data: *cloudinit_user_data_1604
354
355 interfaces: *interfaces
356 network_config: *network_config
357
358 - name: {{ HOSTNAME_CTL03 }}
359 role: salt_minion
360 params:
361 vcpu: !os_env SLAVE_NODE_CPU, 3
362 memory: !os_env SLAVE_NODE_MEMORY, 16384
363 boot:
364 - hd
365 cloud_init_volume_name: iso
366 cloud_init_iface_up: ens3
367 volumes:
368 - name: system
369 capacity: !os_env NODE_VOLUME_SIZE, 150
370 backing_store: mcp_ubuntu_1604_image
371 format: qcow2
372 - name: cinder
373 capacity: 50
374 format: qcow2
375 - name: iso # Volume with name 'iso' will be used
376 # for store image with cloud-init metadata.
377 capacity: 1
378 format: raw
379 device: cdrom
380 bus: ide
381 cloudinit_meta_data: *cloudinit_meta_data
382 cloudinit_user_data: *cloudinit_user_data_1604
383
384 interfaces: *interfaces
385 network_config: *network_config
386
387 - name: {{ HOSTNAME_PRX01 }}
388 role: salt_minion
389 params:
390 vcpu: !os_env SLAVE_NODE_CPU, 1
391 memory: !os_env SLAVE_NODE_MEMORY, 2048
392 boot:
393 - hd
394 cloud_init_volume_name: iso
395 cloud_init_iface_up: ens3
396 volumes:
397 - name: system
398 capacity: !os_env NODE_VOLUME_SIZE, 150
399 backing_store: mcp_ubuntu_1604_image
400 format: qcow2
401 - name: iso # Volume with name 'iso' will be used
402 # for store image with cloud-init metadata.
403 capacity: 1
404 format: raw
405 device: cdrom
406 bus: ide
407 cloudinit_meta_data: *cloudinit_meta_data
408 cloudinit_user_data: *cloudinit_user_data_1604
409
410 interfaces: *interfaces
411 network_config: *network_config
412
413 - name: {{ HOSTNAME_CMP01 }}
414 role: salt_minion
415 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300416 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300417 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300418 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300419 - cpus: 0,1,2,3,4,5
420 memory: 4096
421 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300422 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300423 boot:
424 - hd
425 cloud_init_volume_name: iso
426 cloud_init_iface_up: ens3
427 volumes:
428 - name: system
429 capacity: !os_env NODE_VOLUME_SIZE, 150
430 backing_store: cloudimage1604
431 format: qcow2
432 - name: iso # Volume with name 'iso' will be used
433 # for store image with cloud-init metadata.
434 capacity: 1
435 format: raw
436 device: cdrom
437 bus: ide
438 cloudinit_meta_data: *cloudinit_meta_data
439 cloudinit_user_data: *cloudinit_user_data_1604
440
441
442 interfaces: &all_interfaces
443 - label: ens3
444 l2_network_device: admin
445 interface_model: *interface_model
446 - label: ens4
447 l2_network_device: private
448 interface_model: *interface_model
449 - label: ens5
450 l2_network_device: tenant
451 interface_model: *interface_model
452 - label: ens6
453 l2_network_device: external
454 interface_model: *interface_model
455 network_config: &all_network_config
456 ens3:
457 networks:
458 - admin
459 ens4:
460 networks:
461 - private
462 ens5:
463 networks:
464 - tenant
465 ens6:
466 networks:
467 - external
468
469 - name: {{ HOSTNAME_CMP02 }}
470 role: salt_minion
471 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300472 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300473 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300474 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300475 - cpus: 0,1,2,3,4,5
476 memory: 4096
477 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300478 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300479 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: cloudimage1604
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
496
497 interfaces: *all_interfaces
498 network_config: *all_network_config
499
500 - name: {{ HOSTNAME_GTW01 }}
501 role: salt_minion
502 params:
503 vcpu: !os_env SLAVE_NODE_CPU, 8
504 memory: !os_env SLAVE_NODE_MEMORY, 8192
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: cloudimage1604
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
522
523 interfaces: *all_interfaces
524 network_config: *all_network_config
525
526 - name: {{ HOSTNAME_VS }}
527 role: vm
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: cloudimage1604
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
548
549 interfaces: *interfaces
550 network_config: *network_config
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300551
552 - name: {{ HOSTNAME_DNS01 }}
553 role: salt_minion
554 params:
555 vcpu: !os_env SLAVE_NODE_CPU, 1
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
574
575 interfaces: *all_interfaces
576 network_config: *all_network_config
577
578 - name: {{ HOSTNAME_DNS02 }}
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
592 - 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
600
601 interfaces: *all_interfaces
602 network_config: *all_network_config
603
604 - name: {{ HOSTNAME_MDB01 }}
605 role: salt_minion
606 params:
607 vcpu: !os_env SLAVE_NODE_CPU, 2
608 memory: !os_env SLAVE_NODE_MEMORY, 2018
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: mcp_ubuntu_1604_image
617 format: qcow2
618 - name: iso # Volume with name 'iso' will be used
619 # for store image with cloud-init metadata.
620 capacity: 1
621 format: raw
622 device: cdrom
623 bus: ide
624 cloudinit_meta_data: *cloudinit_meta_data
625 cloudinit_user_data: *cloudinit_user_data_1604
626
627 interfaces: *interfaces
628 network_config: *network_config
629
630 - name: {{ HOSTNAME_MDB02 }}
631 role: salt_minion
632 params:
633 vcpu: !os_env SLAVE_NODE_CPU, 2
634 memory: !os_env SLAVE_NODE_MEMORY, 2048
635 boot:
636 - hd
637 cloud_init_volume_name: iso
638 cloud_init_iface_up: ens3
639 volumes:
640 - name: system
641 capacity: !os_env NODE_VOLUME_SIZE, 150
642 backing_store: mcp_ubuntu_1604_image
643 format: qcow2
644 - name: iso # Volume with name 'iso' will be used
645 # for store image with cloud-init metadata.
646 capacity: 1
647 format: raw
648 device: cdrom
649 bus: ide
650 cloudinit_meta_data: *cloudinit_meta_data
651 cloudinit_user_data: *cloudinit_user_data_1604
652
653 interfaces: *interfaces
654 network_config: *network_config
655
656 - name: {{ HOSTNAME_MDB03 }}
657 role: salt_minion
658 params:
659 vcpu: !os_env SLAVE_NODE_CPU, 2
660 memory: !os_env SLAVE_NODE_MEMORY, 2048
661 boot:
662 - hd
663 cloud_init_volume_name: iso
664 cloud_init_iface_up: ens3
665 volumes:
666 - name: system
667 capacity: !os_env NODE_VOLUME_SIZE, 150
668 backing_store: mcp_ubuntu_1604_image
669 format: qcow2
670 - name: iso # Volume with name 'iso' will be used
671 # for store image with cloud-init metadata.
672 capacity: 1
673 format: raw
674 device: cdrom
675 bus: ide
676 cloudinit_meta_data: *cloudinit_meta_data
677 cloudinit_user_data: *cloudinit_user_data_1604
678
679 interfaces: *interfaces
680 network_config: *network_config
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +0300681
682 - name: {{ HOSTNAME_CID01 }}
683 role: salt_minion
684 params:
685 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
686 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
687 boot:
688 - hd
689 cloud_init_volume_name: iso
690 cloud_init_iface_up: ens3
691 volumes:
692 - name: system
693 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
694 backing_store: mcp_ubuntu_1604_image
695 format: qcow2
696 - name: iso # Volume with name 'iso' will be used
697 # for store image with cloud-init metadata.
698 capacity: 1
699 format: raw
700 device: cdrom
701 bus: ide
702 cloudinit_meta_data: *cloudinit_meta_data
703 cloudinit_user_data: *cloudinit_user_data_1604
704
705 interfaces: *interfaces
706 network_config: *network_config
707
708 - name: {{ HOSTNAME_CID02 }}
709 role: salt_minion
710 params:
711 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
712 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
713 boot:
714 - hd
715 cloud_init_volume_name: iso
716 cloud_init_iface_up: ens3
717 volumes:
718 - name: system
719 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
720 backing_store: mcp_ubuntu_1604_image
721 format: qcow2
722 - name: iso # Volume with name 'iso' will be used
723 # for store image with cloud-init metadata.
724 capacity: 1
725 format: raw
726 device: cdrom
727 bus: ide
728 cloudinit_meta_data: *cloudinit_meta_data
729 cloudinit_user_data: *cloudinit_user_data_1604
730
731 interfaces: *interfaces
732 network_config: *network_config
733
734 - name: {{ HOSTNAME_CID03 }}
735 role: salt_minion
736 params:
737 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
738 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
739 boot:
740 - hd
741 cloud_init_volume_name: iso
742 cloud_init_iface_up: ens3
743 volumes:
744 - name: system
745 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
746 backing_store: mcp_ubuntu_1604_image
747 format: qcow2
748 - name: iso # Volume with name 'iso' will be used
749 # for store image with cloud-init metadata.
750 capacity: 1
751 format: raw
752 device: cdrom
753 bus: ide
754 cloudinit_meta_data: *cloudinit_meta_data
755 cloudinit_user_data: *cloudinit_user_data_1604
756
757 interfaces: *interfaces
758 network_config: *network_config