blob: c6037b8f0a5cbc6e516f547b7362bb5461d40dc9 [file] [log] [blame]
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03003
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03004{% import 'virtual-mcp-ocata-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-ocata-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-ocata-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +03007
Tatyana Leontovich38be41b2017-04-12 14:45:23 +03008---
9aliases:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030010 - &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 }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-dvr') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +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) %}
21{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Tatyana Leontovichd85357d2017-08-02 15:28:37 +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) %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030026{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Dennis Dmitrieva956fe92017-11-17 15:37:52 +020027{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030029{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
30
31template:
32 devops_settings:
Dennis Dmitrievab83ea42017-05-12 16:52:45 +030033 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030034
35 address_pools:
36 private-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030037 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030038 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 Leontovichd85357d2017-08-02 15:28:37 +030048 default_{{ HOSTNAME_MON01 }}: +107
49 default_{{ HOSTNAME_MON02 }}: +108
50 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030051 default_{{ HOSTNAME_GTW01 }}: +110
Dennis Dmitrieva956fe92017-11-17 15:37:52 +020052 default_{{ HOSTNAME_DNS01 }}: +111
53 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030054 default_{{ HOSTNAME_PRX01 }}: +121
55 ip_ranges:
56 dhcp: [+90, -10]
57
58 admin-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030059 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030060 params:
61 ip_reserved:
62 gateway: +1
63 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030064 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030065 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 Leontovichd85357d2017-08-02 15:28:37 +030070 default_{{ HOSTNAME_MON01 }}: +107
71 default_{{ HOSTNAME_MON02 }}: +108
72 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030073 default_{{ HOSTNAME_GTW01 }}: +110
Dennis Dmitrieva956fe92017-11-17 15:37:52 +020074 default_{{ HOSTNAME_DNS01 }}: +111
75 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030076 default_{{ HOSTNAME_PRX01 }}: +121
77 ip_ranges:
78 dhcp: [+90, -10]
79
80 tenant-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030081 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030082 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 Leontovichd85357d2017-08-02 15:28:37 +030092 default_{{ HOSTNAME_MON01 }}: +107
93 default_{{ HOSTNAME_MON02 }}: +108
94 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030095 default_{{ HOSTNAME_GTW01 }}: +110
Dennis Dmitrieva956fe92017-11-17 15:37:52 +020096 default_{{ HOSTNAME_DNS01 }}: +111
97 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030098 default_{{ HOSTNAME_PRX01 }}: +121
99 ip_ranges:
100 dhcp: [+10, -10]
101
102 external-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300103 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300104 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 Leontovichd85357d2017-08-02 15:28:37 +0300114 default_{{ HOSTNAME_MON01 }}: +107
115 default_{{ HOSTNAME_MON02 }}: +108
116 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300117 default_{{ HOSTNAME_GTW01 }}: +110
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200118 default_{{ HOSTNAME_DNS01 }}: +111
119 default_{{ HOSTNAME_DNS02 }}: +112
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300120 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
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300136 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300137
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 Leontovich38be41b2017-04-12 14:45:23 +0300172 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200173 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
174 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
175 # or
176 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
177 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
178 format: qcow2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300179
180 nodes:
181 - name: {{ HOSTNAME_CFG01 }}
182 role: salt_master
183 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300184 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300185 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300186 boot:
187 - hd
188 cloud_init_volume_name: iso
189 cloud_init_iface_up: ens3
190 volumes:
191 - name: system
192 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200193 backing_store: cfg01_day01_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300194 format: qcow2
195 - name: iso # Volume with name 'iso' will be used
196 # for store image with cloud-init metadata.
197 capacity: 1
198 format: raw
199 device: cdrom
200 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300201 cloudinit_meta_data: *cloudinit_meta_data
202 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300203
204 interfaces:
205 - label: ens3
206 l2_network_device: admin
207 interface_model: *interface_model
208 - label: ens4
209 l2_network_device: private
210 interface_model: *interface_model
211 network_config:
212 ens3:
213 networks:
214 - admin
215 ens4:
216 networks:
217 - private
218
219 - name: {{ HOSTNAME_CTL01 }}
220 role: salt_minion
221 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300222 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200223 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300224 boot:
225 - hd
226 cloud_init_volume_name: iso
227 cloud_init_iface_up: ens3
228 volumes:
229 - name: system
230 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200231 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300232 format: qcow2
233 - name: cinder
234 capacity: 50
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
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300242 cloudinit_meta_data: *cloudinit_meta_data
243 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300244
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_CTL02 }}
261 role: salt_minion
262 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300263 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200264 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300265 boot:
266 - hd
267 cloud_init_volume_name: iso
268 cloud_init_iface_up: ens3
269 volumes:
270 - name: system
271 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200272 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300273 format: qcow2
274 - name: cinder
275 capacity: 50
276 format: qcow2
277 - name: iso # Volume with name 'iso' will be used
278 # for store image with cloud-init metadata.
279 capacity: 1
280 format: raw
281 device: cdrom
282 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300283 cloudinit_meta_data: *cloudinit_meta_data
284 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300285
286 interfaces: *interfaces
287 network_config: *network_config
288
289 - name: {{ HOSTNAME_CTL03 }}
290 role: salt_minion
291 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300292 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200293 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300294 boot:
295 - hd
296 cloud_init_volume_name: iso
297 cloud_init_iface_up: ens3
298 volumes:
299 - name: system
300 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200301 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300302 format: qcow2
303 - name: cinder
304 capacity: 50
305 format: qcow2
306 - name: iso # Volume with name 'iso' will be used
307 # for store image with cloud-init metadata.
308 capacity: 1
309 format: raw
310 device: cdrom
311 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300312 cloudinit_meta_data: *cloudinit_meta_data
313 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300314
315 interfaces: *interfaces
316 network_config: *network_config
317
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300318 - name: {{ HOSTNAME_MON01 }}
319 role: salt_minion
320 params:
321 vcpu: !os_env SLAVE_NODE_CPU, 3
322 memory: !os_env SLAVE_NODE_MEMORY, 2048
323 boot:
324 - hd
325 cloud_init_volume_name: iso
326 cloud_init_iface_up: ens3
327 volumes:
328 - name: system
329 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200330 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300331 format: qcow2
332 - name: iso # Volume with name 'iso' will be used
333 # for store image with cloud-init metadata.
334 capacity: 1
335 format: raw
336 device: cdrom
337 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300338 cloudinit_meta_data: *cloudinit_meta_data
339 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300340
341 interfaces: *interfaces
342 network_config: *network_config
343
344 - name: {{ HOSTNAME_MON02 }}
345 role: salt_minion
346 params:
347 vcpu: !os_env SLAVE_NODE_CPU, 3
348 memory: !os_env SLAVE_NODE_MEMORY, 2048
349 boot:
350 - hd
351 cloud_init_volume_name: iso
352 cloud_init_iface_up: ens3
353 volumes:
354 - name: system
355 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200356 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300357 format: qcow2
358 - name: iso # Volume with name 'iso' will be used
359 # for store image with cloud-init metadata.
360 capacity: 1
361 format: raw
362 device: cdrom
363 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300364 cloudinit_meta_data: *cloudinit_meta_data
365 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300366
367 interfaces: *interfaces
368 network_config: *network_config
369
370 - name: {{ HOSTNAME_MON03 }}
371 role: salt_minion
372 params:
373 vcpu: !os_env SLAVE_NODE_CPU, 3
374 memory: !os_env SLAVE_NODE_MEMORY, 2048
375 boot:
376 - hd
377 cloud_init_volume_name: iso
378 cloud_init_iface_up: ens3
379 volumes:
380 - name: system
381 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200382 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300383 format: qcow2
384 - name: iso # Volume with name 'iso' will be used
385 # for store image with cloud-init metadata.
386 capacity: 1
387 format: raw
388 device: cdrom
389 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300390 cloudinit_meta_data: *cloudinit_meta_data
391 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300392
393 interfaces: *interfaces
394 network_config: *network_config
395
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300396 - name: {{ HOSTNAME_PRX01 }}
397 role: salt_minion
398 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300399 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300400 memory: !os_env SLAVE_NODE_MEMORY, 8192
401 boot:
402 - hd
403 cloud_init_volume_name: iso
404 cloud_init_iface_up: ens3
405 volumes:
406 - name: system
407 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200408 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300409 format: qcow2
410 - name: cinder
411 capacity: 50
412 format: qcow2
413 - name: iso # Volume with name 'iso' will be used
414 # for store image with cloud-init metadata.
415 capacity: 1
416 format: raw
417 device: cdrom
418 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300419 cloudinit_meta_data: *cloudinit_meta_data
420 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300421
422 interfaces: *interfaces
423 network_config: *network_config
424
425
426 - name: {{ HOSTNAME_CMP01 }}
427 role: salt_minion
428 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300429 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300430 memory: !os_env SLAVE_NODE_MEMORY, 4096
431 boot:
432 - hd
433 cloud_init_volume_name: iso
434 cloud_init_iface_up: ens3
435 volumes:
436 - name: system
437 capacity: !os_env NODE_VOLUME_SIZE, 150
438 backing_store: cloudimage1604
439 format: qcow2
440 - name: iso # Volume with name 'iso' will be used
441 # for store image with cloud-init metadata.
442 capacity: 1
443 format: raw
444 device: cdrom
445 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300446 cloudinit_meta_data: *cloudinit_meta_data
447 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300448
449
450 interfaces: &all_interfaces
451 - label: ens3
452 l2_network_device: admin
453 interface_model: *interface_model
454 - label: ens4
455 l2_network_device: private
456 interface_model: *interface_model
457 - label: ens5
458 l2_network_device: tenant
459 interface_model: *interface_model
460 - label: ens6
461 l2_network_device: external
462 interface_model: *interface_model
463 network_config: &all_network_config
464 ens3:
465 networks:
466 - admin
467 ens4:
468 networks:
469 - private
470 ens5:
471 networks:
472 - tenant
473 ens6:
474 networks:
475 - external
476
477 - name: {{ HOSTNAME_CMP02 }}
478 role: salt_minion
479 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300480 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300481 memory: !os_env SLAVE_NODE_MEMORY, 4096
482 boot:
483 - hd
484 cloud_init_volume_name: iso
485 cloud_init_iface_up: ens3
486 volumes:
487 - name: system
488 capacity: !os_env NODE_VOLUME_SIZE, 150
489 backing_store: cloudimage1604
490 format: qcow2
491 - name: iso # Volume with name 'iso' will be used
492 # for store image with cloud-init metadata.
493 capacity: 1
494 format: raw
495 device: cdrom
496 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300497 cloudinit_meta_data: *cloudinit_meta_data
498 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300499
500 interfaces: *all_interfaces
501 network_config: *all_network_config
502
503 - name: {{ HOSTNAME_GTW01 }}
504 role: salt_minion
505 params:
506 vcpu: !os_env SLAVE_NODE_CPU, 1
507 memory: !os_env SLAVE_NODE_MEMORY, 2048
508 boot:
509 - hd
510 cloud_init_volume_name: iso
511 cloud_init_iface_up: ens3
512 volumes:
513 - name: system
514 capacity: !os_env NODE_VOLUME_SIZE, 150
515 backing_store: cloudimage1604
516 format: qcow2
517 - name: iso # Volume with name 'iso' will be used
518 # for store image with cloud-init metadata.
519 capacity: 1
520 format: raw
521 device: cdrom
522 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300523 cloudinit_meta_data: *cloudinit_meta_data
524 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300525
526 interfaces: *all_interfaces
527 network_config: *all_network_config
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200528
529 - name: {{ HOSTNAME_DNS01 }}
530 role: salt_minion
531 params:
532 vcpu: !os_env SLAVE_NODE_CPU, 1
533 memory: !os_env SLAVE_NODE_MEMORY, 2048
534 boot:
535 - hd
536 cloud_init_volume_name: iso
537 cloud_init_iface_up: ens3
538 volumes:
539 - name: system
540 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200541 backing_store: mcp_ubuntu_1604_image
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200542 format: qcow2
543 - name: iso # Volume with name 'iso' will be used
544 # for store image with cloud-init metadata.
545 capacity: 1
546 format: raw
547 device: cdrom
548 bus: ide
549 cloudinit_meta_data: *cloudinit_meta_data
550 cloudinit_user_data: *cloudinit_user_data_1604
551
552 interfaces: *all_interfaces
553 network_config: *all_network_config
554
555 - name: {{ HOSTNAME_DNS02 }}
556 role: salt_minion
557 params:
558 vcpu: !os_env SLAVE_NODE_CPU, 1
559 memory: !os_env SLAVE_NODE_MEMORY, 2048
560 boot:
561 - hd
562 cloud_init_volume_name: iso
563 cloud_init_iface_up: ens3
564 volumes:
565 - name: system
566 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200567 backing_store: mcp_ubuntu_1604_image
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200568 format: qcow2
569 - name: iso # Volume with name 'iso' will be used
570 # for store image with cloud-init metadata.
571 capacity: 1
572 format: raw
573 device: cdrom
574 bus: ide
575 cloudinit_meta_data: *cloudinit_meta_data
576 cloudinit_user_data: *cloudinit_user_data_1604
577
578 interfaces: *all_interfaces
579 network_config: *all_network_config