blob: 390bfdb491c5aa29da835dd7eb5cfebe85132c30 [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
Dennis Dmitrieva5978eb2018-02-21 10:12:33 +0200148 forward:
149 mode: route
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300150
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 Leontovich38be41b2017-04-12 14:45:23 +0300174 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200175 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
176 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
177 # or
178 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
179 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
180 format: qcow2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300181
182 nodes:
183 - name: {{ HOSTNAME_CFG01 }}
184 role: salt_master
185 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300186 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300187 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300188 boot:
189 - hd
190 cloud_init_volume_name: iso
191 cloud_init_iface_up: ens3
192 volumes:
193 - name: system
194 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200195 backing_store: cfg01_day01_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300196 format: qcow2
197 - name: iso # Volume with name 'iso' will be used
198 # for store image with cloud-init metadata.
199 capacity: 1
200 format: raw
201 device: cdrom
202 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300203 cloudinit_meta_data: *cloudinit_meta_data
204 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300205
206 interfaces:
207 - label: ens3
208 l2_network_device: admin
209 interface_model: *interface_model
210 - label: ens4
211 l2_network_device: private
212 interface_model: *interface_model
213 network_config:
214 ens3:
215 networks:
216 - admin
217 ens4:
218 networks:
219 - private
220
221 - name: {{ HOSTNAME_CTL01 }}
222 role: salt_minion
223 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300224 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200225 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300226 boot:
227 - hd
228 cloud_init_volume_name: iso
229 cloud_init_iface_up: ens3
230 volumes:
231 - name: system
232 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200233 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300234 format: qcow2
235 - name: cinder
236 capacity: 50
237 format: qcow2
238 - name: iso # Volume with name 'iso' will be used
239 # for store image with cloud-init metadata.
240 capacity: 1
241 format: raw
242 device: cdrom
243 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300244 cloudinit_meta_data: *cloudinit_meta_data
245 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300246
247 interfaces: &interfaces
248 - label: ens3
249 l2_network_device: admin
250 interface_model: *interface_model
251 - label: ens4
252 l2_network_device: private
253 interface_model: *interface_model
254 network_config: &network_config
255 ens3:
256 networks:
257 - admin
258 ens4:
259 networks:
260 - private
261
262 - name: {{ HOSTNAME_CTL02 }}
263 role: salt_minion
264 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300265 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200266 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300267 boot:
268 - hd
269 cloud_init_volume_name: iso
270 cloud_init_iface_up: ens3
271 volumes:
272 - name: system
273 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200274 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300275 format: qcow2
276 - name: cinder
277 capacity: 50
278 format: qcow2
279 - name: iso # Volume with name 'iso' will be used
280 # for store image with cloud-init metadata.
281 capacity: 1
282 format: raw
283 device: cdrom
284 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300285 cloudinit_meta_data: *cloudinit_meta_data
286 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300287
288 interfaces: *interfaces
289 network_config: *network_config
290
291 - name: {{ HOSTNAME_CTL03 }}
292 role: salt_minion
293 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300294 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200295 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300296 boot:
297 - hd
298 cloud_init_volume_name: iso
299 cloud_init_iface_up: ens3
300 volumes:
301 - name: system
302 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200303 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300304 format: qcow2
305 - name: cinder
306 capacity: 50
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
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300314 cloudinit_meta_data: *cloudinit_meta_data
315 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300316
317 interfaces: *interfaces
318 network_config: *network_config
319
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300320 - name: {{ HOSTNAME_MON01 }}
321 role: salt_minion
322 params:
323 vcpu: !os_env SLAVE_NODE_CPU, 3
324 memory: !os_env SLAVE_NODE_MEMORY, 2048
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 NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200332 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300333 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
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300342
343 interfaces: *interfaces
344 network_config: *network_config
345
346 - name: {{ HOSTNAME_MON02 }}
347 role: salt_minion
348 params:
349 vcpu: !os_env SLAVE_NODE_CPU, 3
350 memory: !os_env SLAVE_NODE_MEMORY, 2048
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 NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200358 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300359 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
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300366 cloudinit_meta_data: *cloudinit_meta_data
367 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300368
369 interfaces: *interfaces
370 network_config: *network_config
371
372 - name: {{ HOSTNAME_MON03 }}
373 role: salt_minion
374 params:
375 vcpu: !os_env SLAVE_NODE_CPU, 3
376 memory: !os_env SLAVE_NODE_MEMORY, 2048
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 NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200384 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300385 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
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300392 cloudinit_meta_data: *cloudinit_meta_data
393 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd85357d2017-08-02 15:28:37 +0300394
395 interfaces: *interfaces
396 network_config: *network_config
397
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300398 - name: {{ HOSTNAME_PRX01 }}
399 role: salt_minion
400 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300401 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300402 memory: !os_env SLAVE_NODE_MEMORY, 8192
403 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
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200410 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300411 format: qcow2
412 - name: cinder
413 capacity: 50
414 format: qcow2
415 - name: iso # Volume with name 'iso' will be used
416 # for store image with cloud-init metadata.
417 capacity: 1
418 format: raw
419 device: cdrom
420 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300421 cloudinit_meta_data: *cloudinit_meta_data
422 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300423
424 interfaces: *interfaces
425 network_config: *network_config
426
427
428 - name: {{ HOSTNAME_CMP01 }}
429 role: salt_minion
430 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300431 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300432 memory: !os_env SLAVE_NODE_MEMORY, 4096
433 boot:
434 - hd
435 cloud_init_volume_name: iso
436 cloud_init_iface_up: ens3
437 volumes:
438 - name: system
439 capacity: !os_env NODE_VOLUME_SIZE, 150
440 backing_store: cloudimage1604
441 format: qcow2
442 - name: iso # Volume with name 'iso' will be used
443 # for store image with cloud-init metadata.
444 capacity: 1
445 format: raw
446 device: cdrom
447 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300448 cloudinit_meta_data: *cloudinit_meta_data
449 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300450
451
452 interfaces: &all_interfaces
453 - label: ens3
454 l2_network_device: admin
455 interface_model: *interface_model
456 - label: ens4
457 l2_network_device: private
458 interface_model: *interface_model
459 - label: ens5
460 l2_network_device: tenant
461 interface_model: *interface_model
462 - label: ens6
463 l2_network_device: external
464 interface_model: *interface_model
465 network_config: &all_network_config
466 ens3:
467 networks:
468 - admin
469 ens4:
470 networks:
471 - private
472 ens5:
473 networks:
474 - tenant
475 ens6:
476 networks:
477 - external
478
479 - name: {{ HOSTNAME_CMP02 }}
480 role: salt_minion
481 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300482 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300483 memory: !os_env SLAVE_NODE_MEMORY, 4096
484 boot:
485 - hd
486 cloud_init_volume_name: iso
487 cloud_init_iface_up: ens3
488 volumes:
489 - name: system
490 capacity: !os_env NODE_VOLUME_SIZE, 150
491 backing_store: cloudimage1604
492 format: qcow2
493 - name: iso # Volume with name 'iso' will be used
494 # for store image with cloud-init metadata.
495 capacity: 1
496 format: raw
497 device: cdrom
498 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300499 cloudinit_meta_data: *cloudinit_meta_data
500 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300501
502 interfaces: *all_interfaces
503 network_config: *all_network_config
504
505 - name: {{ HOSTNAME_GTW01 }}
506 role: salt_minion
507 params:
508 vcpu: !os_env SLAVE_NODE_CPU, 1
509 memory: !os_env SLAVE_NODE_MEMORY, 2048
510 boot:
511 - hd
512 cloud_init_volume_name: iso
513 cloud_init_iface_up: ens3
514 volumes:
515 - name: system
516 capacity: !os_env NODE_VOLUME_SIZE, 150
517 backing_store: cloudimage1604
518 format: qcow2
519 - name: iso # Volume with name 'iso' will be used
520 # for store image with cloud-init metadata.
521 capacity: 1
522 format: raw
523 device: cdrom
524 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300525 cloudinit_meta_data: *cloudinit_meta_data
526 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300527
528 interfaces: *all_interfaces
529 network_config: *all_network_config
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200530
531 - name: {{ HOSTNAME_DNS01 }}
532 role: salt_minion
533 params:
534 vcpu: !os_env SLAVE_NODE_CPU, 1
535 memory: !os_env SLAVE_NODE_MEMORY, 2048
536 boot:
537 - hd
538 cloud_init_volume_name: iso
539 cloud_init_iface_up: ens3
540 volumes:
541 - name: system
542 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200543 backing_store: mcp_ubuntu_1604_image
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200544 format: qcow2
545 - name: iso # Volume with name 'iso' will be used
546 # for store image with cloud-init metadata.
547 capacity: 1
548 format: raw
549 device: cdrom
550 bus: ide
551 cloudinit_meta_data: *cloudinit_meta_data
552 cloudinit_user_data: *cloudinit_user_data_1604
553
554 interfaces: *all_interfaces
555 network_config: *all_network_config
556
557 - name: {{ HOSTNAME_DNS02 }}
558 role: salt_minion
559 params:
560 vcpu: !os_env SLAVE_NODE_CPU, 1
561 memory: !os_env SLAVE_NODE_MEMORY, 2048
562 boot:
563 - hd
564 cloud_init_volume_name: iso
565 cloud_init_iface_up: ens3
566 volumes:
567 - name: system
568 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200569 backing_store: mcp_ubuntu_1604_image
Dennis Dmitrieva956fe92017-11-17 15:37:52 +0200570 format: qcow2
571 - name: iso # Volume with name 'iso' will be used
572 # for store image with cloud-init metadata.
573 capacity: 1
574 format: raw
575 device: cdrom
576 bus: ide
577 cloudinit_meta_data: *cloudinit_meta_data
578 cloudinit_user_data: *cloudinit_user_data_1604
579
580 interfaces: *all_interfaces
581 network_config: *all_network_config