blob: 26456f7fe93186385a6fb67a5a0db4cb9ea25313 [file] [log] [blame]
Dennis Dmitriev47433912018-03-25 04:24:59 +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{% import 'cookied-mcp-pike-dvr-ssl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7
8---
9aliases:
10 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
11 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
12 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
13 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
14
15{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-pike-dvr-ssl') %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020016{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030017{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020021{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030023{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020026{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
31{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030032{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
33{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Oleksii Butenkod0fbed42018-11-05 13:26:09 +020034{% set HOSTNAME_MDB01 = os_env('HOSTNAME_MDB01', 'mdb01.' + DOMAIN_NAME) %}
35{% set HOSTNAME_MDB02 = os_env('HOSTNAME_MDB02', 'mdb02.' + DOMAIN_NAME) %}
36{% set HOSTNAME_MDB03 = os_env('HOSTNAME_MDB03', 'mdb03.' + DOMAIN_NAME) %}
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020037{% set HOSTNAME_SHARE01 = os_env('HOSTNAME_SHARE01', 'share01.' + DOMAIN_NAME) %}
Dennis Dmitriev47433912018-03-25 04:24:59 +030038
39template:
40 devops_settings:
41 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ssl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
42
43 address_pools:
44 private-pool01:
45 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
46 params:
47 ip_reserved:
48 gateway: +1
49 l2_network_device: +1
50 default_{{ HOSTNAME_CFG01 }}: +100
51 default_{{ HOSTNAME_CTL01 }}: +101
52 default_{{ HOSTNAME_CTL02 }}: +102
53 default_{{ HOSTNAME_CTL03 }}: +103
54 default_{{ HOSTNAME_CMP01 }}: +105
55 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020056 default_{{ HOSTNAME_MON01 }}: +71
57 default_{{ HOSTNAME_MON02 }}: +72
58 default_{{ HOSTNAME_MON03 }}: +73
59 default_{{ HOSTNAME_LOG01 }}: +61
60 default_{{ HOSTNAME_LOG02 }}: +62
61 default_{{ HOSTNAME_LOG03 }}: +63
62 default_{{ HOSTNAME_MTR01 }}: +86
63 default_{{ HOSTNAME_MTR02 }}: +87
64 default_{{ HOSTNAME_MTR03 }}: +88
Oleksii Butenkod0fbed42018-11-05 13:26:09 +020065 default_{{ HOSTNAME_MDB01 }}: +97
66 default_{{ HOSTNAME_MDB02 }}: +98
67 default_{{ HOSTNAME_MDB03 }}: +99
Dennis Dmitriev47433912018-03-25 04:24:59 +030068 default_{{ HOSTNAME_GTW01 }}: +110
69 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020070 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +030071 ip_ranges:
72 dhcp: [+90, -10]
73
74 admin-pool01:
75 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
76 params:
77 ip_reserved:
78 gateway: +1
79 l2_network_device: +1
80 default_{{ HOSTNAME_CFG01 }}: +90
81 default_{{ HOSTNAME_CTL01 }}: +101
82 default_{{ HOSTNAME_CTL02 }}: +102
83 default_{{ HOSTNAME_CTL03 }}: +103
84 default_{{ HOSTNAME_CMP01 }}: +105
85 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +020086 default_{{ HOSTNAME_MON01 }}: +71
87 default_{{ HOSTNAME_MON02 }}: +72
88 default_{{ HOSTNAME_MON03 }}: +73
89 default_{{ HOSTNAME_LOG01 }}: +61
90 default_{{ HOSTNAME_LOG02 }}: +62
91 default_{{ HOSTNAME_LOG03 }}: +63
92 default_{{ HOSTNAME_MTR01 }}: +86
93 default_{{ HOSTNAME_MTR02 }}: +87
94 default_{{ HOSTNAME_MTR03 }}: +88
Oleksii Butenkod0fbed42018-11-05 13:26:09 +020095 default_{{ HOSTNAME_MDB01 }}: +97
96 default_{{ HOSTNAME_MDB02 }}: +98
97 default_{{ HOSTNAME_MDB03 }}: +99
Dennis Dmitriev47433912018-03-25 04:24:59 +030098 default_{{ HOSTNAME_GTW01 }}: +110
99 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200100 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +0300101 ip_ranges:
102 dhcp: [+90, -10]
103
104 tenant-pool01:
105 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
106 params:
107 ip_reserved:
108 gateway: +1
109 l2_network_device: +1
110 default_{{ HOSTNAME_CFG01 }}: +100
111 default_{{ HOSTNAME_CTL01 }}: +101
112 default_{{ HOSTNAME_CTL02 }}: +102
113 default_{{ HOSTNAME_CTL03 }}: +103
114 default_{{ HOSTNAME_CMP01 }}: +105
115 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200116 default_{{ HOSTNAME_MON01 }}: +71
117 default_{{ HOSTNAME_MON02 }}: +72
118 default_{{ HOSTNAME_MON03 }}: +73
119 default_{{ HOSTNAME_LOG01 }}: +61
120 default_{{ HOSTNAME_LOG02 }}: +62
121 default_{{ HOSTNAME_LOG03 }}: +63
122 default_{{ HOSTNAME_MTR01 }}: +86
123 default_{{ HOSTNAME_MTR02 }}: +87
124 default_{{ HOSTNAME_MTR03 }}: +88
Oleksii Butenkod0fbed42018-11-05 13:26:09 +0200125 default_{{ HOSTNAME_MDB01 }}: +97
126 default_{{ HOSTNAME_MDB02 }}: +98
127 default_{{ HOSTNAME_MDB03 }}: +99
Dennis Dmitriev47433912018-03-25 04:24:59 +0300128 default_{{ HOSTNAME_GTW01 }}: +110
129 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200130 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +0300131 ip_ranges:
132 dhcp: [+10, -10]
133
134 external-pool01:
135 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
136 params:
137 ip_reserved:
138 gateway: +1
139 l2_network_device: +1
140 default_{{ HOSTNAME_CFG01 }}: +100
141 default_{{ HOSTNAME_CTL01 }}: +101
142 default_{{ HOSTNAME_CTL02 }}: +102
143 default_{{ HOSTNAME_CTL03 }}: +103
144 default_{{ HOSTNAME_CMP01 }}: +105
145 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200146 default_{{ HOSTNAME_MON01 }}: +71
147 default_{{ HOSTNAME_MON02 }}: +72
148 default_{{ HOSTNAME_MON03 }}: +73
149 default_{{ HOSTNAME_LOG01 }}: +61
150 default_{{ HOSTNAME_LOG02 }}: +62
151 default_{{ HOSTNAME_LOG03 }}: +63
152 default_{{ HOSTNAME_MTR01 }}: +86
153 default_{{ HOSTNAME_MTR02 }}: +87
154 default_{{ HOSTNAME_MTR03 }}: +88
Oleksii Butenkod0fbed42018-11-05 13:26:09 +0200155 default_{{ HOSTNAME_MDB01 }}: +97
156 default_{{ HOSTNAME_MDB02 }}: +98
157 default_{{ HOSTNAME_MDB03 }}: +99
Dennis Dmitriev47433912018-03-25 04:24:59 +0300158 default_{{ HOSTNAME_GTW01 }}: +110
159 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200160 default_{{ HOSTNAME_SHARE01 }}: +204
Dennis Dmitriev47433912018-03-25 04:24:59 +0300161 ip_ranges:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200162 dhcp: [+130, +220]
Dennis Dmitriev47433912018-03-25 04:24:59 +0300163
164
165 groups:
166 - name: default
167 driver:
168 name: devops.driver.libvirt
169 params:
170 connection_string: !os_env CONNECTION_STRING, qemu:///system
171 storage_pool_name: !os_env STORAGE_POOL_NAME, default
172 stp: False
173 hpet: False
174 enable_acpi: true
175 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
176 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
177
178 network_pools:
179 admin: admin-pool01
180 private: private-pool01
181 tenant: tenant-pool01
182 external: external-pool01
183
184 l2_network_devices:
185 private:
186 address_pool: private-pool01
187 dhcp: false
188 forward:
189 mode: route
190
191 admin:
192 address_pool: admin-pool01
193 dhcp: true
194 forward:
195 mode: nat
196
197 tenant:
198 address_pool: tenant-pool01
199 dhcp: false
200
201 external:
202 address_pool: external-pool01
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200203 dhcp: false
Dennis Dmitriev47433912018-03-25 04:24:59 +0300204 forward:
Dennis Dmitriev2cb23932018-05-01 01:47:34 +0300205 mode: route
Dennis Dmitriev47433912018-03-25 04:24:59 +0300206
207
208 group_volumes:
209 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
210 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
211 format: qcow2
212 - name: cfg01_day01_image # Pre-configured day01 image
213 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
214 format: qcow2
215 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
216 source_image: !os_env MCP_IMAGE_PATH1604
217 format: qcow2
218
219 nodes:
220 - name: {{ HOSTNAME_CFG01 }}
221 role: salt_master
222 params:
223 vcpu: !os_env SLAVE_NODE_CPU, 2
224 memory: !os_env SLAVE_NODE_MEMORY, 8192
225 boot:
226 - hd
227 cloud_init_volume_name: iso
228 cloud_init_iface_up: ens3
229 volumes:
230 - name: system
231 capacity: !os_env NODE_VOLUME_SIZE, 150
232 backing_store: cfg01_day01_image
233 format: qcow2
234 - name: iso # Volume with name 'iso' will be used
235 # for store image with cloud-init metadata.
236 capacity: 1
237 format: raw
238 device: cdrom
239 bus: ide
240 cloudinit_meta_data: *cloudinit_meta_data
241 cloudinit_user_data: *cloudinit_user_data_cfg01
242
243 interfaces:
244 - label: ens3
245 l2_network_device: admin
246 interface_model: *interface_model
247 - label: ens4
248 l2_network_device: private
249 interface_model: *interface_model
250 network_config:
251 ens3:
252 networks:
253 - admin
254 ens4:
255 networks:
256 - private
257
258 - name: {{ HOSTNAME_CTL01 }}
259 role: salt_minion
260 params:
261 vcpu: !os_env SLAVE_NODE_CPU, 2
262 memory: !os_env SLAVE_NODE_MEMORY, 16384
263 boot:
264 - hd
265 cloud_init_volume_name: iso
266 cloud_init_iface_up: ens3
267 volumes:
268 - name: system
269 capacity: !os_env NODE_VOLUME_SIZE, 150
270 backing_store: mcp_ubuntu_1604_image
271 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300272 - name: iso # Volume with name 'iso' will be used
273 # for store image with cloud-init metadata.
274 capacity: 1
275 format: raw
276 device: cdrom
277 bus: ide
278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
280
281 interfaces: &interfaces
282 - label: ens3
283 l2_network_device: admin
284 interface_model: *interface_model
285 - label: ens4
286 l2_network_device: private
287 interface_model: *interface_model
288 network_config: &network_config
289 ens3:
290 networks:
291 - admin
292 ens4:
293 networks:
294 - private
295
296 - name: {{ HOSTNAME_CTL02 }}
297 role: salt_minion
298 params:
299 vcpu: !os_env SLAVE_NODE_CPU, 2
300 memory: !os_env SLAVE_NODE_MEMORY, 16384
301 boot:
302 - hd
303 cloud_init_volume_name: iso
304 cloud_init_iface_up: ens3
305 volumes:
306 - name: system
307 capacity: !os_env NODE_VOLUME_SIZE, 150
308 backing_store: mcp_ubuntu_1604_image
309 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300310 - name: iso # Volume with name 'iso' will be used
311 # for store image with cloud-init metadata.
312 capacity: 1
313 format: raw
314 device: cdrom
315 bus: ide
316 cloudinit_meta_data: *cloudinit_meta_data
317 cloudinit_user_data: *cloudinit_user_data_1604
318
319 interfaces: *interfaces
320 network_config: *network_config
321
322 - name: {{ HOSTNAME_CTL03 }}
323 role: salt_minion
324 params:
325 vcpu: !os_env SLAVE_NODE_CPU, 2
326 memory: !os_env SLAVE_NODE_MEMORY, 16384
327 boot:
328 - hd
329 cloud_init_volume_name: iso
330 cloud_init_iface_up: ens3
331 volumes:
332 - name: system
333 capacity: !os_env NODE_VOLUME_SIZE, 150
334 backing_store: mcp_ubuntu_1604_image
335 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300336 - name: iso # Volume with name 'iso' will be used
337 # for store image with cloud-init metadata.
338 capacity: 1
339 format: raw
340 device: cdrom
341 bus: ide
342 cloudinit_meta_data: *cloudinit_meta_data
343 cloudinit_user_data: *cloudinit_user_data_1604
344
345 interfaces: *interfaces
346 network_config: *network_config
347
Oleksii Butenkod0fbed42018-11-05 13:26:09 +0200348 - name: {{ HOSTNAME_MDB01 }}
349 role: salt_minion
350 params:
351 vcpu: !os_env SLAVE_NODE_CPU, 2
352 memory: !os_env SLAVE_NODE_MEMORY, 8192
353 boot:
354 - hd
355 cloud_init_volume_name: iso
356 cloud_init_iface_up: ens3
357 volumes:
358 - name: system
359 capacity: !os_env NODE_VOLUME_SIZE, 150
360 backing_store: mcp_ubuntu_1604_image
361 format: qcow2
362 - name: cinder
363 capacity: 50
364 format: qcow2
365 - name: iso # Volume with name 'iso' will be used
366 # for store image with cloud-init metadata.
367 capacity: 1
368 format: raw
369 device: cdrom
370 bus: ide
371 cloudinit_meta_data: *cloudinit_meta_data
372 cloudinit_user_data: *cloudinit_user_data_1604
373
374 interfaces: *interfaces
375 network_config: *network_config
376
377 - name: {{ HOSTNAME_MDB02 }}
378 role: salt_minion
379 params:
380 vcpu: !os_env SLAVE_NODE_CPU, 2
381 memory: !os_env SLAVE_NODE_MEMORY, 8192
382 boot:
383 - hd
384 cloud_init_volume_name: iso
385 cloud_init_iface_up: ens3
386 volumes:
387 - name: system
388 capacity: !os_env NODE_VOLUME_SIZE, 150
389 backing_store: mcp_ubuntu_1604_image
390 format: qcow2
391 - name: cinder
392 capacity: 50
393 format: qcow2
394 - name: iso # Volume with name 'iso' will be used
395 # for store image with cloud-init metadata.
396 capacity: 1
397 format: raw
398 device: cdrom
399 bus: ide
400 cloudinit_meta_data: *cloudinit_meta_data
401 cloudinit_user_data: *cloudinit_user_data_1604
402
403 interfaces: *interfaces
404 network_config: *network_config
405
406 - name: {{ HOSTNAME_MDB03 }}
407 role: salt_minion
408 params:
409 vcpu: !os_env SLAVE_NODE_CPU, 2
410 memory: !os_env SLAVE_NODE_MEMORY, 8192
411 boot:
412 - hd
413 cloud_init_volume_name: iso
414 cloud_init_iface_up: ens3
415 volumes:
416 - name: system
417 capacity: !os_env NODE_VOLUME_SIZE, 150
418 backing_store: mcp_ubuntu_1604_image
419 format: qcow2
420 - name: cinder
421 capacity: 50
422 format: qcow2
423 - name: iso # Volume with name 'iso' will be used
424 # for store image with cloud-init metadata.
425 capacity: 1
426 format: raw
427 device: cdrom
428 bus: ide
429 cloudinit_meta_data: *cloudinit_meta_data
430 cloudinit_user_data: *cloudinit_user_data_1604
431
432 interfaces: *interfaces
433 network_config: *network_config
434
Dennis Dmitriev47433912018-03-25 04:24:59 +0300435 - name: {{ HOSTNAME_MON01 }}
436 role: salt_minion
437 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200438 vcpu: !os_env SLAVE_NODE_CPU, 2
439 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300440 boot:
441 - hd
442 cloud_init_volume_name: iso
443 cloud_init_iface_up: ens3
444 volumes:
445 - name: system
446 capacity: !os_env NODE_VOLUME_SIZE, 150
447 backing_store: mcp_ubuntu_1604_image
448 format: qcow2
449 - name: iso # Volume with name 'iso' will be used
450 # for store image with cloud-init metadata.
451 capacity: 1
452 format: raw
453 device: cdrom
454 bus: ide
455 cloudinit_meta_data: *cloudinit_meta_data
456 cloudinit_user_data: *cloudinit_user_data_1604
457
458 interfaces: *interfaces
459 network_config: *network_config
460
461 - name: {{ HOSTNAME_MON02 }}
462 role: salt_minion
463 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200464 vcpu: !os_env SLAVE_NODE_CPU, 2
465 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300466 boot:
467 - hd
468 cloud_init_volume_name: iso
469 cloud_init_iface_up: ens3
470 volumes:
471 - name: system
472 capacity: !os_env NODE_VOLUME_SIZE, 150
473 backing_store: mcp_ubuntu_1604_image
474 format: qcow2
475 - name: iso # Volume with name 'iso' will be used
476 # for store image with cloud-init metadata.
477 capacity: 1
478 format: raw
479 device: cdrom
480 bus: ide
481 cloudinit_meta_data: *cloudinit_meta_data
482 cloudinit_user_data: *cloudinit_user_data_1604
483
484 interfaces: *interfaces
485 network_config: *network_config
486
487 - name: {{ HOSTNAME_MON03 }}
488 role: salt_minion
489 params:
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200490 vcpu: !os_env SLAVE_NODE_CPU, 2
491 memory: !os_env SLAVE_NODE_MEMORY, 4096
492 boot:
493 - hd
494 cloud_init_volume_name: iso
495 cloud_init_iface_up: ens3
496 volumes:
497 - name: system
498 capacity: !os_env NODE_VOLUME_SIZE, 150
499 backing_store: mcp_ubuntu_1604_image
500 format: qcow2
501 - name: iso # Volume with name 'iso' will be used
502 # for store image with cloud-init metadata.
503 capacity: 1
504 format: raw
505 device: cdrom
506 bus: ide
507 cloudinit_meta_data: *cloudinit_meta_data
508 cloudinit_user_data: *cloudinit_user_data_1604
509
510 interfaces: *interfaces
511 network_config: *network_config
512
513 - name: {{ HOSTNAME_LOG01 }}
514 role: salt_minion
515 params:
516 vcpu: !os_env SLAVE_NODE_CPU, 2
517 memory: !os_env SLAVE_NODE_MEMORY, 4096
518 boot:
519 - hd
520 cloud_init_volume_name: iso
521 cloud_init_iface_up: ens3
522 volumes:
523 - name: system
524 capacity: !os_env NODE_VOLUME_SIZE, 150
525 backing_store: mcp_ubuntu_1604_image
526 format: qcow2
527 - name: iso # Volume with name 'iso' will be used
528 # for store image with cloud-init metadata.
529 capacity: 1
530 format: raw
531 device: cdrom
532 bus: ide
533 cloudinit_meta_data: *cloudinit_meta_data
534 cloudinit_user_data: *cloudinit_user_data_1604
535
536 interfaces: *interfaces
537 network_config: *network_config
538
539 - name: {{ HOSTNAME_LOG02 }}
540 role: salt_minion
541 params:
542 vcpu: !os_env SLAVE_NODE_CPU, 2
543 memory: !os_env SLAVE_NODE_MEMORY, 4096
544 boot:
545 - hd
546 cloud_init_volume_name: iso
547 cloud_init_iface_up: ens3
548 volumes:
549 - name: system
550 capacity: !os_env NODE_VOLUME_SIZE, 150
551 backing_store: mcp_ubuntu_1604_image
552 format: qcow2
553 - name: iso # Volume with name 'iso' will be used
554 # for store image with cloud-init metadata.
555 capacity: 1
556 format: raw
557 device: cdrom
558 bus: ide
559 cloudinit_meta_data: *cloudinit_meta_data
560 cloudinit_user_data: *cloudinit_user_data_1604
561
562 interfaces: *interfaces
563 network_config: *network_config
564
565 - name: {{ HOSTNAME_LOG03 }}
566 role: salt_minion
567 params:
568 vcpu: !os_env SLAVE_NODE_CPU, 2
569 memory: !os_env SLAVE_NODE_MEMORY, 4096
570 boot:
571 - hd
572 cloud_init_volume_name: iso
573 cloud_init_iface_up: ens3
574 volumes:
575 - name: system
576 capacity: !os_env NODE_VOLUME_SIZE, 150
577 backing_store: mcp_ubuntu_1604_image
578 format: qcow2
579 - name: iso # Volume with name 'iso' will be used
580 # for store image with cloud-init metadata.
581 capacity: 1
582 format: raw
583 device: cdrom
584 bus: ide
585 cloudinit_meta_data: *cloudinit_meta_data
586 cloudinit_user_data: *cloudinit_user_data_1604
587
588 interfaces: *interfaces
589 network_config: *network_config
590
591 - name: {{ HOSTNAME_MTR01 }}
592 role: salt_minion
593 params:
594 vcpu: !os_env SLAVE_NODE_CPU, 2
595 memory: !os_env SLAVE_NODE_MEMORY, 4096
596 boot:
597 - hd
598 cloud_init_volume_name: iso
599 cloud_init_iface_up: ens3
600 volumes:
601 - name: system
602 capacity: !os_env NODE_VOLUME_SIZE, 150
603 backing_store: mcp_ubuntu_1604_image
604 format: qcow2
605 - name: iso # Volume with name 'iso' will be used
606 # for store image with cloud-init metadata.
607 capacity: 1
608 format: raw
609 device: cdrom
610 bus: ide
611 cloudinit_meta_data: *cloudinit_meta_data
612 cloudinit_user_data: *cloudinit_user_data_1604
613
614 interfaces: *interfaces
615 network_config: *network_config
616
617 - name: {{ HOSTNAME_MTR02 }}
618 role: salt_minion
619 params:
620 vcpu: !os_env SLAVE_NODE_CPU, 2
621 memory: !os_env SLAVE_NODE_MEMORY, 4096
622 boot:
623 - hd
624 cloud_init_volume_name: iso
625 cloud_init_iface_up: ens3
626 volumes:
627 - name: system
628 capacity: !os_env NODE_VOLUME_SIZE, 150
629 backing_store: mcp_ubuntu_1604_image
630 format: qcow2
631 - name: iso # Volume with name 'iso' will be used
632 # for store image with cloud-init metadata.
633 capacity: 1
634 format: raw
635 device: cdrom
636 bus: ide
637 cloudinit_meta_data: *cloudinit_meta_data
638 cloudinit_user_data: *cloudinit_user_data_1604
639
640 interfaces: *interfaces
641 network_config: *network_config
642
643 - name: {{ HOSTNAME_MTR03 }}
644 role: salt_minion
645 params:
646 vcpu: !os_env SLAVE_NODE_CPU, 2
647 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev47433912018-03-25 04:24:59 +0300648 boot:
649 - hd
650 cloud_init_volume_name: iso
651 cloud_init_iface_up: ens3
652 volumes:
653 - name: system
654 capacity: !os_env NODE_VOLUME_SIZE, 150
655 backing_store: mcp_ubuntu_1604_image
656 format: qcow2
657 - name: iso # Volume with name 'iso' will be used
658 # for store image with cloud-init metadata.
659 capacity: 1
660 format: raw
661 device: cdrom
662 bus: ide
663 cloudinit_meta_data: *cloudinit_meta_data
664 cloudinit_user_data: *cloudinit_user_data_1604
665
666 interfaces: *interfaces
667 network_config: *network_config
668
669 - name: {{ HOSTNAME_PRX01 }}
670 role: salt_minion
671 params:
672 vcpu: !os_env SLAVE_NODE_CPU, 1
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200673 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev47433912018-03-25 04:24:59 +0300674 boot:
675 - hd
676 cloud_init_volume_name: iso
677 cloud_init_iface_up: ens3
678 volumes:
679 - name: system
680 capacity: !os_env NODE_VOLUME_SIZE, 150
681 backing_store: mcp_ubuntu_1604_image
682 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300683 - name: iso # Volume with name 'iso' will be used
684 # for store image with cloud-init metadata.
685 capacity: 1
686 format: raw
687 device: cdrom
688 bus: ide
689 cloudinit_meta_data: *cloudinit_meta_data
690 cloudinit_user_data: *cloudinit_user_data_1604
691
692 interfaces: *interfaces
693 network_config: *network_config
694
695
696 - name: {{ HOSTNAME_CMP01 }}
697 role: salt_minion
698 params:
699 vcpu: !os_env SLAVE_NODE_CPU, 3
700 memory: !os_env SLAVE_NODE_MEMORY, 4096
701 boot:
702 - hd
703 cloud_init_volume_name: iso
704 cloud_init_iface_up: ens3
705 volumes:
706 - name: system
707 capacity: !os_env NODE_VOLUME_SIZE, 150
708 backing_store: cloudimage1604
709 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300710 - name: cinder
711 capacity: 50
712 format: qcow2
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200713 - name: manila
714 capacity: 20
715 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300716 - name: iso # Volume with name 'iso' will be used
717 # for store image with cloud-init metadata.
718 capacity: 1
719 format: raw
720 device: cdrom
721 bus: ide
722 cloudinit_meta_data: *cloudinit_meta_data
723 cloudinit_user_data: *cloudinit_user_data_1604
724
725
726 interfaces: &all_interfaces
727 - label: ens3
728 l2_network_device: admin
729 interface_model: *interface_model
730 - label: ens4
731 l2_network_device: private
732 interface_model: *interface_model
733 - label: ens5
734 l2_network_device: tenant
735 interface_model: *interface_model
736 - label: ens6
737 l2_network_device: external
738 interface_model: *interface_model
739 network_config: &all_network_config
740 ens3:
741 networks:
742 - admin
743 ens4:
744 networks:
745 - private
746 ens5:
747 networks:
748 - tenant
749 ens6:
750 networks:
751 - external
752
753 - name: {{ HOSTNAME_CMP02 }}
754 role: salt_minion
755 params:
756 vcpu: !os_env SLAVE_NODE_CPU, 3
757 memory: !os_env SLAVE_NODE_MEMORY, 4096
758 boot:
759 - hd
760 cloud_init_volume_name: iso
761 cloud_init_iface_up: ens3
762 volumes:
763 - name: system
764 capacity: !os_env NODE_VOLUME_SIZE, 150
765 backing_store: cloudimage1604
766 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300767 - name: cinder
768 capacity: 50
769 format: qcow2
Oleksii Butenkoe448c5c2018-10-30 11:57:53 +0200770 - name: manila
771 capacity: 20
772 format: qcow2
Dennis Dmitriev47433912018-03-25 04:24:59 +0300773 - name: iso # Volume with name 'iso' will be used
774 # for store image with cloud-init metadata.
775 capacity: 1
776 format: raw
777 device: cdrom
778 bus: ide
779 cloudinit_meta_data: *cloudinit_meta_data
780 cloudinit_user_data: *cloudinit_user_data_1604
781
782 interfaces: *all_interfaces
783 network_config: *all_network_config
784
785 - name: {{ HOSTNAME_GTW01 }}
786 role: salt_minion
787 params:
788 vcpu: !os_env SLAVE_NODE_CPU, 4
789 memory: !os_env SLAVE_NODE_MEMORY, 4096
790 boot:
791 - hd
792 cloud_init_volume_name: iso
793 cloud_init_iface_up: ens3
794 volumes:
795 - name: system
796 capacity: !os_env NODE_VOLUME_SIZE, 150
797 backing_store: cloudimage1604
798 format: qcow2
799 - name: iso # Volume with name 'iso' will be used
800 # for store image with cloud-init metadata.
801 capacity: 1
802 format: raw
803 device: cdrom
804 bus: ide
805 cloudinit_meta_data: *cloudinit_meta_data
806 cloudinit_user_data: *cloudinit_user_data_1604
807
808 interfaces: *all_interfaces
809 network_config: *all_network_config