blob: d1c8656ed9f11636c0b8819ad3c53114d739ccad [file] [log] [blame]
Tatyana Leontovichc447b122018-02-22 12:30:42 +02001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
3
4{% import 'virtual-mcp-pike-dvr-ssl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-dvr-ssl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-dvr-ssl/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7
8---
9aliases:
10 - &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 }}
14
15{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-pike-dvr-ssl') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
17{% 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 Leontovichc447b122018-02-22 12:30:42 +020023{% 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:
28 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-dvr-ssl_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
29
30 address_pools:
31 private-pool01:
32 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
33 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
37 default_{{ HOSTNAME_CFG01 }}: +100
38 default_{{ HOSTNAME_CTL01 }}: +101
39 default_{{ HOSTNAME_CTL02 }}: +102
40 default_{{ HOSTNAME_CTL03 }}: +103
41 default_{{ HOSTNAME_CMP01 }}: +105
42 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichc447b122018-02-22 12:30:42 +020043 default_{{ HOSTNAME_GTW01 }}: +110
44 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
46 dhcp: [+90, -10]
47
48 admin-pool01:
49 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
50 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
54 default_{{ HOSTNAME_CFG01 }}: +90
55 default_{{ HOSTNAME_CTL01 }}: +101
56 default_{{ HOSTNAME_CTL02 }}: +102
57 default_{{ HOSTNAME_CTL03 }}: +103
58 default_{{ HOSTNAME_CMP01 }}: +105
59 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovichc447b122018-02-22 12:30:42 +020060 default_{{ HOSTNAME_GTW01 }}: +110
61 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
63 dhcp: [+90, -10]
64
65 tenant-pool01:
66 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
67 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
Tatyana Leontovichc447b122018-02-22 12:30:42 +020077 default_{{ HOSTNAME_GTW01 }}: +110
78 default_{{ HOSTNAME_PRX01 }}: +121
79 ip_ranges:
80 dhcp: [+10, -10]
81
82 external-pool01:
83 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
84 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
Tatyana Leontovichc447b122018-02-22 12:30:42 +020094 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
111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
112
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
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200123 forward:
124 mode: route
125
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 Leontovichc447b122018-02-22 12:30:42 +0200135
136 external:
137 address_pool: external-pool01
138 dhcp: true
139 forward:
140 mode: nat
141
142
143 group_volumes:
144 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
145 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
149 format: qcow2
150 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
151 source_image: !os_env MCP_IMAGE_PATH1604
152 format: qcow2
153
154 nodes:
155 - name: {{ HOSTNAME_CFG01 }}
156 role: salt_master
157 params:
158 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200159 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200160 boot:
161 - hd
162 cloud_init_volume_name: iso
163 cloud_init_iface_up: ens3
164 volumes:
165 - name: system
166 capacity: !os_env NODE_VOLUME_SIZE, 150
167 backing_store: cfg01_day01_image
168 format: qcow2
169 - name: iso # Volume with name 'iso' will be used
170 # for store image with cloud-init metadata.
171 capacity: 1
172 format: raw
173 device: cdrom
174 bus: ide
175 cloudinit_meta_data: *cloudinit_meta_data
176 cloudinit_user_data: *cloudinit_user_data_cfg01
177
178 interfaces:
179 - label: ens3
180 l2_network_device: admin
181 interface_model: *interface_model
182 - label: ens4
183 l2_network_device: private
184 interface_model: *interface_model
185 network_config:
186 ens3:
187 networks:
188 - admin
189 ens4:
190 networks:
191 - private
192
193 - name: {{ HOSTNAME_CTL01 }}
194 role: salt_minion
195 params:
196 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200197 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200198 boot:
199 - hd
200 cloud_init_volume_name: iso
201 cloud_init_iface_up: ens3
202 volumes:
203 - name: system
204 capacity: !os_env NODE_VOLUME_SIZE, 150
205 backing_store: mcp_ubuntu_1604_image
206 format: qcow2
207 - name: cinder
208 capacity: 50
209 format: qcow2
210 - name: iso # Volume with name 'iso' will be used
211 # for store image with cloud-init metadata.
212 capacity: 1
213 format: raw
214 device: cdrom
215 bus: ide
216 cloudinit_meta_data: *cloudinit_meta_data
217 cloudinit_user_data: *cloudinit_user_data_1604
218
219 interfaces: &interfaces
220 - label: ens3
221 l2_network_device: admin
222 interface_model: *interface_model
223 - label: ens4
224 l2_network_device: private
225 interface_model: *interface_model
226 network_config: &network_config
227 ens3:
228 networks:
229 - admin
230 ens4:
231 networks:
232 - private
233
234 - name: {{ HOSTNAME_CTL02 }}
235 role: salt_minion
236 params:
237 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200238 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200239 boot:
240 - hd
241 cloud_init_volume_name: iso
242 cloud_init_iface_up: ens3
243 volumes:
244 - name: system
245 capacity: !os_env NODE_VOLUME_SIZE, 150
246 backing_store: mcp_ubuntu_1604_image
247 format: qcow2
248 - name: cinder
249 capacity: 50
250 format: qcow2
251 - name: iso # Volume with name 'iso' will be used
252 # for store image with cloud-init metadata.
253 capacity: 1
254 format: raw
255 device: cdrom
256 bus: ide
257 cloudinit_meta_data: *cloudinit_meta_data
258 cloudinit_user_data: *cloudinit_user_data_1604
259
260 interfaces: *interfaces
261 network_config: *network_config
262
263 - name: {{ HOSTNAME_CTL03 }}
264 role: salt_minion
265 params:
266 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200267 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200268 boot:
269 - hd
270 cloud_init_volume_name: iso
271 cloud_init_iface_up: ens3
272 volumes:
273 - name: system
274 capacity: !os_env NODE_VOLUME_SIZE, 150
275 backing_store: mcp_ubuntu_1604_image
276 format: qcow2
277 - name: cinder
278 capacity: 50
279 format: qcow2
280 - name: iso # Volume with name 'iso' will be used
281 # for store image with cloud-init metadata.
282 capacity: 1
283 format: raw
284 device: cdrom
285 bus: ide
286 cloudinit_meta_data: *cloudinit_meta_data
287 cloudinit_user_data: *cloudinit_user_data_1604
288
289 interfaces: *interfaces
290 network_config: *network_config
291
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200292 - name: {{ HOSTNAME_PRX01 }}
293 role: salt_minion
294 params:
295 vcpu: !os_env SLAVE_NODE_CPU, 1
296 memory: !os_env SLAVE_NODE_MEMORY, 8192
297 boot:
298 - hd
299 cloud_init_volume_name: iso
300 cloud_init_iface_up: ens3
301 volumes:
302 - name: system
303 capacity: !os_env NODE_VOLUME_SIZE, 150
304 backing_store: mcp_ubuntu_1604_image
305 format: qcow2
306 - name: cinder
307 capacity: 50
308 format: qcow2
309 - name: iso # Volume with name 'iso' will be used
310 # for store image with cloud-init metadata.
311 capacity: 1
312 format: raw
313 device: cdrom
314 bus: ide
315 cloudinit_meta_data: *cloudinit_meta_data
316 cloudinit_user_data: *cloudinit_user_data_1604
317
318 interfaces: *interfaces
319 network_config: *network_config
320
321
322 - name: {{ HOSTNAME_CMP01 }}
323 role: salt_minion
324 params:
325 vcpu: !os_env SLAVE_NODE_CPU, 3
326 memory: !os_env SLAVE_NODE_MEMORY, 4096
327 boot:
328 - hd
329 cloud_init_volume_name: iso
330 cloud_init_iface_up: ens3
331 volumes:
332 - name: system
333 capacity: !os_env NODE_VOLUME_SIZE, 150
334 backing_store: cloudimage1604
335 format: qcow2
336 - name: iso # Volume with name 'iso' will be used
337 # for store image with cloud-init metadata.
338 capacity: 1
339 format: raw
340 device: cdrom
341 bus: ide
342 cloudinit_meta_data: *cloudinit_meta_data
343 cloudinit_user_data: *cloudinit_user_data_1604
344
345
346 interfaces: &all_interfaces
347 - label: ens3
348 l2_network_device: admin
349 interface_model: *interface_model
350 - label: ens4
351 l2_network_device: private
352 interface_model: *interface_model
353 - label: ens5
354 l2_network_device: tenant
355 interface_model: *interface_model
356 - label: ens6
357 l2_network_device: external
358 interface_model: *interface_model
359 network_config: &all_network_config
360 ens3:
361 networks:
362 - admin
363 ens4:
364 networks:
365 - private
366 ens5:
367 networks:
368 - tenant
369 ens6:
370 networks:
371 - external
372
373 - name: {{ HOSTNAME_CMP02 }}
374 role: salt_minion
375 params:
376 vcpu: !os_env SLAVE_NODE_CPU, 3
377 memory: !os_env SLAVE_NODE_MEMORY, 4096
378 boot:
379 - hd
380 cloud_init_volume_name: iso
381 cloud_init_iface_up: ens3
382 volumes:
383 - name: system
384 capacity: !os_env NODE_VOLUME_SIZE, 150
385 backing_store: cloudimage1604
386 format: qcow2
387 - name: iso # Volume with name 'iso' will be used
388 # for store image with cloud-init metadata.
389 capacity: 1
390 format: raw
391 device: cdrom
392 bus: ide
393 cloudinit_meta_data: *cloudinit_meta_data
394 cloudinit_user_data: *cloudinit_user_data_1604
395
396 interfaces: *all_interfaces
397 network_config: *all_network_config
398
399 - name: {{ HOSTNAME_GTW01 }}
400 role: salt_minion
401 params:
Dennis Dmitrievfd3370b2018-03-07 00:50:35 +0200402 vcpu: !os_env SLAVE_NODE_CPU, 4
403 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichc447b122018-02-22 12:30:42 +0200404 boot:
405 - hd
406 cloud_init_volume_name: iso
407 cloud_init_iface_up: ens3
408 volumes:
409 - name: system
410 capacity: !os_env NODE_VOLUME_SIZE, 150
411 backing_store: cloudimage1604
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
419 cloudinit_meta_data: *cloudinit_meta_data
420 cloudinit_user_data: *cloudinit_user_data_1604
421
422 interfaces: *all_interfaces
423 network_config: *all_network_config