blob: 081bc31cd287af2f67a78e91e77b4e569b71459a [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
138
139 admin:
140 address_pool: admin-pool01
141 dhcp: true
142 forward:
143 mode: nat
144
145 tenant:
146 address_pool: tenant-pool01
147 dhcp: true
148
149 external:
150 address_pool: external-pool01
151 dhcp: true
152 forward:
153 mode: nat
154
155
156 group_volumes:
157 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200158 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
159 format: qcow2
160 - name: cfg01_day01_image # Pre-configured day01 image
161 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 +0300162 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200163 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
164 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
165 # or
166 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
167 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
168 format: qcow2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300169
170 nodes:
171 - name: {{ HOSTNAME_CFG01 }}
172 role: salt_master
173 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300174 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300175 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300176 boot:
177 - hd
178 cloud_init_volume_name: iso
179 cloud_init_iface_up: ens3
180 volumes:
181 - name: system
182 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200183 backing_store: cfg01_day01_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300184 format: qcow2
185 - name: iso # Volume with name 'iso' will be used
186 # for store image with cloud-init metadata.
187 capacity: 1
188 format: raw
189 device: cdrom
190 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300191 cloudinit_meta_data: *cloudinit_meta_data
192 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300193
194 interfaces:
195 - label: ens3
196 l2_network_device: admin
197 interface_model: *interface_model
198 - label: ens4
199 l2_network_device: private
200 interface_model: *interface_model
201 network_config:
202 ens3:
203 networks:
204 - admin
205 ens4:
206 networks:
207 - private
208
209 - name: {{ HOSTNAME_CTL01 }}
210 role: salt_minion
211 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300212 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200213 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300214 boot:
215 - hd
216 cloud_init_volume_name: iso
217 cloud_init_iface_up: ens3
218 volumes:
219 - name: system
220 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200221 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300222 format: qcow2
223 - name: cinder
224 capacity: 50
225 format: qcow2
226 - name: iso # Volume with name 'iso' will be used
227 # for store image with cloud-init metadata.
228 capacity: 1
229 format: raw
230 device: cdrom
231 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300232 cloudinit_meta_data: *cloudinit_meta_data
233 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300234
235 interfaces: &interfaces
236 - label: ens3
237 l2_network_device: admin
238 interface_model: *interface_model
239 - label: ens4
240 l2_network_device: private
241 interface_model: *interface_model
242 network_config: &network_config
243 ens3:
244 networks:
245 - admin
246 ens4:
247 networks:
248 - private
249
250 - name: {{ HOSTNAME_CTL02 }}
251 role: salt_minion
252 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300253 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200254 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300255 boot:
256 - hd
257 cloud_init_volume_name: iso
258 cloud_init_iface_up: ens3
259 volumes:
260 - name: system
261 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200262 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300263 format: qcow2
264 - name: cinder
265 capacity: 50
266 format: qcow2
267 - name: iso # Volume with name 'iso' will be used
268 # for store image with cloud-init metadata.
269 capacity: 1
270 format: raw
271 device: cdrom
272 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300273 cloudinit_meta_data: *cloudinit_meta_data
274 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300275
276 interfaces: *interfaces
277 network_config: *network_config
278
279 - name: {{ HOSTNAME_CTL03 }}
280 role: salt_minion
281 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300282 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200283 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300284 boot:
285 - hd
286 cloud_init_volume_name: iso
287 cloud_init_iface_up: ens3
288 volumes:
289 - name: system
290 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200291 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300292 format: qcow2
293 - name: cinder
294 capacity: 50
295 format: qcow2
296 - name: iso # Volume with name 'iso' will be used
297 # for store image with cloud-init metadata.
298 capacity: 1
299 format: raw
300 device: cdrom
301 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300302 cloudinit_meta_data: *cloudinit_meta_data
303 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300304
305 interfaces: *interfaces
306 network_config: *network_config
Tatyana Leontovich6faca6c2017-09-06 15:57:16 +0300307
308 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300309 role: salt_minion
310 params:
311 vcpu: !os_env SLAVE_NODE_CPU, 3
312 memory: !os_env SLAVE_NODE_MEMORY, 2048
313 boot:
314 - hd
315 cloud_init_volume_name: iso
316 cloud_init_iface_up: ens3
317 volumes:
318 - name: system
319 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200320 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300321 format: qcow2
322 - name: iso # Volume with name 'iso' will be used
323 # for store image with cloud-init metadata.
324 capacity: 1
325 format: raw
326 device: cdrom
327 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300328 cloudinit_meta_data: *cloudinit_meta_data
329 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300330
331 interfaces: *interfaces
332 network_config: *network_config
333
334 - name: {{ HOSTNAME_MON02 }}
335 role: salt_minion
336 params:
337 vcpu: !os_env SLAVE_NODE_CPU, 3
338 memory: !os_env SLAVE_NODE_MEMORY, 2048
339 boot:
340 - hd
341 cloud_init_volume_name: iso
342 cloud_init_iface_up: ens3
343 volumes:
344 - name: system
345 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200346 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300347 format: qcow2
348 - name: iso # Volume with name 'iso' will be used
349 # for store image with cloud-init metadata.
350 capacity: 1
351 format: raw
352 device: cdrom
353 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300354 cloudinit_meta_data: *cloudinit_meta_data
355 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300356
357 interfaces: *interfaces
358 network_config: *network_config
359
360 - name: {{ HOSTNAME_MON03 }}
361 role: salt_minion
362 params:
363 vcpu: !os_env SLAVE_NODE_CPU, 3
364 memory: !os_env SLAVE_NODE_MEMORY, 2048
365 boot:
366 - hd
367 cloud_init_volume_name: iso
368 cloud_init_iface_up: ens3
369 volumes:
370 - name: system
371 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200372 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300373 format: qcow2
374 - name: iso # Volume with name 'iso' will be used
375 # for store image with cloud-init metadata.
376 capacity: 1
377 format: raw
378 device: cdrom
379 bus: ide
Dennis Dmitrieva5f69402017-10-01 11:14:35 +0300380 cloudinit_meta_data: *cloudinit_meta_data
381 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300382
383 interfaces: *interfaces
384 network_config: *network_config
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300385
386 - name: {{ HOSTNAME_PRX01 }}
387 role: salt_minion
388 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300389 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300390 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300391 boot:
392 - hd
393 cloud_init_volume_name: iso
394 cloud_init_iface_up: ens3
395 volumes:
396 - name: system
397 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200398 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300399 format: qcow2
400 - name: cinder
401 capacity: 50
402 format: qcow2
403 - name: iso # Volume with name 'iso' will be used
404 # for store image with cloud-init metadata.
405 capacity: 1
406 format: raw
407 device: cdrom
408 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300409 cloudinit_meta_data: *cloudinit_meta_data
410 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300411
412 interfaces: *interfaces
413 network_config: *network_config
414
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300415 - name: {{ HOSTNAME_CMP01 }}
416 role: salt_minion
417 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300418 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300419 memory: !os_env SLAVE_NODE_MEMORY, 4096
420 boot:
421 - hd
422 cloud_init_volume_name: iso
423 cloud_init_iface_up: ens3
424 volumes:
425 - name: system
426 capacity: !os_env NODE_VOLUME_SIZE, 150
427 backing_store: cloudimage1604
428 format: qcow2
429 - name: iso # Volume with name 'iso' will be used
430 # for store image with cloud-init metadata.
431 capacity: 1
432 format: raw
433 device: cdrom
434 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300435 cloudinit_meta_data: *cloudinit_meta_data
436 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300437
438
439 interfaces: &all_interfaces
440 - label: ens3
441 l2_network_device: admin
442 interface_model: *interface_model
443 - label: ens4
444 l2_network_device: private
445 interface_model: *interface_model
446 - label: ens5
447 l2_network_device: tenant
448 interface_model: *interface_model
449 - label: ens6
450 l2_network_device: external
451 interface_model: *interface_model
452 network_config: &all_network_config
453 ens3:
454 networks:
455 - admin
456 ens4:
457 networks:
458 - private
459 ens5:
460 networks:
461 - tenant
462 ens6:
463 networks:
464 - external
465
466 - name: {{ HOSTNAME_CMP02 }}
467 role: salt_minion
468 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300469 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300470 memory: !os_env SLAVE_NODE_MEMORY, 4096
471 boot:
472 - hd
473 cloud_init_volume_name: iso
474 cloud_init_iface_up: ens3
475 volumes:
476 - name: system
477 capacity: !os_env NODE_VOLUME_SIZE, 150
478 backing_store: cloudimage1604
479 format: qcow2
480 - name: iso # Volume with name 'iso' will be used
481 # for store image with cloud-init metadata.
482 capacity: 1
483 format: raw
484 device: cdrom
485 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300486 cloudinit_meta_data: *cloudinit_meta_data
487 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300488
489 interfaces: *all_interfaces
490 network_config: *all_network_config
491
492 - name: {{ HOSTNAME_GTW01 }}
493 role: salt_minion
494 params:
495 vcpu: !os_env SLAVE_NODE_CPU, 1
496 memory: !os_env SLAVE_NODE_MEMORY, 2048
497 boot:
498 - hd
499 cloud_init_volume_name: iso
500 cloud_init_iface_up: ens3
501 volumes:
502 - name: system
503 capacity: !os_env NODE_VOLUME_SIZE, 150
504 backing_store: cloudimage1604
505 format: qcow2
506 - name: iso # Volume with name 'iso' will be used
507 # for store image with cloud-init metadata.
508 capacity: 1
509 format: raw
510 device: cdrom
511 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300512 cloudinit_meta_data: *cloudinit_meta_data
513 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300514
515 interfaces: *all_interfaces
516 network_config: *all_network_config