blob: 15da576b0c4599b19d4c04b3d5c1443465cf019a [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:
124 l2_network_device: +1
125 default_{{ HOSTNAME_APT01 }}: +122
126 default_{{ HOSTNAME_CFG01 }}: +100
127 default_{{ HOSTNAME_CTL01 }}: +101
128 default_{{ HOSTNAME_CTL02 }}: +102
129 default_{{ HOSTNAME_CTL03 }}: +103
130 default_{{ HOSTNAME_CMP01 }}: +105
131 default_{{ HOSTNAME_CMP02 }}: +106
132 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300133 default_{{ HOSTNAME_MDB01 }}: +45
134 default_{{ HOSTNAME_MDB02 }}: +46
135 default_{{ HOSTNAME_MDB03 }}: +47
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300136 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300137 default_{{ HOSTNAME_DNS01 }}: +111
138 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300139 ip_ranges:
140 dhcp: [+90, -10]
141
142 groups:
143 - name: default
144 driver:
145 name: devops.driver.libvirt
146 params:
147 connection_string: !os_env CONNECTION_STRING, qemu:///system
148 storage_pool_name: !os_env STORAGE_POOL_NAME, default
149 stp: False
150 hpet: False
151 enable_acpi: true
152 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
153 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
154
155 network_pools:
156 admin: admin-pool01
157 private: private-pool01
158 tenant: tenant-pool01
159 external: external-pool01
160
161 l2_network_devices:
162 private:
163 address_pool: private-pool01
164 dhcp: false
165 forward:
166 mode: route
167
168 admin:
169 address_pool: admin-pool01
170 dhcp: true
171 forward:
172 mode: nat
173
174 tenant:
175 address_pool: tenant-pool01
176 dhcp: false
177
178 external:
179 address_pool: external-pool01
180 dhcp: true
181 forward:
Dennis Dmitrievb0ce3682018-05-01 16:48:11 +0300182 mode: route
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300183
184 group_volumes:
185 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
186 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
187 format: qcow2
188 - name: cfg01_day01_image # Pre-configured day01 image
189 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
190 format: qcow2
191 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
192 source_image: !os_env MCP_IMAGE_PATH1604
193 format: qcow2
194 - name: apt_cloudimage1604 # This name is used for 'backing_store' option for node volumes.
195 source_image: !os_env APT_IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
196 format: qcow2
197
198 nodes:
199 - name: {{ HOSTNAME_APT01 }}
200 role: salt_minion
201 params:
202 vcpu: !os_env SLAVE_NODE_CPU, 2
203 memory: !os_env SLAVE_NODE_MEMORY, 4096
204 boot:
205 - hd
206 cloud_init_volume_name: iso
207 cloud_init_iface_up: ens3
208 volumes:
209 - name: system
210 capacity: !os_env NODE_VOLUME_SIZE, 150
211 backing_store: apt_cloudimage1604
212 format: qcow2
213 - name: iso # Volume with name 'iso' will be used
214 # for store image with cloud-init metadata.
215 capacity: 1
216 format: raw
217 device: cdrom
218 bus: ide
219 cloudinit_meta_data: *cloudinit_meta_data
220 cloudinit_user_data: *cloudinit_user_data_apt01
221
222 interfaces:
223 - label: ens3
224 l2_network_device: admin
225 interface_model: *interface_model
226 - label: ens4
227 l2_network_device: private
228 interface_model: *interface_model
229 - label: ens5
230 l2_network_device: tenant
231 interface_model: *interface_model
232 - label: ens6
233 l2_network_device: external
234 interface_model: *interface_model
235 network_config:
236 ens3:
237 networks:
238 - admin
239 ens4:
240 networks:
241 - private
242 ens5:
243 networks:
244 - tenant
245 ens6:
246 networks:
247 - external
248
249 - name: {{ HOSTNAME_CFG01 }}
250 role: salt_master
251 params:
252 vcpu: !os_env SLAVE_NODE_CPU, 2
253 memory: !os_env SLAVE_NODE_MEMORY, 8192
254 boot:
255 - hd
256 cloud_init_volume_name: iso
257 cloud_init_iface_up: ens3
258 volumes:
259 - name: system
260 capacity: !os_env NODE_VOLUME_SIZE, 150
261 backing_store: cfg01_day01_image
262 format: qcow2
263 - name: iso # Volume with name 'iso' will be used
264 # for store image with cloud-init metadata.
265 capacity: 1
266 format: raw
267 device: cdrom
268 bus: ide
269 cloudinit_meta_data: *cloudinit_meta_data
270 cloudinit_user_data: *cloudinit_user_data_cfg01
271
272 interfaces:
273 - label: ens3
274 l2_network_device: admin
275 interface_model: *interface_model
276 - label: ens4
277 l2_network_device: private
278 interface_model: *interface_model
279 network_config:
280 ens3:
281 networks:
282 - admin
283 ens4:
284 networks:
285 - private
286
287 - name: {{ HOSTNAME_CTL01 }}
288 role: salt_minion
289 params:
290 vcpu: !os_env SLAVE_NODE_CPU, 3
291 memory: !os_env SLAVE_NODE_MEMORY, 16384
292 boot:
293 - hd
294 cloud_init_volume_name: iso
295 cloud_init_iface_up: ens3
296 volumes:
297 - name: system
298 capacity: !os_env NODE_VOLUME_SIZE, 150
299 backing_store: mcp_ubuntu_1604_image
300 format: qcow2
301 - name: cinder
302 capacity: 50
303 format: qcow2
304 - name: iso # Volume with name 'iso' will be used
305 # for store image with cloud-init metadata.
306 capacity: 1
307 format: raw
308 device: cdrom
309 bus: ide
310 cloudinit_meta_data: *cloudinit_meta_data
311 cloudinit_user_data: *cloudinit_user_data_1604
312
313 interfaces: &interfaces
314 - label: ens3
315 l2_network_device: admin
316 interface_model: *interface_model
317 - label: ens4
318 l2_network_device: private
319 interface_model: *interface_model
320 network_config: &network_config
321 ens3:
322 networks:
323 - admin
324 ens4:
325 networks:
326 - private
327
328 - name: {{ HOSTNAME_CTL02 }}
329 role: salt_minion
330 params:
331 vcpu: !os_env SLAVE_NODE_CPU, 3
332 memory: !os_env SLAVE_NODE_MEMORY, 16384
333 boot:
334 - hd
335 cloud_init_volume_name: iso
336 cloud_init_iface_up: ens3
337 volumes:
338 - name: system
339 capacity: !os_env NODE_VOLUME_SIZE, 150
340 backing_store: mcp_ubuntu_1604_image
341 format: qcow2
342 - name: cinder
343 capacity: 50
344 format: qcow2
345 - name: iso # Volume with name 'iso' will be used
346 # for store image with cloud-init metadata.
347 capacity: 1
348 format: raw
349 device: cdrom
350 bus: ide
351 cloudinit_meta_data: *cloudinit_meta_data
352 cloudinit_user_data: *cloudinit_user_data_1604
353
354 interfaces: *interfaces
355 network_config: *network_config
356
357 - name: {{ HOSTNAME_CTL03 }}
358 role: salt_minion
359 params:
360 vcpu: !os_env SLAVE_NODE_CPU, 3
361 memory: !os_env SLAVE_NODE_MEMORY, 16384
362 boot:
363 - hd
364 cloud_init_volume_name: iso
365 cloud_init_iface_up: ens3
366 volumes:
367 - name: system
368 capacity: !os_env NODE_VOLUME_SIZE, 150
369 backing_store: mcp_ubuntu_1604_image
370 format: qcow2
371 - name: cinder
372 capacity: 50
373 format: qcow2
374 - name: iso # Volume with name 'iso' will be used
375 # for store image with cloud-init metadata.
376 capacity: 1
377 format: raw
378 device: cdrom
379 bus: ide
380 cloudinit_meta_data: *cloudinit_meta_data
381 cloudinit_user_data: *cloudinit_user_data_1604
382
383 interfaces: *interfaces
384 network_config: *network_config
385
386 - name: {{ HOSTNAME_PRX01 }}
387 role: salt_minion
388 params:
389 vcpu: !os_env SLAVE_NODE_CPU, 1
390 memory: !os_env SLAVE_NODE_MEMORY, 2048
391 boot:
392 - hd
393 cloud_init_volume_name: iso
394 cloud_init_iface_up: ens3
395 volumes:
396 - name: system
397 capacity: !os_env NODE_VOLUME_SIZE, 150
398 backing_store: mcp_ubuntu_1604_image
399 format: qcow2
400 - name: iso # Volume with name 'iso' will be used
401 # for store image with cloud-init metadata.
402 capacity: 1
403 format: raw
404 device: cdrom
405 bus: ide
406 cloudinit_meta_data: *cloudinit_meta_data
407 cloudinit_user_data: *cloudinit_user_data_1604
408
409 interfaces: *interfaces
410 network_config: *network_config
411
412 - name: {{ HOSTNAME_CMP01 }}
413 role: salt_minion
414 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300415 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300416 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300417 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300418 - cpus: 0,1,2,3,4,5
419 memory: 4096
420 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300421 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300422 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: cloudimage1604
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
439
440
441 interfaces: &all_interfaces
442 - label: ens3
443 l2_network_device: admin
444 interface_model: *interface_model
445 - label: ens4
446 l2_network_device: private
447 interface_model: *interface_model
448 - label: ens5
449 l2_network_device: tenant
450 interface_model: *interface_model
451 - label: ens6
452 l2_network_device: external
453 interface_model: *interface_model
454 network_config: &all_network_config
455 ens3:
456 networks:
457 - admin
458 ens4:
459 networks:
460 - private
461 ens5:
462 networks:
463 - tenant
464 ens6:
465 networks:
466 - external
467
468 - name: {{ HOSTNAME_CMP02 }}
469 role: salt_minion
470 params:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300471 vcpu: !os_env SLAVE_NODE_CPU, 12
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300472 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300473 numa:
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300474 - cpus: 0,1,2,3,4,5
475 memory: 4096
476 - cpus: 6,7,8,9,10,11
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300477 memory: 4096
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300478 boot:
479 - hd
480 cloud_init_volume_name: iso
481 cloud_init_iface_up: ens3
482 volumes:
483 - name: system
484 capacity: !os_env NODE_VOLUME_SIZE, 150
485 backing_store: cloudimage1604
486 format: qcow2
487 - name: iso # Volume with name 'iso' will be used
488 # for store image with cloud-init metadata.
489 capacity: 1
490 format: raw
491 device: cdrom
492 bus: ide
493 cloudinit_meta_data: *cloudinit_meta_data
494 cloudinit_user_data: *cloudinit_user_data_1604
495
496 interfaces: *all_interfaces
497 network_config: *all_network_config
498
499 - name: {{ HOSTNAME_GTW01 }}
500 role: salt_minion
501 params:
502 vcpu: !os_env SLAVE_NODE_CPU, 8
503 memory: !os_env SLAVE_NODE_MEMORY, 8192
504 boot:
505 - hd
506 cloud_init_volume_name: iso
507 cloud_init_iface_up: ens3
508 volumes:
509 - name: system
510 capacity: !os_env NODE_VOLUME_SIZE, 150
511 backing_store: cloudimage1604
512 format: qcow2
513 - name: iso # Volume with name 'iso' will be used
514 # for store image with cloud-init metadata.
515 capacity: 1
516 format: raw
517 device: cdrom
518 bus: ide
519 cloudinit_meta_data: *cloudinit_meta_data
520 cloudinit_user_data: *cloudinit_user_data_1604
521
522 interfaces: *all_interfaces
523 network_config: *all_network_config
524
525 - name: {{ HOSTNAME_VS }}
526 role: vm
527 params:
528 vcpu: !os_env SLAVE_NODE_CPU, 2
529 memory: !os_env SLAVE_NODE_MEMORY, 2048
530 boot:
531 - hd
532 cloud_init_volume_name: iso
533 cloud_init_iface_up: ens3
534 volumes:
535 - name: system
536 capacity: !os_env NODE_VOLUME_SIZE, 150
537 backing_store: cloudimage1604
538 format: qcow2
539 - name: iso # Volume with name 'iso' will be used
540 # for store image with cloud-init metadata.
541 capacity: 1
542 format: raw
543 device: cdrom
544 bus: ide
545 cloudinit_meta_data: *cloudinit_meta_data
546 cloudinit_user_data: *cloudinit_user_data_1604
547
548 interfaces: *interfaces
549 network_config: *network_config
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +0300550
551 - name: {{ HOSTNAME_DNS01 }}
552 role: salt_minion
553 params:
554 vcpu: !os_env SLAVE_NODE_CPU, 1
555 memory: !os_env SLAVE_NODE_MEMORY, 2048
556 boot:
557 - hd
558 cloud_init_volume_name: iso
559 cloud_init_iface_up: ens3
560 volumes:
561 - name: system
562 capacity: !os_env NODE_VOLUME_SIZE, 150
563 backing_store: mcp_ubuntu_1604_image
564 format: qcow2
565 - name: iso # Volume with name 'iso' will be used
566 # for store image with cloud-init metadata.
567 capacity: 1
568 format: raw
569 device: cdrom
570 bus: ide
571 cloudinit_meta_data: *cloudinit_meta_data
572 cloudinit_user_data: *cloudinit_user_data_1604
573
574 interfaces: *all_interfaces
575 network_config: *all_network_config
576
577 - name: {{ HOSTNAME_DNS02 }}
578 role: salt_minion
579 params:
580 vcpu: !os_env SLAVE_NODE_CPU, 1
581 memory: !os_env SLAVE_NODE_MEMORY, 2048
582 boot:
583 - hd
584 cloud_init_volume_name: iso
585 cloud_init_iface_up: ens3
586 volumes:
587 - name: system
588 capacity: !os_env NODE_VOLUME_SIZE, 150
589 backing_store: mcp_ubuntu_1604_image
590 format: qcow2
591 - name: iso # Volume with name 'iso' will be used
592 # for store image with cloud-init metadata.
593 capacity: 1
594 format: raw
595 device: cdrom
596 bus: ide
597 cloudinit_meta_data: *cloudinit_meta_data
598 cloudinit_user_data: *cloudinit_user_data_1604
599
600 interfaces: *all_interfaces
601 network_config: *all_network_config
602
603 - name: {{ HOSTNAME_MDB01 }}
604 role: salt_minion
605 params:
606 vcpu: !os_env SLAVE_NODE_CPU, 2
607 memory: !os_env SLAVE_NODE_MEMORY, 2018
608 boot:
609 - hd
610 cloud_init_volume_name: iso
611 cloud_init_iface_up: ens3
612 volumes:
613 - name: system
614 capacity: !os_env NODE_VOLUME_SIZE, 150
615 backing_store: mcp_ubuntu_1604_image
616 format: qcow2
617 - name: iso # Volume with name 'iso' will be used
618 # for store image with cloud-init metadata.
619 capacity: 1
620 format: raw
621 device: cdrom
622 bus: ide
623 cloudinit_meta_data: *cloudinit_meta_data
624 cloudinit_user_data: *cloudinit_user_data_1604
625
626 interfaces: *interfaces
627 network_config: *network_config
628
629 - name: {{ HOSTNAME_MDB02 }}
630 role: salt_minion
631 params:
632 vcpu: !os_env SLAVE_NODE_CPU, 2
633 memory: !os_env SLAVE_NODE_MEMORY, 2048
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: mcp_ubuntu_1604_image
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
651
652 interfaces: *interfaces
653 network_config: *network_config
654
655 - name: {{ HOSTNAME_MDB03 }}
656 role: salt_minion
657 params:
658 vcpu: !os_env SLAVE_NODE_CPU, 2
659 memory: !os_env SLAVE_NODE_MEMORY, 2048
660 boot:
661 - hd
662 cloud_init_volume_name: iso
663 cloud_init_iface_up: ens3
664 volumes:
665 - name: system
666 capacity: !os_env NODE_VOLUME_SIZE, 150
667 backing_store: mcp_ubuntu_1604_image
668 format: qcow2
669 - name: iso # Volume with name 'iso' will be used
670 # for store image with cloud-init metadata.
671 capacity: 1
672 format: raw
673 device: cdrom
674 bus: ide
675 cloudinit_meta_data: *cloudinit_meta_data
676 cloudinit_user_data: *cloudinit_user_data_1604
677
678 interfaces: *interfaces
679 network_config: *network_config
Tatyana Leontovich8dbc7882018-08-29 13:11:16 +0300680
681 - name: {{ HOSTNAME_CID01 }}
682 role: salt_minion
683 params:
684 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
685 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
686 boot:
687 - hd
688 cloud_init_volume_name: iso
689 cloud_init_iface_up: ens3
690 volumes:
691 - name: system
692 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
693 backing_store: mcp_ubuntu_1604_image
694 format: qcow2
695 - name: iso # Volume with name 'iso' will be used
696 # for store image with cloud-init metadata.
697 capacity: 1
698 format: raw
699 device: cdrom
700 bus: ide
701 cloudinit_meta_data: *cloudinit_meta_data
702 cloudinit_user_data: *cloudinit_user_data_1604
703
704 interfaces: *interfaces
705 network_config: *network_config
706
707 - name: {{ HOSTNAME_CID02 }}
708 role: salt_minion
709 params:
710 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
711 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
712 boot:
713 - hd
714 cloud_init_volume_name: iso
715 cloud_init_iface_up: ens3
716 volumes:
717 - name: system
718 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
719 backing_store: mcp_ubuntu_1604_image
720 format: qcow2
721 - name: iso # Volume with name 'iso' will be used
722 # for store image with cloud-init metadata.
723 capacity: 1
724 format: raw
725 device: cdrom
726 bus: ide
727 cloudinit_meta_data: *cloudinit_meta_data
728 cloudinit_user_data: *cloudinit_user_data_1604
729
730 interfaces: *interfaces
731 network_config: *network_config
732
733 - name: {{ HOSTNAME_CID03 }}
734 role: salt_minion
735 params:
736 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
737 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
738 boot:
739 - hd
740 cloud_init_volume_name: iso
741 cloud_init_iface_up: ens3
742 volumes:
743 - name: system
744 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
745 backing_store: mcp_ubuntu_1604_image
746 format: qcow2
747 - name: iso # Volume with name 'iso' will be used
748 # for store image with cloud-init metadata.
749 capacity: 1
750 format: raw
751 device: cdrom
752 bus: ide
753 cloudinit_meta_data: *cloudinit_meta_data
754 cloudinit_user_data: *cloudinit_user_data_1604
755
756 interfaces: *interfaces
757 network_config: *network_config