blob: 44214e90b7d24ab78fbe004dcb7606fc68a6eb48 [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-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-ocata-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-ocata-ovs/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-ovs') %}
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 Leontovich126b0032017-08-30 20:51:20 +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) %}
27{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
28
29template:
30 devops_settings:
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030031 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030032
33 address_pools:
34 private-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030035 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030036 params:
37 ip_reserved:
38 gateway: +1
39 l2_network_device: +1
40 default_{{ HOSTNAME_CFG01 }}: +100
41 default_{{ HOSTNAME_CTL01 }}: +101
42 default_{{ HOSTNAME_CTL02 }}: +102
43 default_{{ HOSTNAME_CTL03 }}: +103
44 default_{{ HOSTNAME_CMP01 }}: +105
45 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +030046 default_{{ HOSTNAME_MON01 }}: +107
47 default_{{ HOSTNAME_MON02 }}: +108
48 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030049 default_{{ HOSTNAME_GTW01 }}: +110
50 default_{{ HOSTNAME_PRX01 }}: +121
51 ip_ranges:
52 dhcp: [+90, -10]
53
54 admin-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030055 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030056 params:
57 ip_reserved:
58 gateway: +1
59 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030060 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030061 default_{{ HOSTNAME_CTL01 }}: +101
62 default_{{ HOSTNAME_CTL02 }}: +102
63 default_{{ HOSTNAME_CTL03 }}: +103
64 default_{{ HOSTNAME_CMP01 }}: +105
65 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +030066 default_{{ HOSTNAME_MON01 }}: +107
67 default_{{ HOSTNAME_MON02 }}: +108
68 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030069 default_{{ HOSTNAME_GTW01 }}: +110
70 default_{{ HOSTNAME_PRX01 }}: +121
71 ip_ranges:
72 dhcp: [+90, -10]
73
74 tenant-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030075 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030076 params:
77 ip_reserved:
78 gateway: +1
79 l2_network_device: +1
80 default_{{ HOSTNAME_CFG01 }}: +100
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
Tatyana Leontovich126b0032017-08-30 20:51:20 +030086 default_{{ HOSTNAME_MON01 }}: +107
87 default_{{ HOSTNAME_MON02 }}: +108
88 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030089 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
91 ip_ranges:
92 dhcp: [+10, -10]
93
94 external-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030095 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030096 params:
97 ip_reserved:
98 gateway: +1
99 l2_network_device: +1
100 default_{{ HOSTNAME_CFG01 }}: +100
101 default_{{ HOSTNAME_CTL01 }}: +101
102 default_{{ HOSTNAME_CTL02 }}: +102
103 default_{{ HOSTNAME_CTL03 }}: +103
104 default_{{ HOSTNAME_CMP01 }}: +105
105 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300106 default_{{ HOSTNAME_MON01 }}: +107
107 default_{{ HOSTNAME_MON02 }}: +108
108 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300109 default_{{ HOSTNAME_GTW01 }}: +110
110 default_{{ HOSTNAME_PRX01 }}: +121
111 ip_ranges:
112 dhcp: [+10, -10]
113
114
115 groups:
116 - name: default
117 driver:
118 name: devops.driver.libvirt
119 params:
120 connection_string: !os_env CONNECTION_STRING, qemu:///system
121 storage_pool_name: !os_env STORAGE_POOL_NAME, default
122 stp: False
123 hpet: False
124 enable_acpi: true
125 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300126 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300127
128 network_pools:
129 admin: admin-pool01
130 private: private-pool01
131 tenant: tenant-pool01
132 external: external-pool01
133
134 l2_network_devices:
135 private:
136 address_pool: private-pool01
137 dhcp: true
Dennis Dmitrieva5978eb2018-02-21 10:12:33 +0200138 forward:
139 mode: route
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300140
141 admin:
142 address_pool: admin-pool01
143 dhcp: true
144 forward:
145 mode: nat
146
147 tenant:
148 address_pool: tenant-pool01
149 dhcp: true
150
151 external:
152 address_pool: external-pool01
153 dhcp: true
154 forward:
155 mode: nat
156
157
158 group_volumes:
159 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200160 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
161 format: qcow2
162 - name: cfg01_day01_image # Pre-configured day01 image
163 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 +0300164 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200165 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
166 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
167 # or
168 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
169 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
170 format: qcow2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300171
172 nodes:
173 - name: {{ HOSTNAME_CFG01 }}
174 role: salt_master
175 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300176 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300177 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300178 boot:
179 - hd
180 cloud_init_volume_name: iso
181 cloud_init_iface_up: ens3
182 volumes:
183 - name: system
184 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200185 backing_store: cfg01_day01_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300186 format: qcow2
187 - name: iso # Volume with name 'iso' will be used
188 # for store image with cloud-init metadata.
189 capacity: 1
190 format: raw
191 device: cdrom
192 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300193 cloudinit_meta_data: *cloudinit_meta_data
194 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300195
196 interfaces:
197 - label: ens3
198 l2_network_device: admin
199 interface_model: *interface_model
200 - label: ens4
201 l2_network_device: private
202 interface_model: *interface_model
203 network_config:
204 ens3:
205 networks:
206 - admin
207 ens4:
208 networks:
209 - private
210
211 - name: {{ HOSTNAME_CTL01 }}
212 role: salt_minion
213 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300214 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200215 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300216 boot:
217 - hd
218 cloud_init_volume_name: iso
219 cloud_init_iface_up: ens3
220 volumes:
221 - name: system
222 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200223 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300224 format: qcow2
225 - name: cinder
226 capacity: 50
227 format: qcow2
228 - name: iso # Volume with name 'iso' will be used
229 # for store image with cloud-init metadata.
230 capacity: 1
231 format: raw
232 device: cdrom
233 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300234 cloudinit_meta_data: *cloudinit_meta_data
235 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300236
237 interfaces: &interfaces
238 - label: ens3
239 l2_network_device: admin
240 interface_model: *interface_model
241 - label: ens4
242 l2_network_device: private
243 interface_model: *interface_model
244 network_config: &network_config
245 ens3:
246 networks:
247 - admin
248 ens4:
249 networks:
250 - private
251
252 - name: {{ HOSTNAME_CTL02 }}
253 role: salt_minion
254 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300255 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200256 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300257 boot:
258 - hd
259 cloud_init_volume_name: iso
260 cloud_init_iface_up: ens3
261 volumes:
262 - name: system
263 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200264 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300265 format: qcow2
266 - name: cinder
267 capacity: 50
268 format: qcow2
269 - name: iso # Volume with name 'iso' will be used
270 # for store image with cloud-init metadata.
271 capacity: 1
272 format: raw
273 device: cdrom
274 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300275 cloudinit_meta_data: *cloudinit_meta_data
276 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300277
278 interfaces: *interfaces
279 network_config: *network_config
280
281 - name: {{ HOSTNAME_CTL03 }}
282 role: salt_minion
283 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300284 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200285 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300286 boot:
287 - hd
288 cloud_init_volume_name: iso
289 cloud_init_iface_up: ens3
290 volumes:
291 - name: system
292 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200293 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300294 format: qcow2
295 - name: cinder
296 capacity: 50
297 format: qcow2
298 - name: iso # Volume with name 'iso' will be used
299 # for store image with cloud-init metadata.
300 capacity: 1
301 format: raw
302 device: cdrom
303 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300304 cloudinit_meta_data: *cloudinit_meta_data
305 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300306
307 interfaces: *interfaces
308 network_config: *network_config
Tatyana Leontovich6faca6c2017-09-06 15:57:16 +0300309
310 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300311 role: salt_minion
312 params:
313 vcpu: !os_env SLAVE_NODE_CPU, 3
314 memory: !os_env SLAVE_NODE_MEMORY, 2048
315 boot:
316 - hd
317 cloud_init_volume_name: iso
318 cloud_init_iface_up: ens3
319 volumes:
320 - name: system
321 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200322 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300323 format: qcow2
324 - name: iso # Volume with name 'iso' will be used
325 # for store image with cloud-init metadata.
326 capacity: 1
327 format: raw
328 device: cdrom
329 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300330 cloudinit_meta_data: *cloudinit_meta_data
331 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300332
333 interfaces: *interfaces
334 network_config: *network_config
335
336 - name: {{ HOSTNAME_MON02 }}
337 role: salt_minion
338 params:
339 vcpu: !os_env SLAVE_NODE_CPU, 3
340 memory: !os_env SLAVE_NODE_MEMORY, 2048
341 boot:
342 - hd
343 cloud_init_volume_name: iso
344 cloud_init_iface_up: ens3
345 volumes:
346 - name: system
347 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200348 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300349 format: qcow2
350 - name: iso # Volume with name 'iso' will be used
351 # for store image with cloud-init metadata.
352 capacity: 1
353 format: raw
354 device: cdrom
355 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300356 cloudinit_meta_data: *cloudinit_meta_data
357 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300358
359 interfaces: *interfaces
360 network_config: *network_config
361
362 - name: {{ HOSTNAME_MON03 }}
363 role: salt_minion
364 params:
365 vcpu: !os_env SLAVE_NODE_CPU, 3
366 memory: !os_env SLAVE_NODE_MEMORY, 2048
367 boot:
368 - hd
369 cloud_init_volume_name: iso
370 cloud_init_iface_up: ens3
371 volumes:
372 - name: system
373 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200374 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300375 format: qcow2
376 - name: iso # Volume with name 'iso' will be used
377 # for store image with cloud-init metadata.
378 capacity: 1
379 format: raw
380 device: cdrom
381 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300382 cloudinit_meta_data: *cloudinit_meta_data
383 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300384
385 interfaces: *interfaces
386 network_config: *network_config
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300387
388 - name: {{ HOSTNAME_PRX01 }}
389 role: salt_minion
390 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300391 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300392 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300393 boot:
394 - hd
395 cloud_init_volume_name: iso
396 cloud_init_iface_up: ens3
397 volumes:
398 - name: system
399 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200400 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300401 format: qcow2
402 - name: cinder
403 capacity: 50
404 format: qcow2
405 - name: iso # Volume with name 'iso' will be used
406 # for store image with cloud-init metadata.
407 capacity: 1
408 format: raw
409 device: cdrom
410 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300411 cloudinit_meta_data: *cloudinit_meta_data
412 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300413
414 interfaces: *interfaces
415 network_config: *network_config
416
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300417 - name: {{ HOSTNAME_CMP01 }}
418 role: salt_minion
419 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300420 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300421 memory: !os_env SLAVE_NODE_MEMORY, 4096
422 boot:
423 - hd
424 cloud_init_volume_name: iso
425 cloud_init_iface_up: ens3
426 volumes:
427 - name: system
428 capacity: !os_env NODE_VOLUME_SIZE, 150
429 backing_store: cloudimage1604
430 format: qcow2
431 - name: iso # Volume with name 'iso' will be used
432 # for store image with cloud-init metadata.
433 capacity: 1
434 format: raw
435 device: cdrom
436 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300437 cloudinit_meta_data: *cloudinit_meta_data
438 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300439
440
441 interfaces: &all_interfaces
442 - label: ens3
443 l2_network_device: admin
444 interface_model: *interface_model
445 - label: ens4
446 l2_network_device: private
447 interface_model: *interface_model
448 - label: ens5
449 l2_network_device: tenant
450 interface_model: *interface_model
451 - label: ens6
452 l2_network_device: external
453 interface_model: *interface_model
454 network_config: &all_network_config
455 ens3:
456 networks:
457 - admin
458 ens4:
459 networks:
460 - private
461 ens5:
462 networks:
463 - tenant
464 ens6:
465 networks:
466 - external
467
468 - name: {{ HOSTNAME_CMP02 }}
469 role: salt_minion
470 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300471 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300472 memory: !os_env SLAVE_NODE_MEMORY, 4096
473 boot:
474 - hd
475 cloud_init_volume_name: iso
476 cloud_init_iface_up: ens3
477 volumes:
478 - name: system
479 capacity: !os_env NODE_VOLUME_SIZE, 150
480 backing_store: cloudimage1604
481 format: qcow2
482 - name: iso # Volume with name 'iso' will be used
483 # for store image with cloud-init metadata.
484 capacity: 1
485 format: raw
486 device: cdrom
487 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300488 cloudinit_meta_data: *cloudinit_meta_data
489 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300490
491 interfaces: *all_interfaces
492 network_config: *all_network_config
493
494 - name: {{ HOSTNAME_GTW01 }}
495 role: salt_minion
496 params:
497 vcpu: !os_env SLAVE_NODE_CPU, 1
498 memory: !os_env SLAVE_NODE_MEMORY, 2048
499 boot:
500 - hd
501 cloud_init_volume_name: iso
502 cloud_init_iface_up: ens3
503 volumes:
504 - name: system
505 capacity: !os_env NODE_VOLUME_SIZE, 150
506 backing_store: cloudimage1604
507 format: qcow2
508 - name: iso # Volume with name 'iso' will be used
509 # for store image with cloud-init metadata.
510 capacity: 1
511 format: raw
512 device: cdrom
513 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300514 cloudinit_meta_data: *cloudinit_meta_data
515 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300516
517 interfaces: *all_interfaces
518 network_config: *all_network_config