blob: 3c678d20da6e35dc5cfff4f9e6a310549fb0d370 [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
148
149 admin:
150 address_pool: admin-pool01
151 dhcp: true
152 forward:
153 mode: nat
154
155 tenant:
156 address_pool: tenant-pool01
157 dhcp: true
158
159 external:
160 address_pool: external-pool01
161 dhcp: true
162 forward:
163 mode: nat
164
165
166 group_volumes:
167 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200168 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
169 format: qcow2
170 - name: cfg01_day01_image # Pre-configured day01 image
171 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 +0200172 format: qcow2
Tatyana Leontovichded29902018-01-30 09:53:34 +0200173 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
174 source_image: !os_env MCP_IMAGE_PATH1604
175 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200176
177 nodes:
178 - name: {{ HOSTNAME_CFG01 }}
179 role: salt_master
180 params:
181 vcpu: !os_env SLAVE_NODE_CPU, 2
182 memory: !os_env SLAVE_NODE_MEMORY, 4096
183 boot:
184 - hd
185 cloud_init_volume_name: iso
186 cloud_init_iface_up: ens3
187 volumes:
188 - name: system
189 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200190 backing_store: cfg01_day01_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200191 format: qcow2
192 - name: iso # Volume with name 'iso' will be used
193 # for store image with cloud-init metadata.
194 capacity: 1
195 format: raw
196 device: cdrom
197 bus: ide
198 cloudinit_meta_data: *cloudinit_meta_data
199 cloudinit_user_data: *cloudinit_user_data_cfg01
200
201 interfaces:
202 - 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
208 network_config:
209 ens3:
210 networks:
211 - admin
212 ens4:
213 networks:
214 - private
215
216 - name: {{ HOSTNAME_CTL01 }}
217 role: salt_minion
218 params:
219 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200220 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200221 boot:
222 - hd
223 cloud_init_volume_name: iso
224 cloud_init_iface_up: ens3
225 volumes:
226 - name: system
227 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200228 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200229 format: qcow2
230 - name: cinder
231 capacity: 50
232 format: qcow2
233 - name: iso # Volume with name 'iso' will be used
234 # for store image with cloud-init metadata.
235 capacity: 1
236 format: raw
237 device: cdrom
238 bus: ide
239 cloudinit_meta_data: *cloudinit_meta_data
240 cloudinit_user_data: *cloudinit_user_data_1604
241
242 interfaces: &interfaces
243 - label: ens3
244 l2_network_device: admin
245 interface_model: *interface_model
246 - label: ens4
247 l2_network_device: private
248 interface_model: *interface_model
249 network_config: &network_config
250 ens3:
251 networks:
252 - admin
253 ens4:
254 networks:
255 - private
256
257 - name: {{ HOSTNAME_CTL02 }}
258 role: salt_minion
259 params:
260 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200261 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200262 boot:
263 - hd
264 cloud_init_volume_name: iso
265 cloud_init_iface_up: ens3
266 volumes:
267 - name: system
268 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200269 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200270 format: qcow2
271 - name: cinder
272 capacity: 50
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
282
283 interfaces: *interfaces
284 network_config: *network_config
285
286 - name: {{ HOSTNAME_CTL03 }}
287 role: salt_minion
288 params:
289 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200290 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200291 boot:
292 - hd
293 cloud_init_volume_name: iso
294 cloud_init_iface_up: ens3
295 volumes:
296 - name: system
297 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200298 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200299 format: qcow2
300 - name: cinder
301 capacity: 50
302 format: qcow2
303 - name: iso # Volume with name 'iso' will be used
304 # for store image with cloud-init metadata.
305 capacity: 1
306 format: raw
307 device: cdrom
308 bus: ide
309 cloudinit_meta_data: *cloudinit_meta_data
310 cloudinit_user_data: *cloudinit_user_data_1604
311
312 interfaces: *interfaces
313 network_config: *network_config
314
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200315 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200316 role: salt_minion
317 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200318 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200319 memory: !os_env SLAVE_NODE_MEMORY, 2048
320 boot:
321 - hd
322 cloud_init_volume_name: iso
323 cloud_init_iface_up: ens3
324 volumes:
325 - name: system
326 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200327 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200328 format: qcow2
329 - name: iso # Volume with name 'iso' will be used
330 # for store image with cloud-init metadata.
331 capacity: 1
332 format: raw
333 device: cdrom
334 bus: ide
335 cloudinit_meta_data: *cloudinit_meta_data
336 cloudinit_user_data: *cloudinit_user_data_1604
337
338 interfaces: *interfaces
339 network_config: *network_config
340
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200341 - name: {{ HOSTNAME_MON02 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200342 role: salt_minion
343 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200344 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200345 memory: !os_env SLAVE_NODE_MEMORY, 2048
346 boot:
347 - hd
348 cloud_init_volume_name: iso
349 cloud_init_iface_up: ens3
350 volumes:
351 - name: system
352 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200353 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200354 format: qcow2
355 - name: iso # Volume with name 'iso' will be used
356 # for store image with cloud-init metadata.
357 capacity: 1
358 format: raw
359 device: cdrom
360 bus: ide
361 cloudinit_meta_data: *cloudinit_meta_data
362 cloudinit_user_data: *cloudinit_user_data_1604
363
364 interfaces: *interfaces
365 network_config: *network_config
366
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200367 - name: {{ HOSTNAME_MON03 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200368 role: salt_minion
369 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200370 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200371 memory: !os_env SLAVE_NODE_MEMORY, 2048
372 boot:
373 - hd
374 cloud_init_volume_name: iso
375 cloud_init_iface_up: ens3
376 volumes:
377 - name: system
378 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200379 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200380 format: qcow2
381 - name: iso # Volume with name 'iso' will be used
382 # for store image with cloud-init metadata.
383 capacity: 1
384 format: raw
385 device: cdrom
386 bus: ide
387 cloudinit_meta_data: *cloudinit_meta_data
388 cloudinit_user_data: *cloudinit_user_data_1604
389
390 interfaces: *interfaces
391 network_config: *network_config
392
393 - name: {{ HOSTNAME_PRX01 }}
394 role: salt_minion
395 params:
396 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200397 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200398 boot:
399 - hd
400 cloud_init_volume_name: iso
401 cloud_init_iface_up: ens3
402 volumes:
403 - name: system
404 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200405 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200406 format: qcow2
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200407 - name: cinder
408 capacity: 50
409 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200410 - name: iso # Volume with name 'iso' will be used
411 # for store image with cloud-init metadata.
412 capacity: 1
413 format: raw
414 device: cdrom
415 bus: ide
416 cloudinit_meta_data: *cloudinit_meta_data
417 cloudinit_user_data: *cloudinit_user_data_1604
418
419 interfaces: *interfaces
420 network_config: *network_config
421
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200422
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200423 - name: {{ HOSTNAME_CMP01 }}
424 role: salt_minion
425 params:
426 vcpu: !os_env SLAVE_NODE_CPU, 3
427 memory: !os_env SLAVE_NODE_MEMORY, 4096
428 boot:
429 - hd
430 cloud_init_volume_name: iso
431 cloud_init_iface_up: ens3
432 volumes:
433 - name: system
434 capacity: !os_env NODE_VOLUME_SIZE, 150
435 backing_store: cloudimage1604
436 format: qcow2
437 - name: iso # Volume with name 'iso' will be used
438 # for store image with cloud-init metadata.
439 capacity: 1
440 format: raw
441 device: cdrom
442 bus: ide
443 cloudinit_meta_data: *cloudinit_meta_data
444 cloudinit_user_data: *cloudinit_user_data_1604
445
446
447 interfaces: &all_interfaces
448 - label: ens3
449 l2_network_device: admin
450 interface_model: *interface_model
451 - label: ens4
452 l2_network_device: private
453 interface_model: *interface_model
454 - label: ens5
455 l2_network_device: tenant
456 interface_model: *interface_model
457 - label: ens6
458 l2_network_device: external
459 interface_model: *interface_model
460 network_config: &all_network_config
461 ens3:
462 networks:
463 - admin
464 ens4:
465 networks:
466 - private
467 ens5:
468 networks:
469 - tenant
470 ens6:
471 networks:
472 - external
473
474 - name: {{ HOSTNAME_CMP02 }}
475 role: salt_minion
476 params:
477 vcpu: !os_env SLAVE_NODE_CPU, 3
478 memory: !os_env SLAVE_NODE_MEMORY, 4096
479 boot:
480 - hd
481 cloud_init_volume_name: iso
482 cloud_init_iface_up: ens3
483 volumes:
484 - name: system
485 capacity: !os_env NODE_VOLUME_SIZE, 150
486 backing_store: cloudimage1604
487 format: qcow2
488 - name: iso # Volume with name 'iso' will be used
489 # for store image with cloud-init metadata.
490 capacity: 1
491 format: raw
492 device: cdrom
493 bus: ide
494 cloudinit_meta_data: *cloudinit_meta_data
495 cloudinit_user_data: *cloudinit_user_data_1604
496
497 interfaces: *all_interfaces
498 network_config: *all_network_config
499
500 - name: {{ HOSTNAME_GTW01 }}
501 role: salt_minion
502 params:
503 vcpu: !os_env SLAVE_NODE_CPU, 1
504 memory: !os_env SLAVE_NODE_MEMORY, 2048
505 boot:
506 - hd
507 cloud_init_volume_name: iso
508 cloud_init_iface_up: ens3
509 volumes:
510 - name: system
511 capacity: !os_env NODE_VOLUME_SIZE, 150
512 backing_store: cloudimage1604
513 format: qcow2
514 - name: iso # Volume with name 'iso' will be used
515 # for store image with cloud-init metadata.
516 capacity: 1
517 format: raw
518 device: cdrom
519 bus: ide
520 cloudinit_meta_data: *cloudinit_meta_data
521 cloudinit_user_data: *cloudinit_user_data_1604
522
523 interfaces: *all_interfaces
524 network_config: *all_network_config
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200525
526 - name: {{ HOSTNAME_DNS01 }}
527 role: salt_minion
528 params:
529 vcpu: !os_env SLAVE_NODE_CPU, 1
530 memory: !os_env SLAVE_NODE_MEMORY, 2048
531 boot:
532 - hd
533 cloud_init_volume_name: iso
534 cloud_init_iface_up: ens3
535 volumes:
536 - name: system
537 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200538 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200539 format: qcow2
540 - name: iso # Volume with name 'iso' will be used
541 # for store image with cloud-init metadata.
542 capacity: 1
543 format: raw
544 device: cdrom
545 bus: ide
546 cloudinit_meta_data: *cloudinit_meta_data
547 cloudinit_user_data: *cloudinit_user_data_1604
548
549 interfaces: *all_interfaces
550 network_config: *all_network_config
551
552 - name: {{ HOSTNAME_DNS02 }}
553 role: salt_minion
554 params:
555 vcpu: !os_env SLAVE_NODE_CPU, 1
556 memory: !os_env SLAVE_NODE_MEMORY, 2048
557 boot:
558 - hd
559 cloud_init_volume_name: iso
560 cloud_init_iface_up: ens3
561 volumes:
562 - name: system
563 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200564 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200565 format: qcow2
566 - name: iso # Volume with name 'iso' will be used
567 # for store image with cloud-init metadata.
568 capacity: 1
569 format: raw
570 device: cdrom
571 bus: ide
572 cloudinit_meta_data: *cloudinit_meta_data
573 cloudinit_user_data: *cloudinit_user_data_1604
574
575 interfaces: *all_interfaces
576 network_config: *all_network_config