blob: d2a1bcc0896e5b4af23b6e42682e95ac00a3dd02 [file] [log] [blame]
Oleksii Butenko8be76f62018-03-30 13:35:26 +03001# 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-barbican/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-dvr-ssl-barbican/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-dvr-ssl-barbican/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-barbican') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Oleksii Butenkoe451bd42018-07-19 17:01:16 +030017{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01') %}
18{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01') %}
19{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02') %}
20{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03') %}
21{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01') %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02') %}
23{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01') %}
24{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01') %}
25{% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01') %}
26{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02') %}
27{% set HOSTNAME_SHARE01 = os_env('HOSTNAME_SHARE01', 'share01') %}
Oleksii Butenko8be76f62018-03-30 13:35:26 +030028
29template:
30 devops_settings:
31 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-dvr-ssl-barbican_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
32
33 address_pools:
34 private-pool01:
35 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
36 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
46 default_{{ HOSTNAME_GTW01 }}: +110
47 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkod75c7852018-04-06 18:08:02 +030048 default_{{ HOSTNAME_DNS01 }}: +111
49 default_{{ HOSTNAME_DNS02 }}: +112
sgudz8cbe2a32018-04-02 15:47:59 +030050 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko8be76f62018-03-30 13:35:26 +030051 ip_ranges:
52 dhcp: [+90, -10]
53
54 admin-pool01:
55 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
56 params:
57 ip_reserved:
58 gateway: +1
59 l2_network_device: +1
60 default_{{ HOSTNAME_CFG01 }}: +90
61 default_{{ HOSTNAME_CTL01 }}: +101
62 default_{{ HOSTNAME_CTL02 }}: +102
63 default_{{ HOSTNAME_CTL03 }}: +103
64 default_{{ HOSTNAME_CMP01 }}: +105
65 default_{{ HOSTNAME_CMP02 }}: +106
66 default_{{ HOSTNAME_GTW01 }}: +110
67 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkod75c7852018-04-06 18:08:02 +030068 default_{{ HOSTNAME_DNS01 }}: +111
69 default_{{ HOSTNAME_DNS02 }}: +112
sgudz8cbe2a32018-04-02 15:47:59 +030070 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko8be76f62018-03-30 13:35:26 +030071 ip_ranges:
72 dhcp: [+90, -10]
73
74 tenant-pool01:
75 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
76 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
86 default_{{ HOSTNAME_GTW01 }}: +110
87 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkod75c7852018-04-06 18:08:02 +030088 default_{{ HOSTNAME_DNS01 }}: +111
89 default_{{ HOSTNAME_DNS02 }}: +112
sgudz8cbe2a32018-04-02 15:47:59 +030090 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko8be76f62018-03-30 13:35:26 +030091 ip_ranges:
92 dhcp: [+10, -10]
93
94 external-pool01:
95 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
96 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
106 default_{{ HOSTNAME_GTW01 }}: +110
107 default_{{ HOSTNAME_PRX01 }}: +121
Oleksii Butenkod75c7852018-04-06 18:08:02 +0300108 default_{{ HOSTNAME_DNS01 }}: +111
109 default_{{ HOSTNAME_DNS02 }}: +112
sgudz8cbe2a32018-04-02 15:47:59 +0300110 default_{{ HOSTNAME_SHARE01 }}: +130
Oleksii Butenko8be76f62018-03-30 13:35:26 +0300111 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
126 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
127
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: false
138 forward:
139 mode: route
140
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: false
150
151 external:
152 address_pool: external-pool01
153 dhcp: true
154 forward:
Dennis Dmitrievb0ce3682018-05-01 16:48:11 +0300155 mode: route
Oleksii Butenko8be76f62018-03-30 13:35:26 +0300156
157
158 group_volumes:
159 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
160 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
164 format: qcow2
165 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
166 source_image: !os_env MCP_IMAGE_PATH1604
167 format: qcow2
168
169 nodes:
170 - name: {{ HOSTNAME_CFG01 }}
171 role: salt_master
172 params:
173 vcpu: !os_env SLAVE_NODE_CPU, 2
174 memory: !os_env SLAVE_NODE_MEMORY, 8192
175 boot:
176 - hd
177 cloud_init_volume_name: iso
178 cloud_init_iface_up: ens3
179 volumes:
180 - name: system
181 capacity: !os_env NODE_VOLUME_SIZE, 150
182 backing_store: cfg01_day01_image
183 format: qcow2
184 - name: iso # Volume with name 'iso' will be used
185 # for store image with cloud-init metadata.
186 capacity: 1
187 format: raw
188 device: cdrom
189 bus: ide
190 cloudinit_meta_data: *cloudinit_meta_data
191 cloudinit_user_data: *cloudinit_user_data_cfg01
192
193 interfaces:
194 - label: ens3
195 l2_network_device: admin
196 interface_model: *interface_model
197 - label: ens4
198 l2_network_device: private
199 interface_model: *interface_model
200 network_config:
201 ens3:
202 networks:
203 - admin
204 ens4:
205 networks:
206 - private
207
208 - name: {{ HOSTNAME_CTL01 }}
209 role: salt_minion
210 params:
211 vcpu: !os_env SLAVE_NODE_CPU, 2
212 memory: !os_env SLAVE_NODE_MEMORY, 16384
213 boot:
214 - hd
215 cloud_init_volume_name: iso
216 cloud_init_iface_up: ens3
217 volumes:
218 - name: system
219 capacity: !os_env NODE_VOLUME_SIZE, 150
220 backing_store: mcp_ubuntu_1604_image
221 format: qcow2
222 - name: cinder
223 capacity: 50
224 format: qcow2
225 - name: iso # Volume with name 'iso' will be used
226 # for store image with cloud-init metadata.
227 capacity: 1
228 format: raw
229 device: cdrom
230 bus: ide
231 cloudinit_meta_data: *cloudinit_meta_data
232 cloudinit_user_data: *cloudinit_user_data_1604
233
234 interfaces: &interfaces
235 - label: ens3
236 l2_network_device: admin
237 interface_model: *interface_model
238 - label: ens4
239 l2_network_device: private
240 interface_model: *interface_model
241 network_config: &network_config
242 ens3:
243 networks:
244 - admin
245 ens4:
246 networks:
247 - private
248
249 - name: {{ HOSTNAME_CTL02 }}
250 role: salt_minion
251 params:
252 vcpu: !os_env SLAVE_NODE_CPU, 2
253 memory: !os_env SLAVE_NODE_MEMORY, 16384
254 boot:
255 - hd
256 cloud_init_volume_name: iso
257 cloud_init_iface_up: ens3
258 volumes:
259 - name: system
260 capacity: !os_env NODE_VOLUME_SIZE, 150
261 backing_store: mcp_ubuntu_1604_image
262 format: qcow2
263 - name: cinder
264 capacity: 50
265 format: qcow2
266 - name: iso # Volume with name 'iso' will be used
267 # for store image with cloud-init metadata.
268 capacity: 1
269 format: raw
270 device: cdrom
271 bus: ide
272 cloudinit_meta_data: *cloudinit_meta_data
273 cloudinit_user_data: *cloudinit_user_data_1604
274
275 interfaces: *interfaces
276 network_config: *network_config
277
278 - name: {{ HOSTNAME_CTL03 }}
279 role: salt_minion
280 params:
281 vcpu: !os_env SLAVE_NODE_CPU, 2
282 memory: !os_env SLAVE_NODE_MEMORY, 16384
283 boot:
284 - hd
285 cloud_init_volume_name: iso
286 cloud_init_iface_up: ens3
287 volumes:
288 - name: system
289 capacity: !os_env NODE_VOLUME_SIZE, 150
290 backing_store: mcp_ubuntu_1604_image
291 format: qcow2
292 - name: cinder
293 capacity: 50
294 format: qcow2
295 - name: iso # Volume with name 'iso' will be used
296 # for store image with cloud-init metadata.
297 capacity: 1
298 format: raw
299 device: cdrom
300 bus: ide
301 cloudinit_meta_data: *cloudinit_meta_data
302 cloudinit_user_data: *cloudinit_user_data_1604
303
304 interfaces: *interfaces
305 network_config: *network_config
306
307 - name: {{ HOSTNAME_PRX01 }}
308 role: salt_minion
309 params:
310 vcpu: !os_env SLAVE_NODE_CPU, 1
311 memory: !os_env SLAVE_NODE_MEMORY, 8192
312 boot:
313 - hd
314 cloud_init_volume_name: iso
315 cloud_init_iface_up: ens3
316 volumes:
317 - name: system
318 capacity: !os_env NODE_VOLUME_SIZE, 150
319 backing_store: mcp_ubuntu_1604_image
320 format: qcow2
321 - name: cinder
322 capacity: 50
323 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
330 cloudinit_meta_data: *cloudinit_meta_data
331 cloudinit_user_data: *cloudinit_user_data_1604
332
333 interfaces: *interfaces
334 network_config: *network_config
335
336
337 - name: {{ HOSTNAME_CMP01 }}
338 role: salt_minion
339 params:
340 vcpu: !os_env SLAVE_NODE_CPU, 3
341 memory: !os_env SLAVE_NODE_MEMORY, 4096
342 boot:
343 - hd
344 cloud_init_volume_name: iso
345 cloud_init_iface_up: ens3
346 volumes:
347 - name: system
348 capacity: !os_env NODE_VOLUME_SIZE, 150
349 backing_store: cloudimage1604
350 format: qcow2
351 - name: iso # Volume with name 'iso' will be used
352 # for store image with cloud-init metadata.
353 capacity: 1
354 format: raw
355 device: cdrom
356 bus: ide
357 cloudinit_meta_data: *cloudinit_meta_data
358 cloudinit_user_data: *cloudinit_user_data_1604
359
360
361 interfaces: &all_interfaces
362 - label: ens3
363 l2_network_device: admin
364 interface_model: *interface_model
365 - label: ens4
366 l2_network_device: private
367 interface_model: *interface_model
368 - label: ens5
369 l2_network_device: tenant
370 interface_model: *interface_model
371 - label: ens6
372 l2_network_device: external
373 interface_model: *interface_model
374 network_config: &all_network_config
375 ens3:
376 networks:
377 - admin
378 ens4:
379 networks:
380 - private
381 ens5:
382 networks:
383 - tenant
384 ens6:
385 networks:
386 - external
387
388 - name: {{ HOSTNAME_CMP02 }}
389 role: salt_minion
390 params:
391 vcpu: !os_env SLAVE_NODE_CPU, 3
392 memory: !os_env SLAVE_NODE_MEMORY, 4096
393 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
400 backing_store: cloudimage1604
401 format: qcow2
402 - name: iso # Volume with name 'iso' will be used
403 # for store image with cloud-init metadata.
404 capacity: 1
405 format: raw
406 device: cdrom
407 bus: ide
408 cloudinit_meta_data: *cloudinit_meta_data
409 cloudinit_user_data: *cloudinit_user_data_1604
410
411 interfaces: *all_interfaces
412 network_config: *all_network_config
413
414 - name: {{ HOSTNAME_GTW01 }}
415 role: salt_minion
416 params:
417 vcpu: !os_env SLAVE_NODE_CPU, 4
418 memory: !os_env SLAVE_NODE_MEMORY, 4096
419 boot:
420 - hd
421 cloud_init_volume_name: iso
422 cloud_init_iface_up: ens3
423 volumes:
424 - name: system
425 capacity: !os_env NODE_VOLUME_SIZE, 150
426 backing_store: cloudimage1604
427 format: qcow2
428 - name: iso # Volume with name 'iso' will be used
429 # for store image with cloud-init metadata.
430 capacity: 1
431 format: raw
432 device: cdrom
433 bus: ide
434 cloudinit_meta_data: *cloudinit_meta_data
435 cloudinit_user_data: *cloudinit_user_data_1604
436
437 interfaces: *all_interfaces
438 network_config: *all_network_config
sgudz8cbe2a32018-04-02 15:47:59 +0300439
Oleksii Butenkod75c7852018-04-06 18:08:02 +0300440 - name: {{ HOSTNAME_DNS01 }}
441 role: salt_minion
442 params:
443 vcpu: !os_env SLAVE_NODE_CPU, 1
444 memory: !os_env SLAVE_NODE_MEMORY, 2048
445 boot:
446 - hd
447 cloud_init_volume_name: iso
448 cloud_init_iface_up: ens3
449 volumes:
450 - name: system
451 capacity: !os_env NODE_VOLUME_SIZE, 150
452 backing_store: mcp_ubuntu_1604_image
453 format: qcow2
454 - name: iso # Volume with name 'iso' will be used
455 # for store image with cloud-init metadata.
456 capacity: 1
457 format: raw
458 device: cdrom
459 bus: ide
460 cloudinit_meta_data: *cloudinit_meta_data
461 cloudinit_user_data: *cloudinit_user_data_1604
462
463 interfaces: *all_interfaces
464 network_config: *all_network_config
465
466 - name: {{ HOSTNAME_DNS02 }}
467 role: salt_minion
468 params:
469 vcpu: !os_env SLAVE_NODE_CPU, 1
470 memory: !os_env SLAVE_NODE_MEMORY, 2048
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: mcp_ubuntu_1604_image
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
486 cloudinit_meta_data: *cloudinit_meta_data
487 cloudinit_user_data: *cloudinit_user_data_1604
488
489 interfaces: *all_interfaces
490 network_config: *all_network_config
491
sgudz8cbe2a32018-04-02 15:47:59 +0300492 - name: {{ HOSTNAME_SHARE01 }}
493 role: salt_minion
494 params:
495 vcpu: !os_env SLAVE_NODE_CPU, 2
496 memory: !os_env SLAVE_NODE_MEMORY, 4096
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: mcp_ubuntu_1604_image
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
512 cloudinit_meta_data: *cloudinit_meta_data
513 cloudinit_user_data: *cloudinit_user_data_1604
514
515 interfaces: *all_interfaces
516 network_config: *all_network_config