blob: ee6950614c9ef250eff3be09773e202bf59f98bc [file] [log] [blame]
Dennis Dmitriev26b94a22018-07-19 16:12:22 +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-genie') %}
5{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
6{% 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') %}
10
11{% 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 Dmitrievd181ec42018-11-07 15:15:04 +020018{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01') %}
19{% set HOSTNAME_PRX02 = os_env('HOSTNAME_PRX02', 'prx02') %}
Dennis Dmitriev26b94a22018-07-19 16:12:22 +030020{% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01') %}
21{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02') %}
22{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03') %}
23
24{% import 'cookied-cicd-k8s-genie/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
Dennis Dmitriev26b94a22018-07-19 16:12:22 +030025{% import 'cookied-cicd-k8s-genie/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
26{% import 'cookied-cicd-k8s-genie/underlay--user-data1604-swp.yaml' as CLOUDINIT_USER_DATA_1604_SWP with context %}
27
28---
29aliases:
30 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
31 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
Dennis Dmitriev26b94a22018-07-19 16:12:22 +030032 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
33 - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }}
34
35template:
36 devops_settings:
37 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
38
39 address_pools:
40 private-pool01:
41 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
42 params:
43 ip_reserved:
44 gateway: +1
45 l2_network_device: +1
46 default_{{ HOSTNAME_CFG01 }}: +15
47
48 default_{{ HOSTNAME_CID }}: +90
49 default_{{ HOSTNAME_CID01 }}: +91
50 default_{{ HOSTNAME_CID02 }}: +92
51 default_{{ HOSTNAME_CID03 }}: +93
Dennis Dmitrievd181ec42018-11-07 15:15:04 +020052 default_{{ HOSTNAME_PRX01 }}: +221
53 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev26b94a22018-07-19 16:12:22 +030054
55 ip_ranges:
56 dhcp: [+90, -10]
57
58 admin-pool01:
59 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
60 params:
61 ip_reserved:
62 gateway: +1
63 l2_network_device: +1
64 default_{{ HOSTNAME_CFG01 }}: +15
65
66 default_{{ HOSTNAME_CID }}: +90
67 default_{{ HOSTNAME_CID01 }}: +91
68 default_{{ HOSTNAME_CID02 }}: +92
69 default_{{ HOSTNAME_CID03 }}: +93
70
71 default_{{ HOSTNAME_CTL }}: +10
72 default_{{ HOSTNAME_CTL01 }}: +11
73 default_{{ HOSTNAME_CTL02 }}: +12
74 default_{{ HOSTNAME_CTL03 }}: +13
75 default_{{ HOSTNAME_CMP01 }}: +101
76 default_{{ HOSTNAME_CMP02 }}: +102
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +030077 default_{{ HOSTNAME_CMP03 }}: +103
78 default_{{ HOSTNAME_CMP04 }}: +104
Dennis Dmitrievd181ec42018-11-07 15:15:04 +020079 default_{{ HOSTNAME_PRX01 }}: +221
80 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev26b94a22018-07-19 16:12:22 +030081 default_{{ HOSTNAME_KVM }}: +240
82 default_{{ HOSTNAME_KVM01 }}: +241
83 default_{{ HOSTNAME_KVM02 }}: +242
84 default_{{ HOSTNAME_KVM03 }}: +243
85
86 ip_ranges:
87 dhcp: [+90, -10]
88
89 tenant-pool01:
90 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
91 params:
92 ip_reserved:
93 gateway: +1
94 l2_network_device: +1
95 default_{{ HOSTNAME_CFG01 }}: +15
96
97 default_{{ HOSTNAME_CID }}: +90
98 default_{{ HOSTNAME_CID01 }}: +91
99 default_{{ HOSTNAME_CID02 }}: +92
100 default_{{ HOSTNAME_CID03 }}: +93
101
102 ip_ranges:
103 dhcp: [+10, -10]
104
105 external-pool01:
106 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
107 params:
108 ip_reserved:
109 gateway: +1
110 l2_network_device: +1
111 default_{{ HOSTNAME_CFG01 }}: +15
112
113 default_{{ HOSTNAME_CID }}: +90
114 default_{{ HOSTNAME_CID01 }}: +91
115 default_{{ HOSTNAME_CID02 }}: +92
116 default_{{ HOSTNAME_CID03 }}: +93
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200117 default_{{ HOSTNAME_CTL01 }}: +11
118 default_{{ HOSTNAME_CTL02 }}: +12
119 default_{{ HOSTNAME_CTL03 }}: +13
120 default_{{ HOSTNAME_CMP01 }}: +101
121 default_{{ HOSTNAME_CMP02 }}: +102
122 default_{{ HOSTNAME_CMP03 }}: +103
123 default_{{ HOSTNAME_CMP04 }}: +104
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200124 default_{{ HOSTNAME_PRX01 }}: +221
125 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300126
127 ip_ranges:
128 dhcp: [+10, -10]
129
130
131 groups:
132 - name: default
133 driver:
134 name: devops.driver.libvirt
135 params:
136 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
137 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
138 stp: False
139 hpet: False
140 enable_acpi: true
141 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
142 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
143
144 network_pools:
145 admin: admin-pool01
146 private: private-pool01
147 tenant: tenant-pool01
148 external: external-pool01
149
150 l2_network_devices:
151 admin:
152 address_pool: admin-pool01
153 dhcp: true
154 forward:
155 mode: nat
156
157 private:
158 address_pool: private-pool01
159 dhcp: false
160 forward:
161 mode: route
162
163 external:
164 address_pool: external-pool01
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200165 dhcp: true
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300166 forward:
167 mode: nat
168
169
170 group_volumes:
171 - name: cfg01_day01_image # Pre-configured day01 image
172 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
173 format: qcow2
174 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
175 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
176 # or
177 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
178 source_image: {{ os_env('MCP_IMAGE_PATH1604') }}
179 format: qcow2
180
181 nodes:
182 - name: {{ HOSTNAME_CFG01 }}
183 role: salt_master
184 params:
185 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
186 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
187 boot:
188 - hd
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300189 volumes:
190 - name: system
191 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
192 backing_store: cfg01_day01_image
193 format: qcow2
194 - name: config
195 capacity: 1
196 format: raw
197 device: cdrom
198 bus: ide
199 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
200 # it will be uploaded after config drive generation
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200201 interfaces: &all_interfaces
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300202 - label: ens3
203 l2_network_device: admin
204 interface_model: *interface_model
205 - label: ens4
206 l2_network_device: private
207 interface_model: *interface_model
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200208 - label: ens5
209 l2_network_device: external
210 interface_model: *interface_model
211 network_config: &all_network_config
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300212 ens3:
213 networks:
214 - admin
215 ens4:
216 networks:
217 - private
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200218 ens5:
219 networks:
220 - external
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300221
222 - name: {{ HOSTNAME_KVM01 }}
223 role: salt_minion
224 params:
225 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
226 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
227 boot:
228 - hd
229 cloud_init_volume_name: iso
230 cloud_init_iface_up: ens3
231 volumes:
232 - name: system
233 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
234 backing_store: mcp_ubuntu_1604_image
235 format: qcow2
236 - name: iso # Volume with name 'iso' will be used
237 # for store image with cloud-init metadata.
238 capacity: 1
239 format: raw
240 device: cdrom
241 bus: ide
242 cloudinit_meta_data: *cloudinit_meta_data
243 cloudinit_user_data: *cloudinit_user_data_1604_swp
244
245 interfaces: &interfaces
246 - label: ens3
247 l2_network_device: admin
248 interface_model: *interface_model
249 - label: ens4
250 l2_network_device: private
251 interface_model: *interface_model
252 network_config: &network_config
253 ens3:
254 networks:
255 - admin
256 ens4:
257 networks:
258 - private
259
260 - name: {{ HOSTNAME_KVM02 }}
261 role: salt_minion
262 params:
263 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
264 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
265 boot:
266 - hd
267 cloud_init_volume_name: iso
268 cloud_init_iface_up: ens3
269 volumes:
270 - name: system
271 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
272 backing_store: mcp_ubuntu_1604_image
273 format: qcow2
274 - name: iso # Volume with name 'iso' will be used
275 # for store image with cloud-init metadata.
276 capacity: 1
277 format: raw
278 device: cdrom
279 bus: ide
280 cloudinit_meta_data: *cloudinit_meta_data
281 cloudinit_user_data: *cloudinit_user_data_1604_swp
282
283 interfaces: *interfaces
284 network_config: *network_config
285
286 - name: {{ HOSTNAME_KVM03 }}
287 role: salt_minion
288 params:
289 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
290 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
291 boot:
292 - hd
293 cloud_init_volume_name: iso
294 cloud_init_iface_up: ens3
295 volumes:
296 - name: system
297 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
298 backing_store: mcp_ubuntu_1604_image
299 format: qcow2
300 - name: iso # Volume with name 'iso' will be used
301 # for store image with cloud-init metadata.
302 capacity: 1
303 format: raw
304 device: cdrom
305 bus: ide
306 cloudinit_meta_data: *cloudinit_meta_data
307 cloudinit_user_data: *cloudinit_user_data_1604_swp
308
309 interfaces: *interfaces
310 network_config: *network_config
311
312 - name: {{ HOSTNAME_CID01 }}
313 role: salt_minion
314 params:
315 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
316 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
317 boot:
318 - hd
319 cloud_init_volume_name: iso
320 cloud_init_iface_up: ens3
321 volumes:
322 - name: system
323 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
324 backing_store: mcp_ubuntu_1604_image
325 format: qcow2
326 - name: iso # Volume with name 'iso' will be used
327 # for store image with cloud-init metadata.
328 capacity: 1
329 format: raw
330 device: cdrom
331 bus: ide
332 cloudinit_meta_data: *cloudinit_meta_data
333 cloudinit_user_data: *cloudinit_user_data_1604_swp
334
335 interfaces: *interfaces
336 network_config: *network_config
337
338 - name: {{ HOSTNAME_CID02 }}
339 role: salt_minion
340 params:
341 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
342 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
343 boot:
344 - hd
345 cloud_init_volume_name: iso
346 cloud_init_iface_up: ens3
347 volumes:
348 - name: system
349 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
350 backing_store: mcp_ubuntu_1604_image
351 format: qcow2
352 - name: iso # Volume with name 'iso' will be used
353 # for store image with cloud-init metadata.
354 capacity: 1
355 format: raw
356 device: cdrom
357 bus: ide
358 cloudinit_meta_data: *cloudinit_meta_data
359 cloudinit_user_data: *cloudinit_user_data_1604_swp
360
361 interfaces: *interfaces
362 network_config: *network_config
363
364 - name: {{ HOSTNAME_CID03 }}
365 role: salt_minion
366 params:
367 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
368 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
369 boot:
370 - hd
371 cloud_init_volume_name: iso
372 cloud_init_iface_up: ens3
373 volumes:
374 - name: system
375 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
376 backing_store: mcp_ubuntu_1604_image
377 format: qcow2
378 - name: iso # Volume with name 'iso' will be used
379 # for store image with cloud-init metadata.
380 capacity: 1
381 format: raw
382 device: cdrom
383 bus: ide
384 cloudinit_meta_data: *cloudinit_meta_data
385 cloudinit_user_data: *cloudinit_user_data_1604_swp
386
387 interfaces: *interfaces
388 network_config: *network_config
389
390 - name: {{ HOSTNAME_CTL01 }}
391 role: k8s_controller
392 params:
393 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300394 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300395 boot:
396 - hd
397 cloud_init_volume_name: iso
398 cloud_init_iface_up: ens3
399 volumes:
400 - name: system
401 capacity: !os_env NODE_VOLUME_SIZE, 150
402 backing_store: mcp_ubuntu_1604_image
403 format: qcow2
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300404 - name: iso # Volume with name 'iso' will be used
405 # for store image with cloud-init metadata.
406 capacity: 1
407 format: raw
408 device: cdrom
409 bus: ide
410 cloudinit_meta_data: *cloudinit_meta_data
411 cloudinit_user_data: *cloudinit_user_data_1604
412
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200413 interfaces: *all_interfaces
414 network_config: *all_network_config
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300415
416 - name: {{ HOSTNAME_CTL02 }}
417 role: salt_minion
418 params:
419 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300420 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300421 boot:
422 - hd
423 cloud_init_volume_name: iso
424 cloud_init_iface_up: ens3
425 volumes:
426 - name: system
427 capacity: !os_env NODE_VOLUME_SIZE, 150
428 backing_store: mcp_ubuntu_1604_image
429 format: qcow2
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300430 - name: iso # Volume with name 'iso' will be used
431 # for store image with cloud-init metadata.
432 capacity: 1
433 format: raw
434 device: cdrom
435 bus: ide
436 cloudinit_meta_data: *cloudinit_meta_data
437 cloudinit_user_data: *cloudinit_user_data_1604
438
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200439 interfaces: *all_interfaces
440 network_config: *all_network_config
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300441
442 - name: {{ HOSTNAME_CTL03 }}
443 role: salt_minion
444 params:
445 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300446 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300447 boot:
448 - hd
449 cloud_init_volume_name: iso
450 cloud_init_iface_up: ens3
451 volumes:
452 - name: system
453 capacity: !os_env NODE_VOLUME_SIZE, 150
454 backing_store: mcp_ubuntu_1604_image
455 format: qcow2
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300456 - name: iso # Volume with name 'iso' will be used
457 # for store image with cloud-init metadata.
458 capacity: 1
459 format: raw
460 device: cdrom
461 bus: ide
462 cloudinit_meta_data: *cloudinit_meta_data
463 cloudinit_user_data: *cloudinit_user_data_1604
464
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200465 interfaces: *all_interfaces
466 network_config: *all_network_config
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300467
468 - name: {{ HOSTNAME_CMP01 }}
469 role: salt_minion
470 params:
471 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300472 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300473 boot:
474 - hd
475 cloud_init_volume_name: iso
476 cloud_init_iface_up: ens3
477 volumes:
478 - name: system
479 capacity: !os_env NODE_VOLUME_SIZE, 150
480 backing_store: mcp_ubuntu_1604_image
481 format: qcow2
482 - name: iso # Volume with name 'iso' will be used
483 # for store image with cloud-init metadata.
484 capacity: 1
485 format: raw
486 device: cdrom
487 bus: ide
488 cloudinit_meta_data: *cloudinit_meta_data
489 cloudinit_user_data: *cloudinit_user_data_1604
490
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200491 interfaces: *all_interfaces
492 network_config: *all_network_config
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300493
494 - name: {{ HOSTNAME_CMP02 }}
495 role: salt_minion
496 params:
497 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300498 memory: !os_env SLAVE_NODE_MEMORY, 4096
499 boot:
500 - hd
501 cloud_init_volume_name: iso
502 cloud_init_iface_up: ens3
503 volumes:
504 - name: system
505 capacity: !os_env NODE_VOLUME_SIZE, 150
506 backing_store: mcp_ubuntu_1604_image
507 format: qcow2
508 - name: iso # Volume with name 'iso' will be used
509 # for store image with cloud-init metadata.
510 capacity: 1
511 format: raw
512 device: cdrom
513 bus: ide
514 cloudinit_meta_data: *cloudinit_meta_data
515 cloudinit_user_data: *cloudinit_user_data_1604
516
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200517 interfaces: *all_interfaces
518 network_config: *all_network_config
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300519
520 - name: {{ HOSTNAME_CMP03 }}
521 role: salt_minion
522 params:
523 vcpu: !os_env SLAVE_NODE_CPU, 2
524 memory: !os_env SLAVE_NODE_MEMORY, 4096
525 boot:
526 - hd
527 cloud_init_volume_name: iso
528 cloud_init_iface_up: ens3
529 volumes:
530 - name: system
531 capacity: !os_env NODE_VOLUME_SIZE, 150
532 backing_store: mcp_ubuntu_1604_image
533 format: qcow2
534 - name: iso # Volume with name 'iso' will be used
535 # for store image with cloud-init metadata.
536 capacity: 1
537 format: raw
538 device: cdrom
539 bus: ide
540 cloudinit_meta_data: *cloudinit_meta_data
541 cloudinit_user_data: *cloudinit_user_data_1604
542
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200543 interfaces: *all_interfaces
544 network_config: *all_network_config
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300545
546 - name: {{ HOSTNAME_CMP04 }}
547 role: salt_minion
548 params:
549 vcpu: !os_env SLAVE_NODE_CPU, 2
550 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev26b94a22018-07-19 16:12:22 +0300551 boot:
552 - hd
553 cloud_init_volume_name: iso
554 cloud_init_iface_up: ens3
555 volumes:
556 - name: system
557 capacity: !os_env NODE_VOLUME_SIZE, 150
558 backing_store: mcp_ubuntu_1604_image
559 format: qcow2
560 - name: iso # Volume with name 'iso' will be used
561 # for store image with cloud-init metadata.
562 capacity: 1
563 format: raw
564 device: cdrom
565 bus: ide
566 cloudinit_meta_data: *cloudinit_meta_data
567 cloudinit_user_data: *cloudinit_user_data_1604
568
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200569 interfaces: *all_interfaces
570 network_config: *all_network_config
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200571
572 - name: {{ HOSTNAME_PRX01 }}
573 role: salt_minion
574 params:
575 vcpu: !os_env SLAVE_NODE_CPU, 1
576 memory: !os_env SLAVE_NODE_MEMORY, 2048
577 boot:
578 - hd
579 cloud_init_volume_name: iso
580 cloud_init_iface_up: ens3
581 volumes:
582 - name: system
583 capacity: !os_env NODE_VOLUME_SIZE, 150
584 backing_store: mcp_ubuntu_1604_image
585 format: qcow2
586 - name: iso # Volume with name 'iso' will be used
587 # for store image with cloud-init metadata.
588 capacity: 1
589 format: raw
590 device: cdrom
591 bus: ide
592 cloudinit_meta_data: *cloudinit_meta_data
593 cloudinit_user_data: *cloudinit_user_data_1604_swp
594
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200595 interfaces: *all_interfaces
596 network_config: *all_network_config
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200597
598 - name: {{ HOSTNAME_PRX02 }}
599 role: salt_minion
600 params:
601 vcpu: !os_env SLAVE_NODE_CPU, 1
602 memory: !os_env SLAVE_NODE_MEMORY, 2048
603 boot:
604 - hd
605 cloud_init_volume_name: iso
606 cloud_init_iface_up: ens3
607 volumes:
608 - name: system
609 capacity: !os_env NODE_VOLUME_SIZE, 150
610 backing_store: mcp_ubuntu_1604_image
611 format: qcow2
612 - name: iso # Volume with name 'iso' will be used
613 # for store image with cloud-init metadata.
614 capacity: 1
615 format: raw
616 device: cdrom
617 bus: ide
618 cloudinit_meta_data: *cloudinit_meta_data
619 cloudinit_user_data: *cloudinit_user_data_1604_swp
620
Dennis Dmitriev66650fc2018-11-02 11:04:37 +0200621 interfaces: *all_interfaces
622 network_config: *all_network_config