blob: 7a905e694ea67561e3b9fcb83496ea48c2cbe4ab [file] [log] [blame]
Tatyana Leontovich56005da2017-12-11 13:16:51 +02001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
3
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02004{% import 'virtual-mcp-pike-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02007
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-pike-dvr') %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020016{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
17{% 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) %}
21{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020023{% 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) %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020026{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020027{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020029{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
30
31template:
32 devops_settings:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020033 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020034
35 address_pools:
36 private-pool01:
37 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
38 params:
39 ip_reserved:
40 gateway: +1
41 l2_network_device: +1
42 default_{{ HOSTNAME_CFG01 }}: +100
43 default_{{ HOSTNAME_CTL01 }}: +101
44 default_{{ HOSTNAME_CTL02 }}: +102
45 default_{{ HOSTNAME_CTL03 }}: +103
46 default_{{ HOSTNAME_CMP01 }}: +105
47 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020048 default_{{ HOSTNAME_MON01 }}: +107
49 default_{{ HOSTNAME_MON02 }}: +108
50 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020051 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020052 default_{{ HOSTNAME_DNS01 }}: +111
53 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich56005da2017-12-11 13:16:51 +020054 default_{{ HOSTNAME_PRX01 }}: +121
55 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020056 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020057
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 }}: +90
65 default_{{ HOSTNAME_CTL01 }}: +101
66 default_{{ HOSTNAME_CTL02 }}: +102
67 default_{{ HOSTNAME_CTL03 }}: +103
68 default_{{ HOSTNAME_CMP01 }}: +105
69 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020070 default_{{ HOSTNAME_MON01 }}: +107
71 default_{{ HOSTNAME_MON02 }}: +108
72 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020073 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020074 default_{{ HOSTNAME_DNS01 }}: +111
75 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich56005da2017-12-11 13:16:51 +020076 default_{{ HOSTNAME_PRX01 }}: +121
77 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020078 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020079
80 tenant-pool01:
81 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
82 params:
83 ip_reserved:
84 gateway: +1
85 l2_network_device: +1
86 default_{{ HOSTNAME_CFG01 }}: +100
87 default_{{ HOSTNAME_CTL01 }}: +101
88 default_{{ HOSTNAME_CTL02 }}: +102
89 default_{{ HOSTNAME_CTL03 }}: +103
90 default_{{ HOSTNAME_CMP01 }}: +105
91 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020092 default_{{ HOSTNAME_MON01 }}: +107
93 default_{{ HOSTNAME_MON02 }}: +108
94 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020095 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020096 default_{{ HOSTNAME_DNS01 }}: +111
97 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich56005da2017-12-11 13:16:51 +020098 default_{{ HOSTNAME_PRX01 }}: +121
99 ip_ranges:
100 dhcp: [+10, -10]
101
102 external-pool01:
103 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
104 params:
105 ip_reserved:
106 gateway: +1
107 l2_network_device: +1
108 default_{{ HOSTNAME_CFG01 }}: +100
109 default_{{ HOSTNAME_CTL01 }}: +101
110 default_{{ HOSTNAME_CTL02 }}: +102
111 default_{{ HOSTNAME_CTL03 }}: +103
112 default_{{ HOSTNAME_CMP01 }}: +105
113 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200114 default_{{ HOSTNAME_MON01 }}: +107
115 default_{{ HOSTNAME_MON02 }}: +108
116 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200117 default_{{ HOSTNAME_GTW01 }}: +110
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200118 default_{{ HOSTNAME_DNS01 }}: +111
119 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200120 default_{{ HOSTNAME_PRX01 }}: +121
121 ip_ranges:
122 dhcp: [+10, -10]
123
124
125 groups:
126 - name: default
127 driver:
128 name: devops.driver.libvirt
129 params:
130 connection_string: !os_env CONNECTION_STRING, qemu:///system
131 storage_pool_name: !os_env STORAGE_POOL_NAME, default
132 stp: False
133 hpet: False
134 enable_acpi: true
135 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
136 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
137
138 network_pools:
139 admin: admin-pool01
140 private: private-pool01
141 tenant: tenant-pool01
142 external: external-pool01
143
144 l2_network_devices:
145 private:
146 address_pool: private-pool01
147 dhcp: true
Dennis Dmitrieva5978eb2018-02-21 10:12:33 +0200148 forward:
149 mode: route
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200150
151 admin:
152 address_pool: admin-pool01
153 dhcp: true
154 forward:
155 mode: nat
156
157 tenant:
158 address_pool: tenant-pool01
159 dhcp: true
160
161 external:
162 address_pool: external-pool01
163 dhcp: true
164 forward:
165 mode: nat
166
167
168 group_volumes:
169 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200170 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
171 format: qcow2
172 - name: cfg01_day01_image # Pre-configured day01 image
173 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200174 format: qcow2
Tatyana Leontovichded29902018-01-30 09:53:34 +0200175 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
176 source_image: !os_env MCP_IMAGE_PATH1604
177 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200178
179 nodes:
180 - name: {{ HOSTNAME_CFG01 }}
181 role: salt_master
182 params:
183 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200184 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200185 boot:
186 - hd
187 cloud_init_volume_name: iso
188 cloud_init_iface_up: ens3
189 volumes:
190 - name: system
191 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200192 backing_store: cfg01_day01_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200193 format: qcow2
194 - name: iso # Volume with name 'iso' will be used
195 # for store image with cloud-init metadata.
196 capacity: 1
197 format: raw
198 device: cdrom
199 bus: ide
200 cloudinit_meta_data: *cloudinit_meta_data
201 cloudinit_user_data: *cloudinit_user_data_cfg01
202
203 interfaces:
204 - label: ens3
205 l2_network_device: admin
206 interface_model: *interface_model
207 - label: ens4
208 l2_network_device: private
209 interface_model: *interface_model
210 network_config:
211 ens3:
212 networks:
213 - admin
214 ens4:
215 networks:
216 - private
217
218 - name: {{ HOSTNAME_CTL01 }}
219 role: salt_minion
220 params:
221 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200222 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200223 boot:
224 - hd
225 cloud_init_volume_name: iso
226 cloud_init_iface_up: ens3
227 volumes:
228 - name: system
229 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200230 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200231 format: qcow2
232 - name: cinder
233 capacity: 50
234 format: qcow2
235 - name: iso # Volume with name 'iso' will be used
236 # for store image with cloud-init metadata.
237 capacity: 1
238 format: raw
239 device: cdrom
240 bus: ide
241 cloudinit_meta_data: *cloudinit_meta_data
242 cloudinit_user_data: *cloudinit_user_data_1604
243
244 interfaces: &interfaces
245 - label: ens3
246 l2_network_device: admin
247 interface_model: *interface_model
248 - label: ens4
249 l2_network_device: private
250 interface_model: *interface_model
251 network_config: &network_config
252 ens3:
253 networks:
254 - admin
255 ens4:
256 networks:
257 - private
258
259 - name: {{ HOSTNAME_CTL02 }}
260 role: salt_minion
261 params:
262 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200263 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200264 boot:
265 - hd
266 cloud_init_volume_name: iso
267 cloud_init_iface_up: ens3
268 volumes:
269 - name: system
270 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200271 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200272 format: qcow2
273 - name: cinder
274 capacity: 50
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
284
285 interfaces: *interfaces
286 network_config: *network_config
287
288 - name: {{ HOSTNAME_CTL03 }}
289 role: salt_minion
290 params:
291 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200292 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200300 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200301 format: qcow2
302 - name: cinder
303 capacity: 50
304 format: qcow2
305 - name: iso # Volume with name 'iso' will be used
306 # for store image with cloud-init metadata.
307 capacity: 1
308 format: raw
309 device: cdrom
310 bus: ide
311 cloudinit_meta_data: *cloudinit_meta_data
312 cloudinit_user_data: *cloudinit_user_data_1604
313
314 interfaces: *interfaces
315 network_config: *network_config
316
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200317 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200318 role: salt_minion
319 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200320 vcpu: !os_env SLAVE_NODE_CPU, 3
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200321 memory: !os_env SLAVE_NODE_MEMORY, 6144
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200329 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200330 format: qcow2
331 - name: iso # Volume with name 'iso' will be used
332 # for store image with cloud-init metadata.
333 capacity: 1
334 format: raw
335 device: cdrom
336 bus: ide
337 cloudinit_meta_data: *cloudinit_meta_data
338 cloudinit_user_data: *cloudinit_user_data_1604
339
340 interfaces: *interfaces
341 network_config: *network_config
342
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200343 - name: {{ HOSTNAME_MON02 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200344 role: salt_minion
345 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200346 vcpu: !os_env SLAVE_NODE_CPU, 3
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200347 memory: !os_env SLAVE_NODE_MEMORY, 6144
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200348 boot:
349 - hd
350 cloud_init_volume_name: iso
351 cloud_init_iface_up: ens3
352 volumes:
353 - name: system
354 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200355 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200356 format: qcow2
357 - name: iso # Volume with name 'iso' will be used
358 # for store image with cloud-init metadata.
359 capacity: 1
360 format: raw
361 device: cdrom
362 bus: ide
363 cloudinit_meta_data: *cloudinit_meta_data
364 cloudinit_user_data: *cloudinit_user_data_1604
365
366 interfaces: *interfaces
367 network_config: *network_config
368
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200369 - name: {{ HOSTNAME_MON03 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200370 role: salt_minion
371 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200372 vcpu: !os_env SLAVE_NODE_CPU, 3
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200373 memory: !os_env SLAVE_NODE_MEMORY, 6144
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200374 boot:
375 - hd
376 cloud_init_volume_name: iso
377 cloud_init_iface_up: ens3
378 volumes:
379 - name: system
380 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200381 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200382 format: qcow2
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385 capacity: 1
386 format: raw
387 device: cdrom
388 bus: ide
389 cloudinit_meta_data: *cloudinit_meta_data
390 cloudinit_user_data: *cloudinit_user_data_1604
391
392 interfaces: *interfaces
393 network_config: *network_config
394
395 - name: {{ HOSTNAME_PRX01 }}
396 role: salt_minion
397 params:
398 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200399 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200400 boot:
401 - hd
402 cloud_init_volume_name: iso
403 cloud_init_iface_up: ens3
404 volumes:
405 - name: system
406 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200407 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200408 format: qcow2
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200409 - name: cinder
410 capacity: 50
411 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200412 - 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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200424
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200425 - name: {{ HOSTNAME_CMP01 }}
426 role: salt_minion
427 params:
428 vcpu: !os_env SLAVE_NODE_CPU, 3
429 memory: !os_env SLAVE_NODE_MEMORY, 4096
430 boot:
431 - hd
432 cloud_init_volume_name: iso
433 cloud_init_iface_up: ens3
434 volumes:
435 - name: system
436 capacity: !os_env NODE_VOLUME_SIZE, 150
437 backing_store: cloudimage1604
438 format: qcow2
439 - name: iso # Volume with name 'iso' will be used
440 # for store image with cloud-init metadata.
441 capacity: 1
442 format: raw
443 device: cdrom
444 bus: ide
445 cloudinit_meta_data: *cloudinit_meta_data
446 cloudinit_user_data: *cloudinit_user_data_1604
447
448
449 interfaces: &all_interfaces
450 - label: ens3
451 l2_network_device: admin
452 interface_model: *interface_model
453 - label: ens4
454 l2_network_device: private
455 interface_model: *interface_model
456 - label: ens5
457 l2_network_device: tenant
458 interface_model: *interface_model
459 - label: ens6
460 l2_network_device: external
461 interface_model: *interface_model
462 network_config: &all_network_config
463 ens3:
464 networks:
465 - admin
466 ens4:
467 networks:
468 - private
469 ens5:
470 networks:
471 - tenant
472 ens6:
473 networks:
474 - external
475
476 - name: {{ HOSTNAME_CMP02 }}
477 role: salt_minion
478 params:
479 vcpu: !os_env SLAVE_NODE_CPU, 3
480 memory: !os_env SLAVE_NODE_MEMORY, 4096
481 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: cloudimage1604
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: *all_interfaces
500 network_config: *all_network_config
501
502 - name: {{ HOSTNAME_GTW01 }}
503 role: salt_minion
504 params:
505 vcpu: !os_env SLAVE_NODE_CPU, 1
506 memory: !os_env SLAVE_NODE_MEMORY, 2048
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: cloudimage1604
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: *all_interfaces
526 network_config: *all_network_config
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200527
528 - name: {{ HOSTNAME_DNS01 }}
529 role: salt_minion
530 params:
531 vcpu: !os_env SLAVE_NODE_CPU, 1
532 memory: !os_env SLAVE_NODE_MEMORY, 2048
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
Tatyana Leontovichded29902018-01-30 09:53:34 +0200540 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200541 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: *all_interfaces
552 network_config: *all_network_config
553
554 - name: {{ HOSTNAME_DNS02 }}
555 role: salt_minion
556 params:
557 vcpu: !os_env SLAVE_NODE_CPU, 1
558 memory: !os_env SLAVE_NODE_MEMORY, 2048
559 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
Tatyana Leontovichded29902018-01-30 09:53:34 +0200566 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200567 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: *all_interfaces
578 network_config: *all_network_config