blob: 509edbe70777853a10cf2c347a532f9f4ef20890 [file] [log] [blame]
Dennis Dmitriev47433912018-03-25 04:24:59 +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-pike-dvr-ssl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-pike-dvr-ssl/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-pike-dvr-ssl') %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020016{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030017{% 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 Butenkoe448c5c2018-10-30 11:57:53 +020021{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +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) %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020026{% 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) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030032{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
33{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020034{% set HOSTNAME_SHARE01 = os_env('HOSTNAME_SHARE01', 'share01.' + DOMAIN_NAME) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030035
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ssl_' + 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
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020053 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
Dennis Dmitriev47433912018-03-25 04:24:59 +030062 default_{{ HOSTNAME_GTW01 }}: +110
63 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020064 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +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
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020080 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
Dennis Dmitriev47433912018-03-25 04:24:59 +030089 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020091 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +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
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200107 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
Dennis Dmitriev47433912018-03-25 04:24:59 +0300116 default_{{ HOSTNAME_GTW01 }}: +110
117 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200118 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +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
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200134 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
Dennis Dmitriev47433912018-03-25 04:24:59 +0300143 default_{{ HOSTNAME_GTW01 }}: +110
144 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200145 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +0300146 ip_ranges:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200147 dhcp: [+130, +220]
Dennis Dmitriev47433912018-03-25 04:24:59 +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
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200188 dhcp: false
Dennis Dmitriev47433912018-03-25 04:24:59 +0300189 forward:
Dennis Dmitriev2cb23932018-05-01 01:47:34 +0300190 mode: route
Dennis Dmitriev47433912018-03-25 04:24:59 +0300191
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
Dennis Dmitriev47433912018-03-25 04:24:59 +0300257 - name: iso # Volume with name 'iso' will be used
258 # for store image with cloud-init metadata.
259 capacity: 1
260 format: raw
261 device: cdrom
262 bus: ide
263 cloudinit_meta_data: *cloudinit_meta_data
264 cloudinit_user_data: *cloudinit_user_data_1604
265
266 interfaces: &interfaces
267 - label: ens3
268 l2_network_device: admin
269 interface_model: *interface_model
270 - label: ens4
271 l2_network_device: private
272 interface_model: *interface_model
273 network_config: &network_config
274 ens3:
275 networks:
276 - admin
277 ens4:
278 networks:
279 - private
280
281 - name: {{ HOSTNAME_CTL02 }}
282 role: salt_minion
283 params:
284 vcpu: !os_env SLAVE_NODE_CPU, 2
285 memory: !os_env SLAVE_NODE_MEMORY, 16384
286 boot:
287 - hd
288 cloud_init_volume_name: iso
289 cloud_init_iface_up: ens3
290 volumes:
291 - name: system
292 capacity: !os_env NODE_VOLUME_SIZE, 150
293 backing_store: mcp_ubuntu_1604_image
294 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300295 - name: iso # Volume with name 'iso' will be used
296 # for store image with cloud-init metadata.
297 capacity: 1
298 format: raw
299 device: cdrom
300 bus: ide
301 cloudinit_meta_data: *cloudinit_meta_data
302 cloudinit_user_data: *cloudinit_user_data_1604
303
304 interfaces: *interfaces
305 network_config: *network_config
306
307 - name: {{ HOSTNAME_CTL03 }}
308 role: salt_minion
309 params:
310 vcpu: !os_env SLAVE_NODE_CPU, 2
311 memory: !os_env SLAVE_NODE_MEMORY, 16384
312 boot:
313 - hd
314 cloud_init_volume_name: iso
315 cloud_init_iface_up: ens3
316 volumes:
317 - name: system
318 capacity: !os_env NODE_VOLUME_SIZE, 150
319 backing_store: mcp_ubuntu_1604_image
320 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300321 - name: iso # Volume with name 'iso' will be used
322 # for store image with cloud-init metadata.
323 capacity: 1
324 format: raw
325 device: cdrom
326 bus: ide
327 cloudinit_meta_data: *cloudinit_meta_data
328 cloudinit_user_data: *cloudinit_user_data_1604
329
330 interfaces: *interfaces
331 network_config: *network_config
332
333 - name: {{ HOSTNAME_MON01 }}
334 role: salt_minion
335 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200336 vcpu: !os_env SLAVE_NODE_CPU, 2
337 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300338 boot:
339 - hd
340 cloud_init_volume_name: iso
341 cloud_init_iface_up: ens3
342 volumes:
343 - name: system
344 capacity: !os_env NODE_VOLUME_SIZE, 150
345 backing_store: mcp_ubuntu_1604_image
346 format: qcow2
347 - name: iso # Volume with name 'iso' will be used
348 # for store image with cloud-init metadata.
349 capacity: 1
350 format: raw
351 device: cdrom
352 bus: ide
353 cloudinit_meta_data: *cloudinit_meta_data
354 cloudinit_user_data: *cloudinit_user_data_1604
355
356 interfaces: *interfaces
357 network_config: *network_config
358
359 - name: {{ HOSTNAME_MON02 }}
360 role: salt_minion
361 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200362 vcpu: !os_env SLAVE_NODE_CPU, 2
363 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300364 boot:
365 - hd
366 cloud_init_volume_name: iso
367 cloud_init_iface_up: ens3
368 volumes:
369 - name: system
370 capacity: !os_env NODE_VOLUME_SIZE, 150
371 backing_store: mcp_ubuntu_1604_image
372 format: qcow2
373 - name: iso # Volume with name 'iso' will be used
374 # for store image with cloud-init metadata.
375 capacity: 1
376 format: raw
377 device: cdrom
378 bus: ide
379 cloudinit_meta_data: *cloudinit_meta_data
380 cloudinit_user_data: *cloudinit_user_data_1604
381
382 interfaces: *interfaces
383 network_config: *network_config
384
385 - name: {{ HOSTNAME_MON03 }}
386 role: salt_minion
387 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200388 vcpu: !os_env SLAVE_NODE_CPU, 2
389 memory: !os_env SLAVE_NODE_MEMORY, 4096
390 boot:
391 - hd
392 cloud_init_volume_name: iso
393 cloud_init_iface_up: ens3
394 volumes:
395 - name: system
396 capacity: !os_env NODE_VOLUME_SIZE, 150
397 backing_store: mcp_ubuntu_1604_image
398 format: qcow2
399 - name: iso # Volume with name 'iso' will be used
400 # for store image with cloud-init metadata.
401 capacity: 1
402 format: raw
403 device: cdrom
404 bus: ide
405 cloudinit_meta_data: *cloudinit_meta_data
406 cloudinit_user_data: *cloudinit_user_data_1604
407
408 interfaces: *interfaces
409 network_config: *network_config
410
411 - name: {{ HOSTNAME_LOG01 }}
412 role: salt_minion
413 params:
414 vcpu: !os_env SLAVE_NODE_CPU, 2
415 memory: !os_env SLAVE_NODE_MEMORY, 4096
416 boot:
417 - hd
418 cloud_init_volume_name: iso
419 cloud_init_iface_up: ens3
420 volumes:
421 - name: system
422 capacity: !os_env NODE_VOLUME_SIZE, 150
423 backing_store: mcp_ubuntu_1604_image
424 format: qcow2
425 - name: iso # Volume with name 'iso' will be used
426 # for store image with cloud-init metadata.
427 capacity: 1
428 format: raw
429 device: cdrom
430 bus: ide
431 cloudinit_meta_data: *cloudinit_meta_data
432 cloudinit_user_data: *cloudinit_user_data_1604
433
434 interfaces: *interfaces
435 network_config: *network_config
436
437 - name: {{ HOSTNAME_LOG02 }}
438 role: salt_minion
439 params:
440 vcpu: !os_env SLAVE_NODE_CPU, 2
441 memory: !os_env SLAVE_NODE_MEMORY, 4096
442 boot:
443 - hd
444 cloud_init_volume_name: iso
445 cloud_init_iface_up: ens3
446 volumes:
447 - name: system
448 capacity: !os_env NODE_VOLUME_SIZE, 150
449 backing_store: mcp_ubuntu_1604_image
450 format: qcow2
451 - name: iso # Volume with name 'iso' will be used
452 # for store image with cloud-init metadata.
453 capacity: 1
454 format: raw
455 device: cdrom
456 bus: ide
457 cloudinit_meta_data: *cloudinit_meta_data
458 cloudinit_user_data: *cloudinit_user_data_1604
459
460 interfaces: *interfaces
461 network_config: *network_config
462
463 - name: {{ HOSTNAME_LOG03 }}
464 role: salt_minion
465 params:
466 vcpu: !os_env SLAVE_NODE_CPU, 2
467 memory: !os_env SLAVE_NODE_MEMORY, 4096
468 boot:
469 - hd
470 cloud_init_volume_name: iso
471 cloud_init_iface_up: ens3
472 volumes:
473 - name: system
474 capacity: !os_env NODE_VOLUME_SIZE, 150
475 backing_store: mcp_ubuntu_1604_image
476 format: qcow2
477 - name: iso # Volume with name 'iso' will be used
478 # for store image with cloud-init metadata.
479 capacity: 1
480 format: raw
481 device: cdrom
482 bus: ide
483 cloudinit_meta_data: *cloudinit_meta_data
484 cloudinit_user_data: *cloudinit_user_data_1604
485
486 interfaces: *interfaces
487 network_config: *network_config
488
489 - name: {{ HOSTNAME_MTR01 }}
490 role: salt_minion
491 params:
492 vcpu: !os_env SLAVE_NODE_CPU, 2
493 memory: !os_env SLAVE_NODE_MEMORY, 4096
494 boot:
495 - hd
496 cloud_init_volume_name: iso
497 cloud_init_iface_up: ens3
498 volumes:
499 - name: system
500 capacity: !os_env NODE_VOLUME_SIZE, 150
501 backing_store: mcp_ubuntu_1604_image
502 format: qcow2
503 - name: iso # Volume with name 'iso' will be used
504 # for store image with cloud-init metadata.
505 capacity: 1
506 format: raw
507 device: cdrom
508 bus: ide
509 cloudinit_meta_data: *cloudinit_meta_data
510 cloudinit_user_data: *cloudinit_user_data_1604
511
512 interfaces: *interfaces
513 network_config: *network_config
514
515 - name: {{ HOSTNAME_MTR02 }}
516 role: salt_minion
517 params:
518 vcpu: !os_env SLAVE_NODE_CPU, 2
519 memory: !os_env SLAVE_NODE_MEMORY, 4096
520 boot:
521 - hd
522 cloud_init_volume_name: iso
523 cloud_init_iface_up: ens3
524 volumes:
525 - name: system
526 capacity: !os_env NODE_VOLUME_SIZE, 150
527 backing_store: mcp_ubuntu_1604_image
528 format: qcow2
529 - name: iso # Volume with name 'iso' will be used
530 # for store image with cloud-init metadata.
531 capacity: 1
532 format: raw
533 device: cdrom
534 bus: ide
535 cloudinit_meta_data: *cloudinit_meta_data
536 cloudinit_user_data: *cloudinit_user_data_1604
537
538 interfaces: *interfaces
539 network_config: *network_config
540
541 - name: {{ HOSTNAME_MTR03 }}
542 role: salt_minion
543 params:
544 vcpu: !os_env SLAVE_NODE_CPU, 2
545 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300546 boot:
547 - hd
548 cloud_init_volume_name: iso
549 cloud_init_iface_up: ens3
550 volumes:
551 - name: system
552 capacity: !os_env NODE_VOLUME_SIZE, 150
553 backing_store: mcp_ubuntu_1604_image
554 format: qcow2
555 - name: iso # Volume with name 'iso' will be used
556 # for store image with cloud-init metadata.
557 capacity: 1
558 format: raw
559 device: cdrom
560 bus: ide
561 cloudinit_meta_data: *cloudinit_meta_data
562 cloudinit_user_data: *cloudinit_user_data_1604
563
564 interfaces: *interfaces
565 network_config: *network_config
566
567 - name: {{ HOSTNAME_PRX01 }}
568 role: salt_minion
569 params:
570 vcpu: !os_env SLAVE_NODE_CPU, 1
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200571 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev47433912018-03-25 04:24:59 +0300572 boot:
573 - hd
574 cloud_init_volume_name: iso
575 cloud_init_iface_up: ens3
576 volumes:
577 - name: system
578 capacity: !os_env NODE_VOLUME_SIZE, 150
579 backing_store: mcp_ubuntu_1604_image
580 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300581 - name: iso # Volume with name 'iso' will be used
582 # for store image with cloud-init metadata.
583 capacity: 1
584 format: raw
585 device: cdrom
586 bus: ide
587 cloudinit_meta_data: *cloudinit_meta_data
588 cloudinit_user_data: *cloudinit_user_data_1604
589
590 interfaces: *interfaces
591 network_config: *network_config
592
593
594 - name: {{ HOSTNAME_CMP01 }}
595 role: salt_minion
596 params:
597 vcpu: !os_env SLAVE_NODE_CPU, 3
598 memory: !os_env SLAVE_NODE_MEMORY, 4096
599 boot:
600 - hd
601 cloud_init_volume_name: iso
602 cloud_init_iface_up: ens3
603 volumes:
604 - name: system
605 capacity: !os_env NODE_VOLUME_SIZE, 150
606 backing_store: cloudimage1604
607 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300608 - name: cinder
609 capacity: 50
610 format: qcow2
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200611 - name: manila
612 capacity: 20
613 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300614 - name: iso # Volume with name 'iso' will be used
615 # for store image with cloud-init metadata.
616 capacity: 1
617 format: raw
618 device: cdrom
619 bus: ide
620 cloudinit_meta_data: *cloudinit_meta_data
621 cloudinit_user_data: *cloudinit_user_data_1604
622
623
624 interfaces: &all_interfaces
625 - label: ens3
626 l2_network_device: admin
627 interface_model: *interface_model
628 - label: ens4
629 l2_network_device: private
630 interface_model: *interface_model
631 - label: ens5
632 l2_network_device: tenant
633 interface_model: *interface_model
634 - label: ens6
635 l2_network_device: external
636 interface_model: *interface_model
637 network_config: &all_network_config
638 ens3:
639 networks:
640 - admin
641 ens4:
642 networks:
643 - private
644 ens5:
645 networks:
646 - tenant
647 ens6:
648 networks:
649 - external
650
651 - name: {{ HOSTNAME_CMP02 }}
652 role: salt_minion
653 params:
654 vcpu: !os_env SLAVE_NODE_CPU, 3
655 memory: !os_env SLAVE_NODE_MEMORY, 4096
656 boot:
657 - hd
658 cloud_init_volume_name: iso
659 cloud_init_iface_up: ens3
660 volumes:
661 - name: system
662 capacity: !os_env NODE_VOLUME_SIZE, 150
663 backing_store: cloudimage1604
664 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300665 - name: cinder
666 capacity: 50
667 format: qcow2
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200668 - name: manila
669 capacity: 20
670 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300671 - 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
707 network_config: *all_network_config
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200708
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