blob: 5b87397493bb42acdcebaf18de88e2a0290e3c74 [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') %}
5{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
6{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
7{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
8{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
10
11{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
12{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
13{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Dennis Dmitrievb3b37492018-07-08 21:23:00 +030014{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
15{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +030016{% set HOSTNAME_CMP03 = os_env('HOSTNAME_CMP03', 'cmp003.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CMP04 = os_env('HOSTNAME_CMP04', 'cmp004.' + DOMAIN_NAME) %}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030018{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
21{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
23{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
26{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
27{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Dennis Dmitrievd181ec42018-11-07 15:15:04 +020028{% set HOSTNAME_PRX02 = os_env('HOSTNAME_PRX02', 'prx02.' + DOMAIN_NAME) %}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030029{% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %}
32
33{% import 'cookied-cicd-k8s-calico/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030034{% import 'cookied-cicd-k8s-calico/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
35{% import 'cookied-cicd-k8s-calico/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 }}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030041 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
42 - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }}
43
44template:
45 devops_settings:
46 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
47
48 address_pools:
49 private-pool01:
50 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
51 params:
52 ip_reserved:
53 gateway: +1
54 l2_network_device: +1
55 default_{{ HOSTNAME_CFG01 }}: +15
56
57 default_{{ HOSTNAME_CID }}: +90
58 default_{{ HOSTNAME_CID01 }}: +91
59 default_{{ HOSTNAME_CID02 }}: +92
60 default_{{ HOSTNAME_CID03 }}: +93
Dennis Dmitrievd181ec42018-11-07 15:15:04 +020061 default_{{ HOSTNAME_PRX01 }}: +221
62 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030063
64 ip_ranges:
65 dhcp: [+90, -10]
66
67 admin-pool01:
68 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
69 params:
70 ip_reserved:
71 gateway: +1
72 l2_network_device: +1
73 default_{{ HOSTNAME_CFG01 }}: +15
74
75 default_{{ HOSTNAME_CID }}: +90
76 default_{{ HOSTNAME_CID01 }}: +91
77 default_{{ HOSTNAME_CID02 }}: +92
78 default_{{ HOSTNAME_CID03 }}: +93
79
80 default_{{ HOSTNAME_CTL }}: +10
81 default_{{ HOSTNAME_CTL01 }}: +11
82 default_{{ HOSTNAME_CTL02 }}: +12
83 default_{{ HOSTNAME_CTL03 }}: +13
84 default_{{ HOSTNAME_CMP01 }}: +101
85 default_{{ HOSTNAME_CMP02 }}: +102
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +030086 default_{{ HOSTNAME_CMP03 }}: +103
87 default_{{ HOSTNAME_CMP04 }}: +104
Dennis Dmitriev0f624a82018-06-11 12:57:13 +030088 default_{{ HOSTNAME_LOG }}: +60
89 default_{{ HOSTNAME_LOG01 }}: +61
90 default_{{ HOSTNAME_LOG02 }}: +62
91 default_{{ HOSTNAME_LOG03 }}: +63
92 default_{{ HOSTNAME_MON }}: +70
93 default_{{ HOSTNAME_MON01 }}: +71
94 default_{{ HOSTNAME_MON02 }}: +72
95 default_{{ HOSTNAME_MON03 }}: +73
96 default_{{ HOSTNAME_MTR }}: +85
97 default_{{ HOSTNAME_MTR01 }}: +86
98 default_{{ HOSTNAME_MTR02 }}: +87
99 default_{{ HOSTNAME_MTR03 }}: +88
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200100 default_{{ HOSTNAME_PRX01 }}: +221
101 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300102 default_{{ HOSTNAME_KVM }}: +240
103 default_{{ HOSTNAME_KVM01 }}: +241
104 default_{{ HOSTNAME_KVM02 }}: +242
105 default_{{ HOSTNAME_KVM03 }}: +243
106
107 ip_ranges:
108 dhcp: [+90, -10]
109
110 tenant-pool01:
111 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
112 params:
113 ip_reserved:
114 gateway: +1
115 l2_network_device: +1
116 default_{{ HOSTNAME_CFG01 }}: +15
117
118 default_{{ HOSTNAME_CID }}: +90
119 default_{{ HOSTNAME_CID01 }}: +91
120 default_{{ HOSTNAME_CID02 }}: +92
121 default_{{ HOSTNAME_CID03 }}: +93
122
123 ip_ranges:
124 dhcp: [+10, -10]
125
126 external-pool01:
127 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
128 params:
129 ip_reserved:
130 gateway: +1
131 l2_network_device: +1
132 default_{{ HOSTNAME_CFG01 }}: +15
133
134 default_{{ HOSTNAME_CID }}: +90
135 default_{{ HOSTNAME_CID01 }}: +91
136 default_{{ HOSTNAME_CID02 }}: +92
137 default_{{ HOSTNAME_CID03 }}: +93
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200138 default_{{ HOSTNAME_PRX01 }}: +221
139 default_{{ HOSTNAME_PRX02 }}: +222
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300140
141 ip_ranges:
142 dhcp: [+10, -10]
143
144
145 groups:
146 - name: default
147 driver:
148 name: devops.driver.libvirt
149 params:
150 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
151 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
152 stp: False
153 hpet: False
154 enable_acpi: true
155 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
156 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
157
158 network_pools:
159 admin: admin-pool01
160 private: private-pool01
161 tenant: tenant-pool01
162 external: external-pool01
163
164 l2_network_devices:
165 admin:
166 address_pool: admin-pool01
167 dhcp: true
168 forward:
169 mode: nat
170
171 private:
172 address_pool: private-pool01
173 dhcp: false
174 forward:
175 mode: route
176
177 external:
178 address_pool: external-pool01
179 dhcp: false
180 forward:
181 mode: nat
182
183
184 group_volumes:
185 - name: cfg01_day01_image # Pre-configured day01 image
186 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
187 format: qcow2
188 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
189 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
190 # or
191 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
192 source_image: {{ os_env('MCP_IMAGE_PATH1604') }}
193 format: qcow2
194
195 nodes:
196 - name: {{ HOSTNAME_CFG01 }}
197 role: salt_master
198 params:
199 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
Dennis Dmitriev19afa872018-12-21 15:18:51 +0200200 memory: {{ os_env('CFG_NODE_MEMORY', 12288) }}
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300201 boot:
202 - hd
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300203 volumes:
204 - name: system
205 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
206 backing_store: cfg01_day01_image
207 format: qcow2
208 - name: config
209 capacity: 1
210 format: raw
211 device: cdrom
212 bus: ide
213 # source_image: !os_env CFG01_CONFIG_PATH # no source image required.
214 # it will be uploaded after config drive generation
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300215 interfaces:
216 - label: ens3
217 l2_network_device: admin
218 interface_model: *interface_model
219 - label: ens4
220 l2_network_device: private
221 interface_model: *interface_model
222 network_config:
223 ens3:
224 networks:
225 - admin
226 ens4:
227 networks:
228 - private
229
230 - name: {{ HOSTNAME_KVM01 }}
231 role: salt_minion
232 params:
233 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
234 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
235 boot:
236 - hd
237 cloud_init_volume_name: iso
238 cloud_init_iface_up: ens3
239 volumes:
240 - name: system
241 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
242 backing_store: mcp_ubuntu_1604_image
243 format: qcow2
244 - name: iso # Volume with name 'iso' will be used
245 # for store image with cloud-init metadata.
246 capacity: 1
247 format: raw
248 device: cdrom
249 bus: ide
250 cloudinit_meta_data: *cloudinit_meta_data
251 cloudinit_user_data: *cloudinit_user_data_1604_swp
252
253 interfaces: &interfaces
254 - label: ens3
255 l2_network_device: admin
256 interface_model: *interface_model
257 - label: ens4
258 l2_network_device: private
259 interface_model: *interface_model
260 network_config: &network_config
261 ens3:
262 networks:
263 - admin
264 ens4:
265 networks:
266 - private
267
268 - name: {{ HOSTNAME_KVM02 }}
269 role: salt_minion
270 params:
271 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
272 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
273 boot:
274 - hd
275 cloud_init_volume_name: iso
276 cloud_init_iface_up: ens3
277 volumes:
278 - name: system
279 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
280 backing_store: mcp_ubuntu_1604_image
281 format: qcow2
282 - name: iso # Volume with name 'iso' will be used
283 # for store image with cloud-init metadata.
284 capacity: 1
285 format: raw
286 device: cdrom
287 bus: ide
288 cloudinit_meta_data: *cloudinit_meta_data
289 cloudinit_user_data: *cloudinit_user_data_1604_swp
290
291 interfaces: *interfaces
292 network_config: *network_config
293
294 - name: {{ HOSTNAME_KVM03 }}
295 role: salt_minion
296 params:
297 vcpu: {{ os_env('KVM_NODE_CPU', 1) }}
298 memory: {{ os_env('KVM_NODE_MEMORY', 1024) }}
299 boot:
300 - hd
301 cloud_init_volume_name: iso
302 cloud_init_iface_up: ens3
303 volumes:
304 - name: system
305 capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }}
306 backing_store: mcp_ubuntu_1604_image
307 format: qcow2
308 - name: iso # Volume with name 'iso' will be used
309 # for store image with cloud-init metadata.
310 capacity: 1
311 format: raw
312 device: cdrom
313 bus: ide
314 cloudinit_meta_data: *cloudinit_meta_data
315 cloudinit_user_data: *cloudinit_user_data_1604_swp
316
317 interfaces: *interfaces
318 network_config: *network_config
319
320 - name: {{ HOSTNAME_CID01 }}
321 role: salt_minion
322 params:
323 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
324 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
325 boot:
326 - hd
327 cloud_init_volume_name: iso
328 cloud_init_iface_up: ens3
329 volumes:
330 - name: system
331 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
332 backing_store: mcp_ubuntu_1604_image
333 format: qcow2
334 - name: iso # Volume with name 'iso' will be used
335 # for store image with cloud-init metadata.
336 capacity: 1
337 format: raw
338 device: cdrom
339 bus: ide
340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604_swp
342
343 interfaces: *interfaces
344 network_config: *network_config
345
346 - name: {{ HOSTNAME_CID02 }}
347 role: salt_minion
348 params:
349 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
350 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
351 boot:
352 - hd
353 cloud_init_volume_name: iso
354 cloud_init_iface_up: ens3
355 volumes:
356 - name: system
357 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
358 backing_store: mcp_ubuntu_1604_image
359 format: qcow2
360 - name: iso # Volume with name 'iso' will be used
361 # for store image with cloud-init metadata.
362 capacity: 1
363 format: raw
364 device: cdrom
365 bus: ide
366 cloudinit_meta_data: *cloudinit_meta_data
367 cloudinit_user_data: *cloudinit_user_data_1604_swp
368
369 interfaces: *interfaces
370 network_config: *network_config
371
372 - name: {{ HOSTNAME_CID03 }}
373 role: salt_minion
374 params:
375 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
376 memory: {{ os_env('CID_NODE_MEMORY', 8192) }}
377 boot:
378 - hd
379 cloud_init_volume_name: iso
380 cloud_init_iface_up: ens3
381 volumes:
382 - name: system
383 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
384 backing_store: mcp_ubuntu_1604_image
385 format: qcow2
386 - name: iso # Volume with name 'iso' will be used
387 # for store image with cloud-init metadata.
388 capacity: 1
389 format: raw
390 device: cdrom
391 bus: ide
392 cloudinit_meta_data: *cloudinit_meta_data
393 cloudinit_user_data: *cloudinit_user_data_1604_swp
394
395 interfaces: *interfaces
396 network_config: *network_config
397
398 - name: {{ HOSTNAME_CTL01 }}
399 role: k8s_controller
400 params:
401 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300402 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300403 boot:
404 - hd
405 cloud_init_volume_name: iso
406 cloud_init_iface_up: ens3
407 volumes:
408 - name: system
409 capacity: !os_env NODE_VOLUME_SIZE, 150
410 backing_store: mcp_ubuntu_1604_image
411 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300412 - name: iso # Volume with name 'iso' will be used
413 # for store image with cloud-init metadata.
414 capacity: 1
415 format: raw
416 device: cdrom
417 bus: ide
418 cloudinit_meta_data: *cloudinit_meta_data
419 cloudinit_user_data: *cloudinit_user_data_1604
420
421 interfaces: *interfaces
422 network_config: *network_config
423
424 - name: {{ HOSTNAME_CTL02 }}
425 role: salt_minion
426 params:
427 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300428 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300429 boot:
430 - hd
431 cloud_init_volume_name: iso
432 cloud_init_iface_up: ens3
433 volumes:
434 - name: system
435 capacity: !os_env NODE_VOLUME_SIZE, 150
436 backing_store: mcp_ubuntu_1604_image
437 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300438 - name: iso # Volume with name 'iso' will be used
439 # for store image with cloud-init metadata.
440 capacity: 1
441 format: raw
442 device: cdrom
443 bus: ide
444 cloudinit_meta_data: *cloudinit_meta_data
445 cloudinit_user_data: *cloudinit_user_data_1604
446
447 interfaces: *interfaces
448 network_config: *network_config
449
450 - name: {{ HOSTNAME_CTL03 }}
451 role: salt_minion
452 params:
453 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300454 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300455 boot:
456 - hd
457 cloud_init_volume_name: iso
458 cloud_init_iface_up: ens3
459 volumes:
460 - name: system
461 capacity: !os_env NODE_VOLUME_SIZE, 150
462 backing_store: mcp_ubuntu_1604_image
463 format: qcow2
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300464 - name: iso # Volume with name 'iso' will be used
465 # for store image with cloud-init metadata.
466 capacity: 1
467 format: raw
468 device: cdrom
469 bus: ide
470 cloudinit_meta_data: *cloudinit_meta_data
471 cloudinit_user_data: *cloudinit_user_data_1604
472
473 interfaces: *interfaces
474 network_config: *network_config
475
476 - name: {{ HOSTNAME_CMP01 }}
477 role: salt_minion
478 params:
479 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300480 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300481 boot:
482 - hd
483 cloud_init_volume_name: iso
484 cloud_init_iface_up: ens3
485 volumes:
486 - name: system
487 capacity: !os_env NODE_VOLUME_SIZE, 150
488 backing_store: mcp_ubuntu_1604_image
489 format: qcow2
490 - name: iso # Volume with name 'iso' will be used
491 # for store image with cloud-init metadata.
492 capacity: 1
493 format: raw
494 device: cdrom
495 bus: ide
496 cloudinit_meta_data: *cloudinit_meta_data
497 cloudinit_user_data: *cloudinit_user_data_1604
498
499 interfaces: *interfaces
500 network_config: *network_config
501
502 - name: {{ HOSTNAME_CMP02 }}
503 role: salt_minion
504 params:
505 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrieveb50ce12018-09-27 13:34:32 +0300506 memory: !os_env SLAVE_NODE_MEMORY, 4096
507 boot:
508 - hd
509 cloud_init_volume_name: iso
510 cloud_init_iface_up: ens3
511 volumes:
512 - name: system
513 capacity: !os_env NODE_VOLUME_SIZE, 150
514 backing_store: mcp_ubuntu_1604_image
515 format: qcow2
516 - name: iso # Volume with name 'iso' will be used
517 # for store image with cloud-init metadata.
518 capacity: 1
519 format: raw
520 device: cdrom
521 bus: ide
522 cloudinit_meta_data: *cloudinit_meta_data
523 cloudinit_user_data: *cloudinit_user_data_1604
524
525 interfaces: *interfaces
526 network_config: *network_config
527
528 - name: {{ HOSTNAME_CMP03 }}
529 role: salt_minion
530 params:
531 vcpu: !os_env SLAVE_NODE_CPU, 2
532 memory: !os_env SLAVE_NODE_MEMORY, 4096
533 boot:
534 - hd
535 cloud_init_volume_name: iso
536 cloud_init_iface_up: ens3
537 volumes:
538 - name: system
539 capacity: !os_env NODE_VOLUME_SIZE, 150
540 backing_store: mcp_ubuntu_1604_image
541 format: qcow2
542 - name: iso # Volume with name 'iso' will be used
543 # for store image with cloud-init metadata.
544 capacity: 1
545 format: raw
546 device: cdrom
547 bus: ide
548 cloudinit_meta_data: *cloudinit_meta_data
549 cloudinit_user_data: *cloudinit_user_data_1604
550
551 interfaces: *interfaces
552 network_config: *network_config
553
554 - name: {{ HOSTNAME_CMP04 }}
555 role: salt_minion
556 params:
557 vcpu: !os_env SLAVE_NODE_CPU, 2
558 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev0f624a82018-06-11 12:57:13 +0300559 boot:
560 - hd
561 cloud_init_volume_name: iso
562 cloud_init_iface_up: ens3
563 volumes:
564 - name: system
565 capacity: !os_env NODE_VOLUME_SIZE, 150
566 backing_store: mcp_ubuntu_1604_image
567 format: qcow2
568 - name: iso # Volume with name 'iso' will be used
569 # for store image with cloud-init metadata.
570 capacity: 1
571 format: raw
572 device: cdrom
573 bus: ide
574 cloudinit_meta_data: *cloudinit_meta_data
575 cloudinit_user_data: *cloudinit_user_data_1604
576
577 interfaces: *interfaces
578 network_config: *network_config
Dennis Dmitrievd181ec42018-11-07 15:15:04 +0200579
580 - name: {{ HOSTNAME_PRX01 }}
581 role: salt_minion
582 params:
583 vcpu: !os_env SLAVE_NODE_CPU, 1
584 memory: !os_env SLAVE_NODE_MEMORY, 2048
585 boot:
586 - hd
587 cloud_init_volume_name: iso
588 cloud_init_iface_up: ens3
589 volumes:
590 - name: system
591 capacity: !os_env NODE_VOLUME_SIZE, 150
592 backing_store: mcp_ubuntu_1604_image
593 format: qcow2
594 - name: iso # Volume with name 'iso' will be used
595 # for store image with cloud-init metadata.
596 capacity: 1
597 format: raw
598 device: cdrom
599 bus: ide
600 cloudinit_meta_data: *cloudinit_meta_data
601 cloudinit_user_data: *cloudinit_user_data_1604_swp
602
603 interfaces: *interfaces
604 network_config: *network_config
605
606 - name: {{ HOSTNAME_PRX02 }}
607 role: salt_minion
608 params:
609 vcpu: !os_env SLAVE_NODE_CPU, 1
610 memory: !os_env SLAVE_NODE_MEMORY, 2048
611 boot:
612 - hd
613 cloud_init_volume_name: iso
614 cloud_init_iface_up: ens3
615 volumes:
616 - name: system
617 capacity: !os_env NODE_VOLUME_SIZE, 150
618 backing_store: mcp_ubuntu_1604_image
619 format: qcow2
620 - name: iso # Volume with name 'iso' will be used
621 # for store image with cloud-init metadata.
622 capacity: 1
623 format: raw
624 device: cdrom
625 bus: ide
626 cloudinit_meta_data: *cloudinit_meta_data
627 cloudinit_user_data: *cloudinit_user_data_1604_swp
628
629 interfaces: *interfaces
630 network_config: *network_config