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