blob: b51cd5e3043a90756c40e830ac77525e9565ef99 [file] [log] [blame]
Dennis Dmitriev0f624a82018-06-11 12:57:13 +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{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-k8s-calico-sl') %}
5{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Dennis Dmitriev06fac232018-07-19 13:20:53 +03006{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01') %}
7{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01') %}
8{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02') %}
9{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03') %}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030010
Dennis Dmitriev06fac232018-07-19 13:20:53 +030011{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01') %}
12{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02') %}
13{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03') %}
14{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001') %}
15{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002') %}
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +030016{% set HOSTNAME_CMP03 = os_env('HOSTNAME_CMP03', 'cmp003') %}
17{% set HOSTNAME_CMP04 = os_env('HOSTNAME_CMP04', 'cmp004') %}
Dennis Dmitriev06fac232018-07-19 13:20:53 +030018{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01') %}
19{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02') %}
20{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03') %}
21{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01') %}
22{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02') %}
23{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03') %}
24{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01') %}
25{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02') %}
26{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03') %}
27{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01') %}
28{% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01') %}
29{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02') %}
30{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03') %}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030031
32{% import 'cookied-cicd-k8s-calico-sl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
33{% import 'cookied-cicd-k8s-calico-sl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
34{% import 'cookied-cicd-k8s-calico-sl/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
35{% import 'cookied-cicd-k8s-calico-sl/underlay--user-data1604-swp.yaml' as CLOUDINIT_USER_DATA_1604_SWP with context %}
36
37---
38aliases:
39 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
40 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
41 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
42 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
43 - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }}
44
45template:
46 devops_settings:
47 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
48
49 address_pools:
50 private-pool01:
51 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
52 params:
53 ip_reserved:
54 gateway: +1
55 l2_network_device: +1
56 default_{{ HOSTNAME_CFG01 }}: +15
57
58 default_{{ HOSTNAME_CID }}: +90
59 default_{{ HOSTNAME_CID01 }}: +91
60 default_{{ HOSTNAME_CID02 }}: +92
61 default_{{ HOSTNAME_CID03 }}: +93
62
63 ip_ranges:
64 dhcp: [+90, -10]
65
66 admin-pool01:
67 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
68 params:
69 ip_reserved:
70 gateway: +1
71 l2_network_device: +1
72 default_{{ HOSTNAME_CFG01 }}: +15
73
74 default_{{ HOSTNAME_CID }}: +90
75 default_{{ HOSTNAME_CID01 }}: +91
76 default_{{ HOSTNAME_CID02 }}: +92
77 default_{{ HOSTNAME_CID03 }}: +93
78
79 default_{{ HOSTNAME_CTL }}: +10
80 default_{{ HOSTNAME_CTL01 }}: +11
81 default_{{ HOSTNAME_CTL02 }}: +12
82 default_{{ HOSTNAME_CTL03 }}: +13
83 default_{{ HOSTNAME_CMP01 }}: +101
84 default_{{ HOSTNAME_CMP02 }}: +102
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +030085 default_{{ HOSTNAME_CMP03 }}: +103
86 default_{{ HOSTNAME_CMP04 }}: +104
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030087 default_{{ HOSTNAME_LOG }}: +60
88 default_{{ HOSTNAME_LOG01 }}: +61
89 default_{{ HOSTNAME_LOG02 }}: +62
90 default_{{ HOSTNAME_LOG03 }}: +63
91 default_{{ HOSTNAME_MON }}: +70
92 default_{{ HOSTNAME_MON01 }}: +71
93 default_{{ HOSTNAME_MON02 }}: +72
94 default_{{ HOSTNAME_MON03 }}: +73
95 default_{{ HOSTNAME_MTR }}: +85
96 default_{{ HOSTNAME_MTR01 }}: +86
97 default_{{ HOSTNAME_MTR02 }}: +87
98 default_{{ HOSTNAME_MTR03 }}: +88
99 default_{{ HOSTNAME_PRX01 }}: +222
100 default_{{ HOSTNAME_KVM }}: +240
101 default_{{ HOSTNAME_KVM01 }}: +241
102 default_{{ HOSTNAME_KVM02 }}: +242
103 default_{{ HOSTNAME_KVM03 }}: +243
104
105 ip_ranges:
106 dhcp: [+90, -10]
107
108 tenant-pool01:
109 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
110 params:
111 ip_reserved:
112 gateway: +1
113 l2_network_device: +1
114 default_{{ HOSTNAME_CFG01 }}: +15
115
116 default_{{ HOSTNAME_CID }}: +90
117 default_{{ HOSTNAME_CID01 }}: +91
118 default_{{ HOSTNAME_CID02 }}: +92
119 default_{{ HOSTNAME_CID03 }}: +93
120
121 ip_ranges:
122 dhcp: [+10, -10]
123
124 external-pool01:
125 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
126 params:
127 ip_reserved:
128 gateway: +1
129 l2_network_device: +1
130 default_{{ HOSTNAME_CFG01 }}: +15
131
132 default_{{ HOSTNAME_CID }}: +90
133 default_{{ HOSTNAME_CID01 }}: +91
134 default_{{ HOSTNAME_CID02 }}: +92
135 default_{{ HOSTNAME_CID03 }}: +93
136
137 ip_ranges:
138 dhcp: [+10, -10]
139
140
141 groups:
142 - name: default
143 driver:
144 name: devops.driver.libvirt
145 params:
146 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
147 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
148 stp: False
149 hpet: False
150 enable_acpi: true
151 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
152 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
153
154 network_pools:
155 admin: admin-pool01
156 private: private-pool01
157 tenant: tenant-pool01
158 external: external-pool01
159
160 l2_network_devices:
161 admin:
162 address_pool: admin-pool01
163 dhcp: true
164 forward:
165 mode: nat
166
167 private:
168 address_pool: private-pool01
169 dhcp: false
170 forward:
171 mode: route
172
173 external:
174 address_pool: external-pool01
175 dhcp: false
176 forward:
177 mode: nat
178
179
180 group_volumes:
181 - name: cfg01_day01_image # Pre-configured day01 image
182 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
183 format: qcow2
184 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
185 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
186 # or
187 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
188 source_image: {{ os_env('MCP_IMAGE_PATH1604') }}
189 format: qcow2
190
191 nodes:
192 - name: {{ HOSTNAME_CFG01 }}
193 role: salt_master
194 params:
195 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
196 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
197 boot:
198 - hd
199 cloud_init_volume_name: iso
200 cloud_init_iface_up: ens3
201 volumes:
202 - name: system
203 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
204 backing_store: cfg01_day01_image
205 format: qcow2
206 - name: config
207 capacity: 1
208 format: raw
209 device: cdrom
210 bus: ide
211 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
212 # it will be uploaded after config drive generation
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_cfg01
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 network_config:
230 ens3:
231 networks:
232 - admin
233 ens4:
234 networks:
235 - private
236
237 - name: {{ HOSTNAME_KVM01 }}
238 role: salt_minion
239 params:
240 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
241 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
242 boot:
243 - hd
244 cloud_init_volume_name: iso
245 cloud_init_iface_up: ens3
246 volumes:
247 - name: system
248 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
249 backing_store: mcp_ubuntu_1604_image
250 format: qcow2
251 - name: iso # Volume with name 'iso' will be used
252 # for store image with cloud-init metadata.
253 capacity: 1
254 format: raw
255 device: cdrom
256 bus: ide
257 cloudinit_meta_data: *cloudinit_meta_data
258 cloudinit_user_data: *cloudinit_user_data_1604_swp
259
260 interfaces: &interfaces
261 - label: ens3
262 l2_network_device: admin
263 interface_model: *interface_model
264 - label: ens4
265 l2_network_device: private
266 interface_model: *interface_model
267 network_config: &network_config
268 ens3:
269 networks:
270 - admin
271 ens4:
272 networks:
273 - private
274
275 - name: {{ HOSTNAME_KVM02 }}
276 role: salt_minion
277 params:
278 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
279 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
280 boot:
281 - hd
282 cloud_init_volume_name: iso
283 cloud_init_iface_up: ens3
284 volumes:
285 - name: system
286 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
287 backing_store: mcp_ubuntu_1604_image
288 format: qcow2
289 - name: iso # Volume with name 'iso' will be used
290 # for store image with cloud-init metadata.
291 capacity: 1
292 format: raw
293 device: cdrom
294 bus: ide
295 cloudinit_meta_data: *cloudinit_meta_data
296 cloudinit_user_data: *cloudinit_user_data_1604_swp
297
298 interfaces: *interfaces
299 network_config: *network_config
300
301 - name: {{ HOSTNAME_KVM03 }}
302 role: salt_minion
303 params:
304 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
305 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
306 boot:
307 - hd
308 cloud_init_volume_name: iso
309 cloud_init_iface_up: ens3
310 volumes:
311 - name: system
312 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
313 backing_store: mcp_ubuntu_1604_image
314 format: qcow2
315 - name: iso # Volume with name 'iso' will be used
316 # for store image with cloud-init metadata.
317 capacity: 1
318 format: raw
319 device: cdrom
320 bus: ide
321 cloudinit_meta_data: *cloudinit_meta_data
322 cloudinit_user_data: *cloudinit_user_data_1604_swp
323
324 interfaces: *interfaces
325 network_config: *network_config
326
327 - name: {{ HOSTNAME_CID01 }}
328 role: salt_minion
329 params:
330 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
331 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
332 boot:
333 - hd
334 cloud_init_volume_name: iso
335 cloud_init_iface_up: ens3
336 volumes:
337 - name: system
338 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
339 backing_store: mcp_ubuntu_1604_image
340 format: qcow2
341 - name: iso # Volume with name 'iso' will be used
342 # for store image with cloud-init metadata.
343 capacity: 1
344 format: raw
345 device: cdrom
346 bus: ide
347 cloudinit_meta_data: *cloudinit_meta_data
348 cloudinit_user_data: *cloudinit_user_data_1604_swp
349
350 interfaces: *interfaces
351 network_config: *network_config
352
353 - name: {{ HOSTNAME_CID02 }}
354 role: salt_minion
355 params:
356 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
357 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
358 boot:
359 - hd
360 cloud_init_volume_name: iso
361 cloud_init_iface_up: ens3
362 volumes:
363 - name: system
364 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
365 backing_store: mcp_ubuntu_1604_image
366 format: qcow2
367 - name: iso # Volume with name 'iso' will be used
368 # for store image with cloud-init metadata.
369 capacity: 1
370 format: raw
371 device: cdrom
372 bus: ide
373 cloudinit_meta_data: *cloudinit_meta_data
374 cloudinit_user_data: *cloudinit_user_data_1604_swp
375
376 interfaces: *interfaces
377 network_config: *network_config
378
379 - name: {{ HOSTNAME_CID03 }}
380 role: salt_minion
381 params:
382 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
383 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
384 boot:
385 - hd
386 cloud_init_volume_name: iso
387 cloud_init_iface_up: ens3
388 volumes:
389 - name: system
390 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
391 backing_store: mcp_ubuntu_1604_image
392 format: qcow2
393 - name: iso # Volume with name 'iso' will be used
394 # for store image with cloud-init metadata.
395 capacity: 1
396 format: raw
397 device: cdrom
398 bus: ide
399 cloudinit_meta_data: *cloudinit_meta_data
400 cloudinit_user_data: *cloudinit_user_data_1604_swp
401
402 interfaces: *interfaces
403 network_config: *network_config
404
405 - name: {{ HOSTNAME_CTL01 }}
406 role: k8s_controller
407 params:
408 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300409 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300410 boot:
411 - hd
412 cloud_init_volume_name: iso
413 cloud_init_iface_up: ens3
414 volumes:
415 - name: system
416 capacity: !os_env NODE_VOLUME_SIZE, 150
417 backing_store: mcp_ubuntu_1604_image
418 format: qcow2
419 - name: cinder
420 capacity: 50
421 format: qcow2
422 - name: iso # Volume with name 'iso' will be used
423 # for store image with cloud-init metadata.
424 capacity: 1
425 format: raw
426 device: cdrom
427 bus: ide
428 cloudinit_meta_data: *cloudinit_meta_data
429 cloudinit_user_data: *cloudinit_user_data_1604
430
431 interfaces: *interfaces
432 network_config: *network_config
433
434 - name: {{ HOSTNAME_CTL02 }}
435 role: salt_minion
436 params:
437 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300438 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300439 boot:
440 - hd
441 cloud_init_volume_name: iso
442 cloud_init_iface_up: ens3
443 volumes:
444 - name: system
445 capacity: !os_env NODE_VOLUME_SIZE, 150
446 backing_store: mcp_ubuntu_1604_image
447 format: qcow2
448 - name: cinder
449 capacity: 50
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_CTL03 }}
464 role: salt_minion
465 params:
466 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300467 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300468 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: cinder
478 capacity: 50
479 format: qcow2
480 - name: iso # Volume with name 'iso' will be used
481 # for store image with cloud-init metadata.
482 capacity: 1
483 format: raw
484 device: cdrom
485 bus: ide
486 cloudinit_meta_data: *cloudinit_meta_data
487 cloudinit_user_data: *cloudinit_user_data_1604
488
489 interfaces: *interfaces
490 network_config: *network_config
491
492 - name: {{ HOSTNAME_CMP01 }}
493 role: salt_minion
494 params:
495 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300496 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300497 boot:
498 - hd
499 cloud_init_volume_name: iso
500 cloud_init_iface_up: ens3
501 volumes:
502 - name: system
503 capacity: !os_env NODE_VOLUME_SIZE, 150
504 backing_store: mcp_ubuntu_1604_image
505 format: qcow2
506 - name: iso # Volume with name 'iso' will be used
507 # for store image with cloud-init metadata.
508 capacity: 1
509 format: raw
510 device: cdrom
511 bus: ide
512 cloudinit_meta_data: *cloudinit_meta_data
513 cloudinit_user_data: *cloudinit_user_data_1604
514
515 interfaces: *interfaces
516 network_config: *network_config
517
518 - name: {{ HOSTNAME_CMP02 }}
519 role: salt_minion
520 params:
521 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300522 memory: !os_env SLAVE_NODE_MEMORY, 4096
523 boot:
524 - hd
525 cloud_init_volume_name: iso
526 cloud_init_iface_up: ens3
527 volumes:
528 - name: system
529 capacity: !os_env NODE_VOLUME_SIZE, 150
530 backing_store: mcp_ubuntu_1604_image
531 format: qcow2
532 - name: iso # Volume with name 'iso' will be used
533 # for store image with cloud-init metadata.
534 capacity: 1
535 format: raw
536 device: cdrom
537 bus: ide
538 cloudinit_meta_data: *cloudinit_meta_data
539 cloudinit_user_data: *cloudinit_user_data_1604
540
541 interfaces: *interfaces
542 network_config: *network_config
543
544 - name: {{ HOSTNAME_CMP03 }}
545 role: salt_minion
546 params:
547 vcpu: !os_env SLAVE_NODE_CPU, 2
548 memory: !os_env SLAVE_NODE_MEMORY, 4096
549 boot:
550 - hd
551 cloud_init_volume_name: iso
552 cloud_init_iface_up: ens3
553 volumes:
554 - name: system
555 capacity: !os_env NODE_VOLUME_SIZE, 150
556 backing_store: mcp_ubuntu_1604_image
557 format: qcow2
558 - name: iso # Volume with name 'iso' will be used
559 # for store image with cloud-init metadata.
560 capacity: 1
561 format: raw
562 device: cdrom
563 bus: ide
564 cloudinit_meta_data: *cloudinit_meta_data
565 cloudinit_user_data: *cloudinit_user_data_1604
566
567 interfaces: *interfaces
568 network_config: *network_config
569
570 - name: {{ HOSTNAME_CMP04 }}
571 role: salt_minion
572 params:
573 vcpu: !os_env SLAVE_NODE_CPU, 2
574 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300575 boot:
576 - hd
577 cloud_init_volume_name: iso
578 cloud_init_iface_up: ens3
579 volumes:
580 - name: system
581 capacity: !os_env NODE_VOLUME_SIZE, 150
582 backing_store: mcp_ubuntu_1604_image
583 format: qcow2
584 - name: iso # Volume with name 'iso' will be used
585 # for store image with cloud-init metadata.
586 capacity: 1
587 format: raw
588 device: cdrom
589 bus: ide
590 cloudinit_meta_data: *cloudinit_meta_data
591 cloudinit_user_data: *cloudinit_user_data_1604
592
593 interfaces: *interfaces
594 network_config: *network_config
595
596 - name: {{ HOSTNAME_MON01 }}
597 role: salt_minion
598 params:
599 vcpu: !os_env SLAVE_NODE_CPU, 2
600 memory: !os_env SLAVE_NODE_MEMORY, 4096
601 boot:
602 - hd
603 cloud_init_volume_name: iso
604 cloud_init_iface_up: ens3
605 volumes:
606 - name: system
607 capacity: !os_env NODE_VOLUME_SIZE, 150
608 backing_store: mcp_ubuntu_1604_image
609 format: qcow2
610 - name: iso # Volume with name 'iso' will be used
611 # for store image with cloud-init metadata.
612 capacity: 1
613 format: raw
614 device: cdrom
615 bus: ide
616 cloudinit_meta_data: *cloudinit_meta_data
617 cloudinit_user_data: *cloudinit_user_data_1604_swp
618
619 interfaces: *interfaces
620 network_config: *network_config
621
622 - name: {{ HOSTNAME_MON02 }}
623 role: salt_minion
624 params:
625 vcpu: !os_env SLAVE_NODE_CPU, 2
626 memory: !os_env SLAVE_NODE_MEMORY, 4096
627 boot:
628 - hd
629 cloud_init_volume_name: iso
630 cloud_init_iface_up: ens3
631 volumes:
632 - name: system
633 capacity: !os_env NODE_VOLUME_SIZE, 150
634 backing_store: mcp_ubuntu_1604_image
635 format: qcow2
636 - name: iso # Volume with name 'iso' will be used
637 # for store image with cloud-init metadata.
638 capacity: 1
639 format: raw
640 device: cdrom
641 bus: ide
642 cloudinit_meta_data: *cloudinit_meta_data
643 cloudinit_user_data: *cloudinit_user_data_1604_swp
644
645 interfaces: *interfaces
646 network_config: *network_config
647
648 - name: {{ HOSTNAME_MON03 }}
649 role: salt_minion
650 params:
651 vcpu: !os_env SLAVE_NODE_CPU, 2
652 memory: !os_env SLAVE_NODE_MEMORY, 4096
653 boot:
654 - hd
655 cloud_init_volume_name: iso
656 cloud_init_iface_up: ens3
657 volumes:
658 - name: system
659 capacity: !os_env NODE_VOLUME_SIZE, 150
660 backing_store: mcp_ubuntu_1604_image
661 format: qcow2
662 - name: iso # Volume with name 'iso' will be used
663 # for store image with cloud-init metadata.
664 capacity: 1
665 format: raw
666 device: cdrom
667 bus: ide
668 cloudinit_meta_data: *cloudinit_meta_data
669 cloudinit_user_data: *cloudinit_user_data_1604_swp
670
671 interfaces: *interfaces
672 network_config: *network_config
673
674 - name: {{ HOSTNAME_LOG01 }}
675 role: salt_minion
676 params:
677 vcpu: !os_env SLAVE_NODE_CPU, 2
678 memory: !os_env SLAVE_NODE_MEMORY, 4096
679 boot:
680 - hd
681 cloud_init_volume_name: iso
682 cloud_init_iface_up: ens3
683 volumes:
684 - name: system
685 capacity: !os_env NODE_VOLUME_SIZE, 150
686 backing_store: mcp_ubuntu_1604_image
687 format: qcow2
688 - name: iso # Volume with name 'iso' will be used
689 # for store image with cloud-init metadata.
690 capacity: 1
691 format: raw
692 device: cdrom
693 bus: ide
694 cloudinit_meta_data: *cloudinit_meta_data
695 cloudinit_user_data: *cloudinit_user_data_1604_swp
696
697 interfaces: *interfaces
698 network_config: *network_config
699
700 - name: {{ HOSTNAME_LOG02 }}
701 role: salt_minion
702 params:
703 vcpu: !os_env SLAVE_NODE_CPU, 2
704 memory: !os_env SLAVE_NODE_MEMORY, 4096
705 boot:
706 - hd
707 cloud_init_volume_name: iso
708 cloud_init_iface_up: ens3
709 volumes:
710 - name: system
711 capacity: !os_env NODE_VOLUME_SIZE, 150
712 backing_store: mcp_ubuntu_1604_image
713 format: qcow2
714 - name: iso # Volume with name 'iso' will be used
715 # for store image with cloud-init metadata.
716 capacity: 1
717 format: raw
718 device: cdrom
719 bus: ide
720 cloudinit_meta_data: *cloudinit_meta_data
721 cloudinit_user_data: *cloudinit_user_data_1604_swp
722
723 interfaces: *interfaces
724 network_config: *network_config
725
726 - name: {{ HOSTNAME_LOG03 }}
727 role: salt_minion
728 params:
729 vcpu: !os_env SLAVE_NODE_CPU, 2
730 memory: !os_env SLAVE_NODE_MEMORY, 4096
731 boot:
732 - hd
733 cloud_init_volume_name: iso
734 cloud_init_iface_up: ens3
735 volumes:
736 - name: system
737 capacity: !os_env NODE_VOLUME_SIZE, 150
738 backing_store: mcp_ubuntu_1604_image
739 format: qcow2
740 - name: iso # Volume with name 'iso' will be used
741 # for store image with cloud-init metadata.
742 capacity: 1
743 format: raw
744 device: cdrom
745 bus: ide
746 cloudinit_meta_data: *cloudinit_meta_data
747 cloudinit_user_data: *cloudinit_user_data_1604_swp
748
749 interfaces: *interfaces
750 network_config: *network_config
751
752 - name: {{ HOSTNAME_MTR01 }}
753 role: salt_minion
754 params:
755 vcpu: !os_env SLAVE_NODE_CPU, 2
756 memory: !os_env SLAVE_NODE_MEMORY, 4096
757 boot:
758 - hd
759 cloud_init_volume_name: iso
760 cloud_init_iface_up: ens3
761 volumes:
762 - name: system
763 capacity: !os_env NODE_VOLUME_SIZE, 150
764 backing_store: mcp_ubuntu_1604_image
765 format: qcow2
766 - name: iso # Volume with name 'iso' will be used
767 # for store image with cloud-init metadata.
768 capacity: 1
769 format: raw
770 device: cdrom
771 bus: ide
772 cloudinit_meta_data: *cloudinit_meta_data
773 cloudinit_user_data: *cloudinit_user_data_1604_swp
774
775 interfaces: *interfaces
776 network_config: *network_config
777
778 - name: {{ HOSTNAME_MTR02 }}
779 role: salt_minion
780 params:
781 vcpu: !os_env SLAVE_NODE_CPU, 2
782 memory: !os_env SLAVE_NODE_MEMORY, 4096
783 boot:
784 - hd
785 cloud_init_volume_name: iso
786 cloud_init_iface_up: ens3
787 volumes:
788 - name: system
789 capacity: !os_env NODE_VOLUME_SIZE, 150
790 backing_store: mcp_ubuntu_1604_image
791 format: qcow2
792 - name: iso # Volume with name 'iso' will be used
793 # for store image with cloud-init metadata.
794 capacity: 1
795 format: raw
796 device: cdrom
797 bus: ide
798 cloudinit_meta_data: *cloudinit_meta_data
799 cloudinit_user_data: *cloudinit_user_data_1604_swp
800
801 interfaces: *interfaces
802 network_config: *network_config
803
804 - name: {{ HOSTNAME_MTR03 }}
805 role: salt_minion
806 params:
807 vcpu: !os_env SLAVE_NODE_CPU, 2
808 memory: !os_env SLAVE_NODE_MEMORY, 4096
809 boot:
810 - hd
811 cloud_init_volume_name: iso
812 cloud_init_iface_up: ens3
813 volumes:
814 - name: system
815 capacity: !os_env NODE_VOLUME_SIZE, 150
816 backing_store: mcp_ubuntu_1604_image
817 format: qcow2
818 - name: iso # Volume with name 'iso' will be used
819 # for store image with cloud-init metadata.
820 capacity: 1
821 format: raw
822 device: cdrom
823 bus: ide
824 cloudinit_meta_data: *cloudinit_meta_data
825 cloudinit_user_data: *cloudinit_user_data_1604_swp
826
827 interfaces: *interfaces
828 network_config: *network_config