blob: c0ceb3d0ba342d70985b2ce76a970d49c72c7e9c [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
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300197 volumes:
198 - name: system
199 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
200 backing_store: cfg01_day01_image
201 format: qcow2
202 - name: config
203 capacity: 1
204 format: raw
205 device: cdrom
206 bus: ide
207 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
208 # it will be uploaded after config drive generation
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300209 interfaces:
210 - label: ens3
211 l2_network_device: admin
212 interface_model: *interface_model
213 - label: ens4
214 l2_network_device: private
215 interface_model: *interface_model
216 network_config:
217 ens3:
218 networks:
219 - admin
220 ens4:
221 networks:
222 - private
223
224 - name: {{ HOSTNAME_KVM01 }}
225 role: salt_minion
226 params:
227 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
228 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
229 boot:
230 - hd
231 cloud_init_volume_name: iso
232 cloud_init_iface_up: ens3
233 volumes:
234 - name: system
235 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
236 backing_store: mcp_ubuntu_1604_image
237 format: qcow2
238 - name: iso # Volume with name 'iso' will be used
239 # for store image with cloud-init metadata.
240 capacity: 1
241 format: raw
242 device: cdrom
243 bus: ide
244 cloudinit_meta_data: *cloudinit_meta_data
245 cloudinit_user_data: *cloudinit_user_data_1604_swp
246
247 interfaces: &interfaces
248 - label: ens3
249 l2_network_device: admin
250 interface_model: *interface_model
251 - label: ens4
252 l2_network_device: private
253 interface_model: *interface_model
254 network_config: &network_config
255 ens3:
256 networks:
257 - admin
258 ens4:
259 networks:
260 - private
261
262 - name: {{ HOSTNAME_KVM02 }}
263 role: salt_minion
264 params:
265 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
266 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
267 boot:
268 - hd
269 cloud_init_volume_name: iso
270 cloud_init_iface_up: ens3
271 volumes:
272 - name: system
273 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
274 backing_store: mcp_ubuntu_1604_image
275 format: qcow2
276 - name: iso # Volume with name 'iso' will be used
277 # for store image with cloud-init metadata.
278 capacity: 1
279 format: raw
280 device: cdrom
281 bus: ide
282 cloudinit_meta_data: *cloudinit_meta_data
283 cloudinit_user_data: *cloudinit_user_data_1604_swp
284
285 interfaces: *interfaces
286 network_config: *network_config
287
288 - name: {{ HOSTNAME_KVM03 }}
289 role: salt_minion
290 params:
291 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
292 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
300 backing_store: mcp_ubuntu_1604_image
301 format: qcow2
302 - name: iso # Volume with name 'iso' will be used
303 # for store image with cloud-init metadata.
304 capacity: 1
305 format: raw
306 device: cdrom
307 bus: ide
308 cloudinit_meta_data: *cloudinit_meta_data
309 cloudinit_user_data: *cloudinit_user_data_1604_swp
310
311 interfaces: *interfaces
312 network_config: *network_config
313
314 - name: {{ HOSTNAME_CID01 }}
315 role: salt_minion
316 params:
317 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
318 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
319 boot:
320 - hd
321 cloud_init_volume_name: iso
322 cloud_init_iface_up: ens3
323 volumes:
324 - name: system
325 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
326 backing_store: mcp_ubuntu_1604_image
327 format: qcow2
328 - name: iso # Volume with name 'iso' will be used
329 # for store image with cloud-init metadata.
330 capacity: 1
331 format: raw
332 device: cdrom
333 bus: ide
334 cloudinit_meta_data: *cloudinit_meta_data
335 cloudinit_user_data: *cloudinit_user_data_1604_swp
336
337 interfaces: *interfaces
338 network_config: *network_config
339
340 - name: {{ HOSTNAME_CID02 }}
341 role: salt_minion
342 params:
343 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
344 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
345 boot:
346 - hd
347 cloud_init_volume_name: iso
348 cloud_init_iface_up: ens3
349 volumes:
350 - name: system
351 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
352 backing_store: mcp_ubuntu_1604_image
353 format: qcow2
354 - name: iso # Volume with name 'iso' will be used
355 # for store image with cloud-init metadata.
356 capacity: 1
357 format: raw
358 device: cdrom
359 bus: ide
360 cloudinit_meta_data: *cloudinit_meta_data
361 cloudinit_user_data: *cloudinit_user_data_1604_swp
362
363 interfaces: *interfaces
364 network_config: *network_config
365
366 - name: {{ HOSTNAME_CID03 }}
367 role: salt_minion
368 params:
369 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
370 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
371 boot:
372 - hd
373 cloud_init_volume_name: iso
374 cloud_init_iface_up: ens3
375 volumes:
376 - name: system
377 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
378 backing_store: mcp_ubuntu_1604_image
379 format: qcow2
380 - name: iso # Volume with name 'iso' will be used
381 # for store image with cloud-init metadata.
382 capacity: 1
383 format: raw
384 device: cdrom
385 bus: ide
386 cloudinit_meta_data: *cloudinit_meta_data
387 cloudinit_user_data: *cloudinit_user_data_1604_swp
388
389 interfaces: *interfaces
390 network_config: *network_config
391
392 - name: {{ HOSTNAME_CTL01 }}
393 role: k8s_controller
394 params:
395 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300396 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300397 boot:
398 - hd
399 cloud_init_volume_name: iso
400 cloud_init_iface_up: ens3
401 volumes:
402 - name: system
403 capacity: !os_env NODE_VOLUME_SIZE, 150
404 backing_store: mcp_ubuntu_1604_image
405 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300406 - name: iso # Volume with name 'iso' will be used
407 # for store image with cloud-init metadata.
408 capacity: 1
409 format: raw
410 device: cdrom
411 bus: ide
412 cloudinit_meta_data: *cloudinit_meta_data
413 cloudinit_user_data: *cloudinit_user_data_1604
414
415 interfaces: *interfaces
416 network_config: *network_config
417
418 - name: {{ HOSTNAME_CTL02 }}
419 role: salt_minion
420 params:
421 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300422 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300423 boot:
424 - hd
425 cloud_init_volume_name: iso
426 cloud_init_iface_up: ens3
427 volumes:
428 - name: system
429 capacity: !os_env NODE_VOLUME_SIZE, 150
430 backing_store: mcp_ubuntu_1604_image
431 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300432 - name: iso # Volume with name 'iso' will be used
433 # for store image with cloud-init metadata.
434 capacity: 1
435 format: raw
436 device: cdrom
437 bus: ide
438 cloudinit_meta_data: *cloudinit_meta_data
439 cloudinit_user_data: *cloudinit_user_data_1604
440
441 interfaces: *interfaces
442 network_config: *network_config
443
444 - name: {{ HOSTNAME_CTL03 }}
445 role: salt_minion
446 params:
447 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300448 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300449 boot:
450 - hd
451 cloud_init_volume_name: iso
452 cloud_init_iface_up: ens3
453 volumes:
454 - name: system
455 capacity: !os_env NODE_VOLUME_SIZE, 150
456 backing_store: mcp_ubuntu_1604_image
457 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300458 - name: iso # Volume with name 'iso' will be used
459 # for store image with cloud-init metadata.
460 capacity: 1
461 format: raw
462 device: cdrom
463 bus: ide
464 cloudinit_meta_data: *cloudinit_meta_data
465 cloudinit_user_data: *cloudinit_user_data_1604
466
467 interfaces: *interfaces
468 network_config: *network_config
469
470 - name: {{ HOSTNAME_CMP01 }}
471 role: salt_minion
472 params:
473 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300474 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300475 boot:
476 - hd
477 cloud_init_volume_name: iso
478 cloud_init_iface_up: ens3
479 volumes:
480 - name: system
481 capacity: !os_env NODE_VOLUME_SIZE, 150
482 backing_store: mcp_ubuntu_1604_image
483 format: qcow2
484 - name: iso # Volume with name 'iso' will be used
485 # for store image with cloud-init metadata.
486 capacity: 1
487 format: raw
488 device: cdrom
489 bus: ide
490 cloudinit_meta_data: *cloudinit_meta_data
491 cloudinit_user_data: *cloudinit_user_data_1604
492
493 interfaces: *interfaces
494 network_config: *network_config
495
496 - name: {{ HOSTNAME_CMP02 }}
497 role: salt_minion
498 params:
499 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300500 memory: !os_env SLAVE_NODE_MEMORY, 4096
501 boot:
502 - hd
503 cloud_init_volume_name: iso
504 cloud_init_iface_up: ens3
505 volumes:
506 - name: system
507 capacity: !os_env NODE_VOLUME_SIZE, 150
508 backing_store: mcp_ubuntu_1604_image
509 format: qcow2
510 - name: iso # Volume with name 'iso' will be used
511 # for store image with cloud-init metadata.
512 capacity: 1
513 format: raw
514 device: cdrom
515 bus: ide
516 cloudinit_meta_data: *cloudinit_meta_data
517 cloudinit_user_data: *cloudinit_user_data_1604
518
519 interfaces: *interfaces
520 network_config: *network_config
521
522 - name: {{ HOSTNAME_CMP03 }}
523 role: salt_minion
524 params:
525 vcpu: !os_env SLAVE_NODE_CPU, 2
526 memory: !os_env SLAVE_NODE_MEMORY, 4096
527 boot:
528 - hd
529 cloud_init_volume_name: iso
530 cloud_init_iface_up: ens3
531 volumes:
532 - name: system
533 capacity: !os_env NODE_VOLUME_SIZE, 150
534 backing_store: mcp_ubuntu_1604_image
535 format: qcow2
536 - name: iso # Volume with name 'iso' will be used
537 # for store image with cloud-init metadata.
538 capacity: 1
539 format: raw
540 device: cdrom
541 bus: ide
542 cloudinit_meta_data: *cloudinit_meta_data
543 cloudinit_user_data: *cloudinit_user_data_1604
544
545 interfaces: *interfaces
546 network_config: *network_config
547
548 - name: {{ HOSTNAME_CMP04 }}
549 role: salt_minion
550 params:
551 vcpu: !os_env SLAVE_NODE_CPU, 2
552 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300553 boot:
554 - hd
555 cloud_init_volume_name: iso
556 cloud_init_iface_up: ens3
557 volumes:
558 - name: system
559 capacity: !os_env NODE_VOLUME_SIZE, 150
560 backing_store: mcp_ubuntu_1604_image
561 format: qcow2
562 - name: iso # Volume with name 'iso' will be used
563 # for store image with cloud-init metadata.
564 capacity: 1
565 format: raw
566 device: cdrom
567 bus: ide
568 cloudinit_meta_data: *cloudinit_meta_data
569 cloudinit_user_data: *cloudinit_user_data_1604
570
571 interfaces: *interfaces
572 network_config: *network_config
573
574 - name: {{ HOSTNAME_MON01 }}
575 role: salt_minion
576 params:
577 vcpu: !os_env SLAVE_NODE_CPU, 2
578 memory: !os_env SLAVE_NODE_MEMORY, 4096
579 boot:
580 - hd
581 cloud_init_volume_name: iso
582 cloud_init_iface_up: ens3
583 volumes:
584 - name: system
585 capacity: !os_env NODE_VOLUME_SIZE, 150
586 backing_store: mcp_ubuntu_1604_image
587 format: qcow2
588 - name: iso # Volume with name 'iso' will be used
589 # for store image with cloud-init metadata.
590 capacity: 1
591 format: raw
592 device: cdrom
593 bus: ide
594 cloudinit_meta_data: *cloudinit_meta_data
595 cloudinit_user_data: *cloudinit_user_data_1604_swp
596
597 interfaces: *interfaces
598 network_config: *network_config
599
600 - name: {{ HOSTNAME_MON02 }}
601 role: salt_minion
602 params:
603 vcpu: !os_env SLAVE_NODE_CPU, 2
604 memory: !os_env SLAVE_NODE_MEMORY, 4096
605 boot:
606 - hd
607 cloud_init_volume_name: iso
608 cloud_init_iface_up: ens3
609 volumes:
610 - name: system
611 capacity: !os_env NODE_VOLUME_SIZE, 150
612 backing_store: mcp_ubuntu_1604_image
613 format: qcow2
614 - 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_swp
622
623 interfaces: *interfaces
624 network_config: *network_config
625
626 - name: {{ HOSTNAME_MON03 }}
627 role: salt_minion
628 params:
629 vcpu: !os_env SLAVE_NODE_CPU, 2
630 memory: !os_env SLAVE_NODE_MEMORY, 4096
631 boot:
632 - hd
633 cloud_init_volume_name: iso
634 cloud_init_iface_up: ens3
635 volumes:
636 - name: system
637 capacity: !os_env NODE_VOLUME_SIZE, 150
638 backing_store: mcp_ubuntu_1604_image
639 format: qcow2
640 - name: iso # Volume with name 'iso' will be used
641 # for store image with cloud-init metadata.
642 capacity: 1
643 format: raw
644 device: cdrom
645 bus: ide
646 cloudinit_meta_data: *cloudinit_meta_data
647 cloudinit_user_data: *cloudinit_user_data_1604_swp
648
649 interfaces: *interfaces
650 network_config: *network_config
651
652 - name: {{ HOSTNAME_LOG01 }}
653 role: salt_minion
654 params:
655 vcpu: !os_env SLAVE_NODE_CPU, 2
656 memory: !os_env SLAVE_NODE_MEMORY, 4096
657 boot:
658 - hd
659 cloud_init_volume_name: iso
660 cloud_init_iface_up: ens3
661 volumes:
662 - name: system
663 capacity: !os_env NODE_VOLUME_SIZE, 150
664 backing_store: mcp_ubuntu_1604_image
665 format: qcow2
666 - name: iso # Volume with name 'iso' will be used
667 # for store image with cloud-init metadata.
668 capacity: 1
669 format: raw
670 device: cdrom
671 bus: ide
672 cloudinit_meta_data: *cloudinit_meta_data
673 cloudinit_user_data: *cloudinit_user_data_1604_swp
674
675 interfaces: *interfaces
676 network_config: *network_config
677
678 - name: {{ HOSTNAME_LOG02 }}
679 role: salt_minion
680 params:
681 vcpu: !os_env SLAVE_NODE_CPU, 2
682 memory: !os_env SLAVE_NODE_MEMORY, 4096
683 boot:
684 - hd
685 cloud_init_volume_name: iso
686 cloud_init_iface_up: ens3
687 volumes:
688 - name: system
689 capacity: !os_env NODE_VOLUME_SIZE, 150
690 backing_store: mcp_ubuntu_1604_image
691 format: qcow2
692 - name: iso # Volume with name 'iso' will be used
693 # for store image with cloud-init metadata.
694 capacity: 1
695 format: raw
696 device: cdrom
697 bus: ide
698 cloudinit_meta_data: *cloudinit_meta_data
699 cloudinit_user_data: *cloudinit_user_data_1604_swp
700
701 interfaces: *interfaces
702 network_config: *network_config
703
704 - name: {{ HOSTNAME_LOG03 }}
705 role: salt_minion
706 params:
707 vcpu: !os_env SLAVE_NODE_CPU, 2
708 memory: !os_env SLAVE_NODE_MEMORY, 4096
709 boot:
710 - hd
711 cloud_init_volume_name: iso
712 cloud_init_iface_up: ens3
713 volumes:
714 - name: system
715 capacity: !os_env NODE_VOLUME_SIZE, 150
716 backing_store: mcp_ubuntu_1604_image
717 format: qcow2
718 - name: iso # Volume with name 'iso' will be used
719 # for store image with cloud-init metadata.
720 capacity: 1
721 format: raw
722 device: cdrom
723 bus: ide
724 cloudinit_meta_data: *cloudinit_meta_data
725 cloudinit_user_data: *cloudinit_user_data_1604_swp
726
727 interfaces: *interfaces
728 network_config: *network_config
729
730 - name: {{ HOSTNAME_MTR01 }}
731 role: salt_minion
732 params:
733 vcpu: !os_env SLAVE_NODE_CPU, 2
734 memory: !os_env SLAVE_NODE_MEMORY, 4096
735 boot:
736 - hd
737 cloud_init_volume_name: iso
738 cloud_init_iface_up: ens3
739 volumes:
740 - name: system
741 capacity: !os_env NODE_VOLUME_SIZE, 150
742 backing_store: mcp_ubuntu_1604_image
743 format: qcow2
744 - name: iso # Volume with name 'iso' will be used
745 # for store image with cloud-init metadata.
746 capacity: 1
747 format: raw
748 device: cdrom
749 bus: ide
750 cloudinit_meta_data: *cloudinit_meta_data
751 cloudinit_user_data: *cloudinit_user_data_1604_swp
752
753 interfaces: *interfaces
754 network_config: *network_config
755
756 - name: {{ HOSTNAME_MTR02 }}
757 role: salt_minion
758 params:
759 vcpu: !os_env SLAVE_NODE_CPU, 2
760 memory: !os_env SLAVE_NODE_MEMORY, 4096
761 boot:
762 - hd
763 cloud_init_volume_name: iso
764 cloud_init_iface_up: ens3
765 volumes:
766 - name: system
767 capacity: !os_env NODE_VOLUME_SIZE, 150
768 backing_store: mcp_ubuntu_1604_image
769 format: qcow2
770 - name: iso # Volume with name 'iso' will be used
771 # for store image with cloud-init metadata.
772 capacity: 1
773 format: raw
774 device: cdrom
775 bus: ide
776 cloudinit_meta_data: *cloudinit_meta_data
777 cloudinit_user_data: *cloudinit_user_data_1604_swp
778
779 interfaces: *interfaces
780 network_config: *network_config
781
782 - name: {{ HOSTNAME_MTR03 }}
783 role: salt_minion
784 params:
785 vcpu: !os_env SLAVE_NODE_CPU, 2
786 memory: !os_env SLAVE_NODE_MEMORY, 4096
787 boot:
788 - hd
789 cloud_init_volume_name: iso
790 cloud_init_iface_up: ens3
791 volumes:
792 - name: system
793 capacity: !os_env NODE_VOLUME_SIZE, 150
794 backing_store: mcp_ubuntu_1604_image
795 format: qcow2
796 - name: iso # Volume with name 'iso' will be used
797 # for store image with cloud-init metadata.
798 capacity: 1
799 format: raw
800 device: cdrom
801 bus: ide
802 cloudinit_meta_data: *cloudinit_meta_data
803 cloudinit_user_data: *cloudinit_user_data_1604_swp
804
805 interfaces: *interfaces
806 network_config: *network_config