blob: 4c8efd8e00c9df2e2655ede22192380543c8e474 [file] [log] [blame]
Dennis Dmitriev47433912018-03-25 04:24:59 +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 'cookied-mcp-pike-dvr-ssl/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-pike-dvr-ssl/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-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', 'cookied-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) %}
23{% 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) %}
26{% 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:
31 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ssl_' + 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_MON01 }}: +107
47 default_{{ HOSTNAME_MON02 }}: +108
48 default_{{ HOSTNAME_MON03 }}: +109
49 default_{{ HOSTNAME_GTW01 }}: +110
50 default_{{ HOSTNAME_PRX01 }}: +121
51 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_MON01 }}: +107
67 default_{{ HOSTNAME_MON02 }}: +108
68 default_{{ HOSTNAME_MON03 }}: +109
69 default_{{ HOSTNAME_GTW01 }}: +110
70 default_{{ HOSTNAME_PRX01 }}: +121
71 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_MON01 }}: +107
87 default_{{ HOSTNAME_MON02 }}: +108
88 default_{{ HOSTNAME_MON03 }}: +109
89 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
91 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_MON01 }}: +107
107 default_{{ HOSTNAME_MON02 }}: +108
108 default_{{ HOSTNAME_MON03 }}: +109
109 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
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 Dmitriev2cb23932018-05-01 01:47:34 +0300155 mode: route
Dennis Dmitriev47433912018-03-25 04:24:59 +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_MON01 }}
308 role: salt_minion
309 params:
310 vcpu: !os_env SLAVE_NODE_CPU, 3
311 memory: !os_env SLAVE_NODE_MEMORY, 6144
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: iso # Volume with name 'iso' will be used
322 # for store image with cloud-init metadata.
323 capacity: 1
324 format: raw
325 device: cdrom
326 bus: ide
327 cloudinit_meta_data: *cloudinit_meta_data
328 cloudinit_user_data: *cloudinit_user_data_1604
329
330 interfaces: *interfaces
331 network_config: *network_config
332
333 - name: {{ HOSTNAME_MON02 }}
334 role: salt_minion
335 params:
336 vcpu: !os_env SLAVE_NODE_CPU, 3
337 memory: !os_env SLAVE_NODE_MEMORY, 6144
338 boot:
339 - hd
340 cloud_init_volume_name: iso
341 cloud_init_iface_up: ens3
342 volumes:
343 - name: system
344 capacity: !os_env NODE_VOLUME_SIZE, 150
345 backing_store: mcp_ubuntu_1604_image
346 format: qcow2
347 - name: iso # Volume with name 'iso' will be used
348 # for store image with cloud-init metadata.
349 capacity: 1
350 format: raw
351 device: cdrom
352 bus: ide
353 cloudinit_meta_data: *cloudinit_meta_data
354 cloudinit_user_data: *cloudinit_user_data_1604
355
356 interfaces: *interfaces
357 network_config: *network_config
358
359 - name: {{ HOSTNAME_MON03 }}
360 role: salt_minion
361 params:
362 vcpu: !os_env SLAVE_NODE_CPU, 3
363 memory: !os_env SLAVE_NODE_MEMORY, 6144
364 boot:
365 - hd
366 cloud_init_volume_name: iso
367 cloud_init_iface_up: ens3
368 volumes:
369 - name: system
370 capacity: !os_env NODE_VOLUME_SIZE, 150
371 backing_store: mcp_ubuntu_1604_image
372 format: qcow2
373 - name: iso # Volume with name 'iso' will be used
374 # for store image with cloud-init metadata.
375 capacity: 1
376 format: raw
377 device: cdrom
378 bus: ide
379 cloudinit_meta_data: *cloudinit_meta_data
380 cloudinit_user_data: *cloudinit_user_data_1604
381
382 interfaces: *interfaces
383 network_config: *network_config
384
385 - name: {{ HOSTNAME_PRX01 }}
386 role: salt_minion
387 params:
388 vcpu: !os_env SLAVE_NODE_CPU, 1
389 memory: !os_env SLAVE_NODE_MEMORY, 8192
390 boot:
391 - hd
392 cloud_init_volume_name: iso
393 cloud_init_iface_up: ens3
394 volumes:
395 - name: system
396 capacity: !os_env NODE_VOLUME_SIZE, 150
397 backing_store: mcp_ubuntu_1604_image
398 format: qcow2
399 - name: cinder
400 capacity: 50
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: *interfaces
412 network_config: *network_config
413
414
415 - name: {{ HOSTNAME_CMP01 }}
416 role: salt_minion
417 params:
418 vcpu: !os_env SLAVE_NODE_CPU, 3
419 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
435 cloudinit_meta_data: *cloudinit_meta_data
436 cloudinit_user_data: *cloudinit_user_data_1604
437
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:
469 vcpu: !os_env SLAVE_NODE_CPU, 3
470 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
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
492 - name: {{ HOSTNAME_GTW01 }}
493 role: salt_minion
494 params:
495 vcpu: !os_env SLAVE_NODE_CPU, 4
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: 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
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