blob: 0b7b0e84eddaf6c328700c9a862ad93b77f98171 [file] [log] [blame]
Oleksii Butenko87d00c02018-09-05 19:11:17 +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-queens-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-queens-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-queens-ovs/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-queens-ovs') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
17{% 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 Butenko0d682792018-09-11 18:48:05 +030021{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +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) %}
26{% 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) %}
32{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030033{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
34{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030035{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030036{% set HOSTNAME_SHARE01 = os_env('HOSTNAME_SHARE01', 'share01.' + DOMAIN_NAME) %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030037
38template:
39 devops_settings:
40 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-queens-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
41
42 address_pools:
43 private-pool01:
44 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
45 params:
46 ip_reserved:
47 gateway: +1
48 l2_network_device: +1
49 default_{{ HOSTNAME_CFG01 }}: +100
50 default_{{ HOSTNAME_CTL01 }}: +101
51 default_{{ HOSTNAME_CTL02 }}: +102
52 default_{{ HOSTNAME_CTL03 }}: +103
53 default_{{ HOSTNAME_CMP01 }}: +105
54 default_{{ HOSTNAME_CMP02 }}: +106
55 default_{{ HOSTNAME_MON01 }}: +71
56 default_{{ HOSTNAME_MON02 }}: +72
57 default_{{ HOSTNAME_MON03 }}: +73
58 default_{{ HOSTNAME_LOG01 }}: +61
59 default_{{ HOSTNAME_LOG02 }}: +62
60 default_{{ HOSTNAME_LOG03 }}: +63
61 default_{{ HOSTNAME_MTR01 }}: +86
62 default_{{ HOSTNAME_MTR02 }}: +87
63 default_{{ HOSTNAME_MTR03 }}: +88
64 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030065 default_{{ HOSTNAME_DNS01 }}: +111
66 default_{{ HOSTNAME_DNS02 }}: +112
Oleksii Butenko87d00c02018-09-05 19:11:17 +030067 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030068 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +030069 ip_ranges:
70 dhcp: [+90, -10]
71
72 admin-pool01:
73 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
74 params:
75 ip_reserved:
76 gateway: +1
77 l2_network_device: +1
78 default_{{ HOSTNAME_CFG01 }}: +90
79 default_{{ HOSTNAME_CTL01 }}: +101
80 default_{{ HOSTNAME_CTL02 }}: +102
81 default_{{ HOSTNAME_CTL03 }}: +103
82 default_{{ HOSTNAME_CMP01 }}: +105
83 default_{{ HOSTNAME_CMP02 }}: +106
84 default_{{ HOSTNAME_MON01 }}: +71
85 default_{{ HOSTNAME_MON02 }}: +72
86 default_{{ HOSTNAME_MON03 }}: +73
87 default_{{ HOSTNAME_LOG01 }}: +61
88 default_{{ HOSTNAME_LOG02 }}: +62
89 default_{{ HOSTNAME_LOG03 }}: +63
90 default_{{ HOSTNAME_MTR01 }}: +86
91 default_{{ HOSTNAME_MTR02 }}: +87
92 default_{{ HOSTNAME_MTR03 }}: +88
93 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030094 default_{{ HOSTNAME_DNS01 }}: +111
95 default_{{ HOSTNAME_DNS02 }}: +112
Oleksii Butenko87d00c02018-09-05 19:11:17 +030096 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +030097 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +030098 ip_ranges:
99 dhcp: [+90, -10]
100
101 tenant-pool01:
102 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
103 params:
104 ip_reserved:
105 gateway: +1
106 l2_network_device: +1
107 default_{{ HOSTNAME_CFG01 }}: +100
108 default_{{ HOSTNAME_CTL01 }}: +101
109 default_{{ HOSTNAME_CTL02 }}: +102
110 default_{{ HOSTNAME_CTL03 }}: +103
111 default_{{ HOSTNAME_CMP01 }}: +105
112 default_{{ HOSTNAME_CMP02 }}: +106
113 default_{{ HOSTNAME_MON01 }}: +71
114 default_{{ HOSTNAME_MON02 }}: +72
115 default_{{ HOSTNAME_MON03 }}: +73
116 default_{{ HOSTNAME_LOG01 }}: +61
117 default_{{ HOSTNAME_LOG02 }}: +62
118 default_{{ HOSTNAME_LOG03 }}: +63
119 default_{{ HOSTNAME_MTR01 }}: +86
120 default_{{ HOSTNAME_MTR02 }}: +87
121 default_{{ HOSTNAME_MTR03 }}: +88
122 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +0300123 default_{{ HOSTNAME_DNS01 }}: +111
124 default_{{ HOSTNAME_DNS02 }}: +112
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300125 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300126 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300127 ip_ranges:
128 dhcp: [+10, -10]
129
130 external-pool01:
131 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
132 params:
133 ip_reserved:
134 gateway: +1
135 l2_network_device: +1
136 default_{{ HOSTNAME_CFG01 }}: +100
137 default_{{ HOSTNAME_CTL01 }}: +101
138 default_{{ HOSTNAME_CTL02 }}: +102
139 default_{{ HOSTNAME_CTL03 }}: +103
140 default_{{ HOSTNAME_CMP01 }}: +105
141 default_{{ HOSTNAME_CMP02 }}: +106
142 default_{{ HOSTNAME_MON01 }}: +71
143 default_{{ HOSTNAME_MON02 }}: +72
144 default_{{ HOSTNAME_MON03 }}: +73
145 default_{{ HOSTNAME_LOG01 }}: +61
146 default_{{ HOSTNAME_LOG02 }}: +62
147 default_{{ HOSTNAME_LOG03 }}: +63
148 default_{{ HOSTNAME_MTR01 }}: +86
149 default_{{ HOSTNAME_MTR02 }}: +87
150 default_{{ HOSTNAME_MTR03 }}: +88
151 default_{{ HOSTNAME_GTW01 }}: +110
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +0300152 default_{{ HOSTNAME_DNS01 }}: +111
153 default_{{ HOSTNAME_DNS02 }}: +112
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300154 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300155 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300156 ip_ranges:
Oleksii Butenkoffc09222018-09-21 12:37:16 +0300157 dhcp: [+130, +220]
Oleksii Butenko87d00c02018-09-05 19:11:17 +0300158
159
160 groups:
161 - name: default
162 driver:
163 name: devops.driver.libvirt
164 params:
165 connection_string: !os_env CONNECTION_STRING, qemu:///system
166 storage_pool_name: !os_env STORAGE_POOL_NAME, default
167 stp: False
168 hpet: False
169 enable_acpi: true
170 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
171 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
172
173 network_pools:
174 admin: admin-pool01
175 private: private-pool01
176 tenant: tenant-pool01
177 external: external-pool01
178
179 l2_network_devices:
180 private:
181 address_pool: private-pool01
182 dhcp: false
183 forward:
184 mode: route
185
186 admin:
187 address_pool: admin-pool01
188 dhcp: true
189 forward:
190 mode: nat
191
192 tenant:
193 address_pool: tenant-pool01
194 dhcp: false
195
196 external:
197 address_pool: external-pool01
198 dhcp: false
199 forward:
200 mode: route
201
202
203 group_volumes:
204 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
205 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
206 format: qcow2
207 - name: cfg01_day01_image # Pre-configured day01 image
208 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
209 format: qcow2
210 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
211 source_image: !os_env MCP_IMAGE_PATH1604
212 format: qcow2
213
214 nodes:
215 - name: {{ HOSTNAME_CFG01 }}
216 role: salt_master
217 params:
218 vcpu: !os_env SLAVE_NODE_CPU, 2
219 memory: !os_env SLAVE_NODE_MEMORY, 8192
220 boot:
221 - hd
222 cloud_init_volume_name: iso
223 cloud_init_iface_up: ens3
224 volumes:
225 - name: system
226 capacity: !os_env NODE_VOLUME_SIZE, 150
227 backing_store: cfg01_day01_image
228 format: qcow2
229 - name: iso # Volume with name 'iso' will be used
230 # for store image with cloud-init metadata.
231 capacity: 1
232 format: raw
233 device: cdrom
234 bus: ide
235 cloudinit_meta_data: *cloudinit_meta_data
236 cloudinit_user_data: *cloudinit_user_data_cfg01
237
238 interfaces:
239 - label: ens3
240 l2_network_device: admin
241 interface_model: *interface_model
242 - label: ens4
243 l2_network_device: private
244 interface_model: *interface_model
245 network_config:
246 ens3:
247 networks:
248 - admin
249 ens4:
250 networks:
251 - private
252
253 - name: {{ HOSTNAME_CTL01 }}
254 role: salt_minion
255 params:
256 vcpu: !os_env SLAVE_NODE_CPU, 2
257 memory: !os_env SLAVE_NODE_MEMORY, 16384
258 boot:
259 - hd
260 cloud_init_volume_name: iso
261 cloud_init_iface_up: ens3
262 volumes:
263 - name: system
264 capacity: !os_env NODE_VOLUME_SIZE, 150
265 backing_store: mcp_ubuntu_1604_image
266 format: qcow2
267 - name: cinder
268 capacity: 50
269 format: qcow2
270 - name: iso # Volume with name 'iso' will be used
271 # for store image with cloud-init metadata.
272 capacity: 1
273 format: raw
274 device: cdrom
275 bus: ide
276 cloudinit_meta_data: *cloudinit_meta_data
277 cloudinit_user_data: *cloudinit_user_data_1604
278
279 interfaces: &interfaces
280 - label: ens3
281 l2_network_device: admin
282 interface_model: *interface_model
283 - label: ens4
284 l2_network_device: private
285 interface_model: *interface_model
286 network_config: &network_config
287 ens3:
288 networks:
289 - admin
290 ens4:
291 networks:
292 - private
293
294 - name: {{ HOSTNAME_CTL02 }}
295 role: salt_minion
296 params:
297 vcpu: !os_env SLAVE_NODE_CPU, 2
298 memory: !os_env SLAVE_NODE_MEMORY, 16384
299 boot:
300 - hd
301 cloud_init_volume_name: iso
302 cloud_init_iface_up: ens3
303 volumes:
304 - name: system
305 capacity: !os_env NODE_VOLUME_SIZE, 150
306 backing_store: mcp_ubuntu_1604_image
307 format: qcow2
308 - name: cinder
309 capacity: 50
310 format: qcow2
311 - name: iso # Volume with name 'iso' will be used
312 # for store image with cloud-init metadata.
313 capacity: 1
314 format: raw
315 device: cdrom
316 bus: ide
317 cloudinit_meta_data: *cloudinit_meta_data
318 cloudinit_user_data: *cloudinit_user_data_1604
319
320 interfaces: *interfaces
321 network_config: *network_config
322
323 - name: {{ HOSTNAME_CTL03 }}
324 role: salt_minion
325 params:
326 vcpu: !os_env SLAVE_NODE_CPU, 2
327 memory: !os_env SLAVE_NODE_MEMORY, 16384
328 boot:
329 - hd
330 cloud_init_volume_name: iso
331 cloud_init_iface_up: ens3
332 volumes:
333 - name: system
334 capacity: !os_env NODE_VOLUME_SIZE, 150
335 backing_store: mcp_ubuntu_1604_image
336 format: qcow2
337 - name: cinder
338 capacity: 50
339 format: qcow2
340 - name: iso # Volume with name 'iso' will be used
341 # for store image with cloud-init metadata.
342 capacity: 1
343 format: raw
344 device: cdrom
345 bus: ide
346 cloudinit_meta_data: *cloudinit_meta_data
347 cloudinit_user_data: *cloudinit_user_data_1604
348
349 interfaces: *interfaces
350 network_config: *network_config
351
352 - name: {{ HOSTNAME_MON01 }}
353 role: salt_minion
354 params:
355 vcpu: !os_env SLAVE_NODE_CPU, 2
356 memory: !os_env SLAVE_NODE_MEMORY, 4096
357 boot:
358 - hd
359 cloud_init_volume_name: iso
360 cloud_init_iface_up: ens3
361 volumes:
362 - name: system
363 capacity: !os_env NODE_VOLUME_SIZE, 150
364 backing_store: mcp_ubuntu_1604_image
365 format: qcow2
366 - name: iso # Volume with name 'iso' will be used
367 # for store image with cloud-init metadata.
368 capacity: 1
369 format: raw
370 device: cdrom
371 bus: ide
372 cloudinit_meta_data: *cloudinit_meta_data
373 cloudinit_user_data: *cloudinit_user_data_1604
374
375 interfaces: *interfaces
376 network_config: *network_config
377
378 - name: {{ HOSTNAME_MON02 }}
379 role: salt_minion
380 params:
381 vcpu: !os_env SLAVE_NODE_CPU, 2
382 memory: !os_env SLAVE_NODE_MEMORY, 4096
383 boot:
384 - hd
385 cloud_init_volume_name: iso
386 cloud_init_iface_up: ens3
387 volumes:
388 - name: system
389 capacity: !os_env NODE_VOLUME_SIZE, 150
390 backing_store: mcp_ubuntu_1604_image
391 format: qcow2
392 - name: iso # Volume with name 'iso' will be used
393 # for store image with cloud-init metadata.
394 capacity: 1
395 format: raw
396 device: cdrom
397 bus: ide
398 cloudinit_meta_data: *cloudinit_meta_data
399 cloudinit_user_data: *cloudinit_user_data_1604
400
401 interfaces: *interfaces
402 network_config: *network_config
403
404 - name: {{ HOSTNAME_MON03 }}
405 role: salt_minion
406 params:
407 vcpu: !os_env SLAVE_NODE_CPU, 2
408 memory: !os_env SLAVE_NODE_MEMORY, 4096
409 boot:
410 - hd
411 cloud_init_volume_name: iso
412 cloud_init_iface_up: ens3
413 volumes:
414 - name: system
415 capacity: !os_env NODE_VOLUME_SIZE, 150
416 backing_store: mcp_ubuntu_1604_image
417 format: qcow2
418 - name: iso # Volume with name 'iso' will be used
419 # for store image with cloud-init metadata.
420 capacity: 1
421 format: raw
422 device: cdrom
423 bus: ide
424 cloudinit_meta_data: *cloudinit_meta_data
425 cloudinit_user_data: *cloudinit_user_data_1604
426
427 interfaces: *interfaces
428 network_config: *network_config
429
430 - name: {{ HOSTNAME_LOG01 }}
431 role: salt_minion
432 params:
433 vcpu: !os_env SLAVE_NODE_CPU, 2
434 memory: !os_env SLAVE_NODE_MEMORY, 4096
435 boot:
436 - hd
437 cloud_init_volume_name: iso
438 cloud_init_iface_up: ens3
439 volumes:
440 - name: system
441 capacity: !os_env NODE_VOLUME_SIZE, 150
442 backing_store: mcp_ubuntu_1604_image
443 format: qcow2
444 - name: iso # Volume with name 'iso' will be used
445 # for store image with cloud-init metadata.
446 capacity: 1
447 format: raw
448 device: cdrom
449 bus: ide
450 cloudinit_meta_data: *cloudinit_meta_data
451 cloudinit_user_data: *cloudinit_user_data_1604
452
453 interfaces: *interfaces
454 network_config: *network_config
455
456 - name: {{ HOSTNAME_LOG02 }}
457 role: salt_minion
458 params:
459 vcpu: !os_env SLAVE_NODE_CPU, 2
460 memory: !os_env SLAVE_NODE_MEMORY, 4096
461 boot:
462 - hd
463 cloud_init_volume_name: iso
464 cloud_init_iface_up: ens3
465 volumes:
466 - name: system
467 capacity: !os_env NODE_VOLUME_SIZE, 150
468 backing_store: mcp_ubuntu_1604_image
469 format: qcow2
470 - name: iso # Volume with name 'iso' will be used
471 # for store image with cloud-init metadata.
472 capacity: 1
473 format: raw
474 device: cdrom
475 bus: ide
476 cloudinit_meta_data: *cloudinit_meta_data
477 cloudinit_user_data: *cloudinit_user_data_1604
478
479 interfaces: *interfaces
480 network_config: *network_config
481
482 - name: {{ HOSTNAME_LOG03 }}
483 role: salt_minion
484 params:
485 vcpu: !os_env SLAVE_NODE_CPU, 2
486 memory: !os_env SLAVE_NODE_MEMORY, 4096
487 boot:
488 - hd
489 cloud_init_volume_name: iso
490 cloud_init_iface_up: ens3
491 volumes:
492 - name: system
493 capacity: !os_env NODE_VOLUME_SIZE, 150
494 backing_store: mcp_ubuntu_1604_image
495 format: qcow2
496 - name: iso # Volume with name 'iso' will be used
497 # for store image with cloud-init metadata.
498 capacity: 1
499 format: raw
500 device: cdrom
501 bus: ide
502 cloudinit_meta_data: *cloudinit_meta_data
503 cloudinit_user_data: *cloudinit_user_data_1604
504
505 interfaces: *interfaces
506 network_config: *network_config
507
508 - name: {{ HOSTNAME_MTR01 }}
509 role: salt_minion
510 params:
511 vcpu: !os_env SLAVE_NODE_CPU, 2
512 memory: !os_env SLAVE_NODE_MEMORY, 4096
513 boot:
514 - hd
515 cloud_init_volume_name: iso
516 cloud_init_iface_up: ens3
517 volumes:
518 - name: system
519 capacity: !os_env NODE_VOLUME_SIZE, 150
520 backing_store: mcp_ubuntu_1604_image
521 format: qcow2
522 - name: iso # Volume with name 'iso' will be used
523 # for store image with cloud-init metadata.
524 capacity: 1
525 format: raw
526 device: cdrom
527 bus: ide
528 cloudinit_meta_data: *cloudinit_meta_data
529 cloudinit_user_data: *cloudinit_user_data_1604
530
531 interfaces: *interfaces
532 network_config: *network_config
533
534 - name: {{ HOSTNAME_MTR02 }}
535 role: salt_minion
536 params:
537 vcpu: !os_env SLAVE_NODE_CPU, 2
538 memory: !os_env SLAVE_NODE_MEMORY, 4096
539 boot:
540 - hd
541 cloud_init_volume_name: iso
542 cloud_init_iface_up: ens3
543 volumes:
544 - name: system
545 capacity: !os_env NODE_VOLUME_SIZE, 150
546 backing_store: mcp_ubuntu_1604_image
547 format: qcow2
548 - name: iso # Volume with name 'iso' will be used
549 # for store image with cloud-init metadata.
550 capacity: 1
551 format: raw
552 device: cdrom
553 bus: ide
554 cloudinit_meta_data: *cloudinit_meta_data
555 cloudinit_user_data: *cloudinit_user_data_1604
556
557 interfaces: *interfaces
558 network_config: *network_config
559
560 - name: {{ HOSTNAME_MTR03 }}
561 role: salt_minion
562 params:
563 vcpu: !os_env SLAVE_NODE_CPU, 2
564 memory: !os_env SLAVE_NODE_MEMORY, 4096
565 boot:
566 - hd
567 cloud_init_volume_name: iso
568 cloud_init_iface_up: ens3
569 volumes:
570 - name: system
571 capacity: !os_env NODE_VOLUME_SIZE, 150
572 backing_store: mcp_ubuntu_1604_image
573 format: qcow2
574 - name: iso # Volume with name 'iso' will be used
575 # for store image with cloud-init metadata.
576 capacity: 1
577 format: raw
578 device: cdrom
579 bus: ide
580 cloudinit_meta_data: *cloudinit_meta_data
581 cloudinit_user_data: *cloudinit_user_data_1604
582
583 interfaces: *interfaces
584 network_config: *network_config
585
586 - name: {{ HOSTNAME_PRX01 }}
587 role: salt_minion
588 params:
589 vcpu: !os_env SLAVE_NODE_CPU, 1
590 memory: !os_env SLAVE_NODE_MEMORY, 2048
591 boot:
592 - hd
593 cloud_init_volume_name: iso
594 cloud_init_iface_up: ens3
595 volumes:
596 - name: system
597 capacity: !os_env NODE_VOLUME_SIZE, 150
598 backing_store: mcp_ubuntu_1604_image
599 format: qcow2
600 - name: cinder
601 capacity: 50
602 format: qcow2
603 - name: iso # Volume with name 'iso' will be used
604 # for store image with cloud-init metadata.
605 capacity: 1
606 format: raw
607 device: cdrom
608 bus: ide
609 cloudinit_meta_data: *cloudinit_meta_data
610 cloudinit_user_data: *cloudinit_user_data_1604
611
612 interfaces: *interfaces
613 network_config: *network_config
614
615 - name: {{ HOSTNAME_CMP01 }}
616 role: salt_minion
617 params:
618 vcpu: !os_env SLAVE_NODE_CPU, 3
619 memory: !os_env SLAVE_NODE_MEMORY, 4096
620 boot:
621 - hd
622 cloud_init_volume_name: iso
623 cloud_init_iface_up: ens3
624 volumes:
625 - name: system
626 capacity: !os_env NODE_VOLUME_SIZE, 150
627 backing_store: cloudimage1604
628 format: qcow2
629 - name: iso # Volume with name 'iso' will be used
630 # for store image with cloud-init metadata.
631 capacity: 1
632 format: raw
633 device: cdrom
634 bus: ide
635 cloudinit_meta_data: *cloudinit_meta_data
636 cloudinit_user_data: *cloudinit_user_data_1604
637
638
639 interfaces: &all_interfaces
640 - label: ens3
641 l2_network_device: admin
642 interface_model: *interface_model
643 - label: ens4
644 l2_network_device: private
645 interface_model: *interface_model
646 - label: ens5
647 l2_network_device: tenant
648 interface_model: *interface_model
649 - label: ens6
650 l2_network_device: external
651 interface_model: *interface_model
652 network_config: &all_network_config
653 ens3:
654 networks:
655 - admin
656 ens4:
657 networks:
658 - private
659 ens5:
660 networks:
661 - tenant
662 ens6:
663 networks:
664 - external
665
666 - name: {{ HOSTNAME_CMP02 }}
667 role: salt_minion
668 params:
669 vcpu: !os_env SLAVE_NODE_CPU, 3
670 memory: !os_env SLAVE_NODE_MEMORY, 4096
671 boot:
672 - hd
673 cloud_init_volume_name: iso
674 cloud_init_iface_up: ens3
675 volumes:
676 - name: system
677 capacity: !os_env NODE_VOLUME_SIZE, 150
678 backing_store: cloudimage1604
679 format: qcow2
680 - name: iso # Volume with name 'iso' will be used
681 # for store image with cloud-init metadata.
682 capacity: 1
683 format: raw
684 device: cdrom
685 bus: ide
686 cloudinit_meta_data: *cloudinit_meta_data
687 cloudinit_user_data: *cloudinit_user_data_1604
688
689 interfaces: *all_interfaces
690 network_config: *all_network_config
691
692 - name: {{ HOSTNAME_GTW01 }}
693 role: salt_minion
694 params:
695 vcpu: !os_env SLAVE_NODE_CPU, 4
696 memory: !os_env SLAVE_NODE_MEMORY, 4096
697 boot:
698 - hd
699 cloud_init_volume_name: iso
700 cloud_init_iface_up: ens3
701 volumes:
702 - name: system
703 capacity: !os_env NODE_VOLUME_SIZE, 150
704 backing_store: cloudimage1604
705 format: qcow2
706 - name: iso # Volume with name 'iso' will be used
707 # for store image with cloud-init metadata.
708 capacity: 1
709 format: raw
710 device: cdrom
711 bus: ide
712 cloudinit_meta_data: *cloudinit_meta_data
713 cloudinit_user_data: *cloudinit_user_data_1604
714
715 interfaces: *all_interfaces
716 network_config: *all_network_config
Oleksii Butenkoe0fc5f22018-09-25 14:29:42 +0300717
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +0300718 - name: {{ HOSTNAME_DNS01 }}
719 role: salt_minion
720 params:
721 vcpu: !os_env SLAVE_NODE_CPU, 1
722 memory: !os_env SLAVE_NODE_MEMORY, 2048
723 boot:
724 - hd
725 cloud_init_volume_name: iso
726 cloud_init_iface_up: ens3
727 volumes:
728 - name: system
729 capacity: !os_env NODE_VOLUME_SIZE, 150
730 backing_store: mcp_ubuntu_1604_image
731 format: qcow2
732 - name: iso # Volume with name 'iso' will be used
733 # for store image with cloud-init metadata.
734 capacity: 1
735 format: raw
736 device: cdrom
737 bus: ide
738 cloudinit_meta_data: *cloudinit_meta_data
739 cloudinit_user_data: *cloudinit_user_data_1604
740
741 interfaces: *all_interfaces
742 network_config: *all_network_config
743
744 - name: {{ HOSTNAME_DNS02 }}
745 role: salt_minion
746 params:
747 vcpu: !os_env SLAVE_NODE_CPU, 1
748 memory: !os_env SLAVE_NODE_MEMORY, 2048
749 boot:
750 - hd
751 cloud_init_volume_name: iso
752 cloud_init_iface_up: ens3
753 volumes:
754 - name: system
755 capacity: !os_env NODE_VOLUME_SIZE, 150
756 backing_store: mcp_ubuntu_1604_image
757 format: qcow2
758 - name: iso # Volume with name 'iso' will be used
759 # for store image with cloud-init metadata.
760 capacity: 1
761 format: raw
762 device: cdrom
763 bus: ide
764 cloudinit_meta_data: *cloudinit_meta_data
765 cloudinit_user_data: *cloudinit_user_data_1604
766
767 interfaces: *all_interfaces
768 network_config: *all_network_config
Oleksii Butenkof57d1ff2018-09-28 17:59:45 +0300769
770 - name: {{ HOSTNAME_SHARE01 }}
771 role: salt_minion
772 params:
773 vcpu: !os_env SLAVE_NODE_CPU, 2
774 memory: !os_env SLAVE_NODE_MEMORY, 4096
775 boot:
776 - hd
777 cloud_init_volume_name: iso
778 cloud_init_iface_up: ens3
779 volumes:
780 - name: system
781 capacity: !os_env NODE_VOLUME_SIZE, 150
782 backing_store: mcp_ubuntu_1604_image
783 format: qcow2
784 - name: iso # Volume with name 'iso' will be used
785 # for store image with cloud-init metadata.
786 capacity: 1
787 format: raw
788 device: cdrom
789 bus: ide
790 cloudinit_meta_data: *cloudinit_meta_data
791 cloudinit_user_data: *cloudinit_user_data_1604
792
793 interfaces: *all_interfaces
794 network_config: *all_network_config