blob: 7a37142db941a2fdabf7c65d433c95b6758c3a4f [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-mcp11-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03008---
9aliases:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +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 Leontovichd8bf14f2017-04-19 12:20:50 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-dvr') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +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) %}
23{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
25
26template:
27 devops_settings:
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030029
30 address_pools:
31 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030032 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030033 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
Tatyana Leontovich6c56e362017-10-04 18:53:21 +030037 default_{{ HOSTNAME_CFG01 }}: +90
38 default_{{ HOSTNAME_CTL01 }}: +91
39 default_{{ HOSTNAME_CTL02 }}: +92
40 default_{{ HOSTNAME_CTL03 }}: +93
41 default_{{ HOSTNAME_CMP01 }}: +95
42 default_{{ HOSTNAME_CMP02 }}: +96
43 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030044 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
46 dhcp: [+90, -10]
47
48 admin-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030049 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030050 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030054 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich6c56e362017-10-04 18:53:21 +030055 default_{{ HOSTNAME_CTL01 }}: +91
56 default_{{ HOSTNAME_CTL02 }}: +92
57 default_{{ HOSTNAME_CTL03 }}: +93
58 default_{{ HOSTNAME_CMP01 }}: +95
59 default_{{ HOSTNAME_CMP02 }}: +96
60 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030061 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
63 dhcp: [+90, -10]
64
65 tenant-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030066 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030067 params:
68 ip_reserved:
69 gateway: +1
70 l2_network_device: +1
71 default_{{ HOSTNAME_CFG01 }}: +100
72 default_{{ HOSTNAME_CTL01 }}: +101
73 default_{{ HOSTNAME_CTL02 }}: +102
74 default_{{ HOSTNAME_CTL03 }}: +103
75 default_{{ HOSTNAME_CMP01 }}: +105
76 default_{{ HOSTNAME_CMP02 }}: +106
77 default_{{ HOSTNAME_GTW01 }}: +110
78 default_{{ HOSTNAME_PRX01 }}: +121
79 ip_ranges:
80 dhcp: [+10, -10]
81
82 external-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030083 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030084 params:
85 ip_reserved:
86 gateway: +1
87 l2_network_device: +1
88 default_{{ HOSTNAME_CFG01 }}: +100
89 default_{{ HOSTNAME_CTL01 }}: +101
90 default_{{ HOSTNAME_CTL02 }}: +102
91 default_{{ HOSTNAME_CTL03 }}: +103
92 default_{{ HOSTNAME_CMP01 }}: +105
93 default_{{ HOSTNAME_CMP02 }}: +106
94 default_{{ HOSTNAME_GTW01 }}: +110
95 default_{{ HOSTNAME_PRX01 }}: +121
96 ip_ranges:
97 dhcp: [+10, -10]
98
99
100 groups:
101 - name: default
102 driver:
103 name: devops.driver.libvirt
104 params:
105 connection_string: !os_env CONNECTION_STRING, qemu:///system
106 storage_pool_name: !os_env STORAGE_POOL_NAME, default
107 stp: False
108 hpet: False
109 enable_acpi: true
110 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300112
113 network_pools:
114 admin: admin-pool01
115 private: private-pool01
116 tenant: tenant-pool01
117 external: external-pool01
118
119 l2_network_devices:
120 private:
121 address_pool: private-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200122 dhcp: false
123 forward:
124 mode: route
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300125
126 admin:
127 address_pool: admin-pool01
128 dhcp: true
129 forward:
130 mode: nat
131
132 tenant:
133 address_pool: tenant-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200134 dhcp: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300135
136 external:
137 address_pool: external-pool01
138 dhcp: true
139 forward:
140 mode: nat
141
142
143 group_volumes:
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300144 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200145 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
146 format: qcow2
147 - name: cfg01_day01_image # Pre-configured day01 image
148 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 Leontovichd8bf14f2017-04-19 12:20:50 +0300149 format: qcow2
150
151 nodes:
152 - name: {{ HOSTNAME_CFG01 }}
153 role: salt_master
154 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300155 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300156 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300157 boot:
158 - hd
159 cloud_init_volume_name: iso
160 cloud_init_iface_up: ens3
161 volumes:
162 - name: system
163 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200164 backing_store: cfg01_day01_image
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300165 format: qcow2
166 - name: iso # Volume with name 'iso' will be used
167 # for store image with cloud-init metadata.
168 capacity: 1
169 format: raw
170 device: cdrom
171 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300172 cloudinit_meta_data: *cloudinit_meta_data
173 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300174
175 interfaces:
176 - label: ens3
177 l2_network_device: admin
178 interface_model: *interface_model
179 - label: ens4
180 l2_network_device: private
181 interface_model: *interface_model
182 network_config:
183 ens3:
184 networks:
185 - admin
186 ens4:
187 networks:
188 - private
189
190 - name: {{ HOSTNAME_CTL01 }}
191 role: salt_minion
192 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200193 vcpu: !os_env SLAVE_NODE_CPU, 3
194 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300195 boot:
196 - hd
197 cloud_init_volume_name: iso
198 cloud_init_iface_up: ens3
199 volumes:
200 - name: system
201 capacity: !os_env NODE_VOLUME_SIZE, 150
202 backing_store: cloudimage1604
203 format: qcow2
204 - name: cinder
205 capacity: 50
206 format: qcow2
207 - name: iso # Volume with name 'iso' will be used
208 # for store image with cloud-init metadata.
209 capacity: 1
210 format: raw
211 device: cdrom
212 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300213 cloudinit_meta_data: *cloudinit_meta_data
214 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300215
216 interfaces: &interfaces
217 - label: ens3
218 l2_network_device: admin
219 interface_model: *interface_model
220 - label: ens4
221 l2_network_device: private
222 interface_model: *interface_model
223 network_config: &network_config
224 ens3:
225 networks:
226 - admin
227 ens4:
228 networks:
229 - private
230
231 - name: {{ HOSTNAME_CTL02 }}
232 role: salt_minion
233 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200234 vcpu: !os_env SLAVE_NODE_CPU, 3
235 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300236 boot:
237 - hd
238 cloud_init_volume_name: iso
239 cloud_init_iface_up: ens3
240 volumes:
241 - name: system
242 capacity: !os_env NODE_VOLUME_SIZE, 150
243 backing_store: cloudimage1604
244 format: qcow2
245 - name: cinder
246 capacity: 50
247 format: qcow2
248 - name: iso # Volume with name 'iso' will be used
249 # for store image with cloud-init metadata.
250 capacity: 1
251 format: raw
252 device: cdrom
253 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300254 cloudinit_meta_data: *cloudinit_meta_data
255 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300256
257 interfaces: *interfaces
258 network_config: *network_config
259
260 - name: {{ HOSTNAME_CTL03 }}
261 role: salt_minion
262 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200263 vcpu: !os_env SLAVE_NODE_CPU, 3
264 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +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
272 backing_store: cloudimage1604
273 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 Dmitriev99b26fe2017-04-26 12:34:44 +0300283 cloudinit_meta_data: *cloudinit_meta_data
284 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300285
286 interfaces: *interfaces
287 network_config: *network_config
288
289 - name: {{ HOSTNAME_PRX01 }}
290 role: salt_minion
291 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300292 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300293 memory: !os_env SLAVE_NODE_MEMORY, 8192
294 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
301 backing_store: cloudimage1604
302 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 Dmitriev99b26fe2017-04-26 12:34:44 +0300312 cloudinit_meta_data: *cloudinit_meta_data
313 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300314
315 interfaces: *interfaces
316 network_config: *network_config
317
318
319 - name: {{ HOSTNAME_CMP01 }}
320 role: salt_minion
321 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300322 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300323 memory: !os_env SLAVE_NODE_MEMORY, 4096
324 boot:
325 - hd
326 cloud_init_volume_name: iso
327 cloud_init_iface_up: ens3
328 volumes:
329 - name: system
330 capacity: !os_env NODE_VOLUME_SIZE, 150
331 backing_store: cloudimage1604
332 format: qcow2
333 - name: iso # Volume with name 'iso' will be used
334 # for store image with cloud-init metadata.
335 capacity: 1
336 format: raw
337 device: cdrom
338 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300339 cloudinit_meta_data: *cloudinit_meta_data
340 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300341
342
343 interfaces: &all_interfaces
344 - label: ens3
345 l2_network_device: admin
346 interface_model: *interface_model
347 - label: ens4
348 l2_network_device: private
349 interface_model: *interface_model
350 - label: ens5
351 l2_network_device: tenant
352 interface_model: *interface_model
353 - label: ens6
354 l2_network_device: external
355 interface_model: *interface_model
356 network_config: &all_network_config
357 ens3:
358 networks:
359 - admin
360 ens4:
361 networks:
362 - private
363 ens5:
364 networks:
365 - tenant
366 ens6:
367 networks:
368 - external
369
370 - name: {{ HOSTNAME_CMP02 }}
371 role: salt_minion
372 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300373 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300374 memory: !os_env SLAVE_NODE_MEMORY, 4096
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
382 backing_store: cloudimage1604
383 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 Dmitriev99b26fe2017-04-26 12:34:44 +0300390 cloudinit_meta_data: *cloudinit_meta_data
391 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300392
393 interfaces: *all_interfaces
394 network_config: *all_network_config
395
396 - name: {{ HOSTNAME_GTW01 }}
397 role: salt_minion
398 params:
399 vcpu: !os_env SLAVE_NODE_CPU, 1
400 memory: !os_env SLAVE_NODE_MEMORY, 2048
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
408 backing_store: cloudimage1604
409 format: qcow2
410 - 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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300416 cloudinit_meta_data: *cloudinit_meta_data
417 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300418
419 interfaces: *all_interfaces
420 network_config: *all_network_config