blob: 714cd1b6d47f9ef87634046b479988382def6ee7 [file] [log] [blame]
ibumarskov12b79ae2018-03-15 01:11:41 -07001# 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-mitaka-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-mitaka-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-mitaka-dvr/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-mitaka-dvr') %}
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_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %}
29{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
30
31template:
32 devops_settings:
33 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-mitaka-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
34
35 address_pools:
36 private-pool01:
37 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
38 params:
39 ip_reserved:
40 gateway: +1
41 l2_network_device: +1
42 default_{{ HOSTNAME_CFG01 }}: +100
43 default_{{ HOSTNAME_CTL01 }}: +101
44 default_{{ HOSTNAME_CTL02 }}: +102
45 default_{{ HOSTNAME_CTL03 }}: +103
46 default_{{ HOSTNAME_CMP01 }}: +105
47 default_{{ HOSTNAME_CMP02 }}: +106
48 default_{{ HOSTNAME_MON01 }}: +107
49 default_{{ HOSTNAME_MON02 }}: +108
50 default_{{ HOSTNAME_MON03 }}: +109
51 default_{{ HOSTNAME_GTW01 }}: +110
52 default_{{ HOSTNAME_DNS01 }}: +111
53 default_{{ HOSTNAME_DNS02 }}: +112
54 default_{{ HOSTNAME_PRX01 }}: +121
55 ip_ranges:
56 dhcp: [+90, -10]
57
58 admin-pool01:
59 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
60 params:
61 ip_reserved:
62 gateway: +1
63 l2_network_device: +1
64 default_{{ HOSTNAME_CFG01 }}: +90
65 default_{{ HOSTNAME_CTL01 }}: +101
66 default_{{ HOSTNAME_CTL02 }}: +102
67 default_{{ HOSTNAME_CTL03 }}: +103
68 default_{{ HOSTNAME_CMP01 }}: +105
69 default_{{ HOSTNAME_CMP02 }}: +106
70 default_{{ HOSTNAME_MON01 }}: +107
71 default_{{ HOSTNAME_MON02 }}: +108
72 default_{{ HOSTNAME_MON03 }}: +109
73 default_{{ HOSTNAME_GTW01 }}: +110
74 default_{{ HOSTNAME_DNS01 }}: +111
75 default_{{ HOSTNAME_DNS02 }}: +112
76 default_{{ HOSTNAME_PRX01 }}: +121
77 ip_ranges:
78 dhcp: [+90, -10]
79
80 tenant-pool01:
81 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
82 params:
83 ip_reserved:
84 gateway: +1
85 l2_network_device: +1
86 default_{{ HOSTNAME_CFG01 }}: +100
87 default_{{ HOSTNAME_CTL01 }}: +101
88 default_{{ HOSTNAME_CTL02 }}: +102
89 default_{{ HOSTNAME_CTL03 }}: +103
90 default_{{ HOSTNAME_CMP01 }}: +105
91 default_{{ HOSTNAME_CMP02 }}: +106
92 default_{{ HOSTNAME_MON01 }}: +107
93 default_{{ HOSTNAME_MON02 }}: +108
94 default_{{ HOSTNAME_MON03 }}: +109
95 default_{{ HOSTNAME_GTW01 }}: +110
96 default_{{ HOSTNAME_DNS01 }}: +111
97 default_{{ HOSTNAME_DNS02 }}: +112
98 default_{{ HOSTNAME_PRX01 }}: +121
99 ip_ranges:
100 dhcp: [+10, -10]
101
102 external-pool01:
103 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
104 params:
105 ip_reserved:
106 gateway: +1
107 l2_network_device: +1
108 default_{{ HOSTNAME_CFG01 }}: +100
109 default_{{ HOSTNAME_CTL01 }}: +101
110 default_{{ HOSTNAME_CTL02 }}: +102
111 default_{{ HOSTNAME_CTL03 }}: +103
112 default_{{ HOSTNAME_CMP01 }}: +105
113 default_{{ HOSTNAME_CMP02 }}: +106
114 default_{{ HOSTNAME_MON01 }}: +107
115 default_{{ HOSTNAME_MON02 }}: +108
116 default_{{ HOSTNAME_MON03 }}: +109
117 default_{{ HOSTNAME_GTW01 }}: +110
118 default_{{ HOSTNAME_DNS01 }}: +111
119 default_{{ HOSTNAME_DNS02 }}: +112
120 default_{{ HOSTNAME_PRX01 }}: +121
121 ip_ranges:
122 dhcp: [+10, -10]
123
124
125 groups:
126 - name: default
127 driver:
128 name: devops.driver.libvirt
129 params:
130 connection_string: !os_env CONNECTION_STRING, qemu:///system
131 storage_pool_name: !os_env STORAGE_POOL_NAME, default
132 stp: False
133 hpet: False
134 enable_acpi: true
135 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
136 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
137
138 network_pools:
139 admin: admin-pool01
140 private: private-pool01
141 tenant: tenant-pool01
142 external: external-pool01
143
144 l2_network_devices:
145 private:
146 address_pool: private-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200147 dhcp: false
ibumarskov12b79ae2018-03-15 01:11:41 -0700148 forward:
149 mode: route
150
151 admin:
152 address_pool: admin-pool01
153 dhcp: true
154 forward:
155 mode: nat
156
157 tenant:
158 address_pool: tenant-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200159 dhcp: false
ibumarskov12b79ae2018-03-15 01:11:41 -0700160
161 external:
162 address_pool: external-pool01
163 dhcp: true
164 forward:
165 mode: nat
166
167
168 group_volumes:
169 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
170 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
171 format: qcow2
172 - name: cfg01_day01_image # Pre-configured day01 image
173 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
174 format: qcow2
175 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
176 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
177 # or
178 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
179 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
180 format: qcow2
181
182 nodes:
183 - name: {{ HOSTNAME_CFG01 }}
184 role: salt_master
185 params:
186 vcpu: !os_env SLAVE_NODE_CPU, 2
187 memory: !os_env SLAVE_NODE_MEMORY, 8192
188 boot:
189 - hd
190 cloud_init_volume_name: iso
191 cloud_init_iface_up: ens3
192 volumes:
193 - name: system
194 capacity: !os_env NODE_VOLUME_SIZE, 150
195 backing_store: cfg01_day01_image
196 format: qcow2
197 - name: iso # Volume with name 'iso' will be used
198 # for store image with cloud-init metadata.
199 capacity: 1
200 format: raw
201 device: cdrom
202 bus: ide
203 cloudinit_meta_data: *cloudinit_meta_data
204 cloudinit_user_data: *cloudinit_user_data_cfg01
205
206 interfaces:
207 - label: ens3
208 l2_network_device: admin
209 interface_model: *interface_model
210 - label: ens4
211 l2_network_device: private
212 interface_model: *interface_model
213 network_config:
214 ens3:
215 networks:
216 - admin
217 ens4:
218 networks:
219 - private
220
221 - name: {{ HOSTNAME_CTL01 }}
222 role: salt_minion
223 params:
224 vcpu: !os_env SLAVE_NODE_CPU, 2
225 memory: !os_env SLAVE_NODE_MEMORY, 16384
226 boot:
227 - hd
228 cloud_init_volume_name: iso
229 cloud_init_iface_up: ens3
230 volumes:
231 - name: system
232 capacity: !os_env NODE_VOLUME_SIZE, 150
233 backing_store: mcp_ubuntu_1604_image
234 format: qcow2
235 - name: cinder
236 capacity: 50
237 format: qcow2
238 - name: iso # Volume with name 'iso' will be used
239 # for store image with cloud-init metadata.
240 capacity: 1
241 format: raw
242 device: cdrom
243 bus: ide
244 cloudinit_meta_data: *cloudinit_meta_data
245 cloudinit_user_data: *cloudinit_user_data_1604
246
247 interfaces: &interfaces
248 - label: ens3
249 l2_network_device: admin
250 interface_model: *interface_model
251 - label: ens4
252 l2_network_device: private
253 interface_model: *interface_model
254 network_config: &network_config
255 ens3:
256 networks:
257 - admin
258 ens4:
259 networks:
260 - private
261
262 - name: {{ HOSTNAME_CTL02 }}
263 role: salt_minion
264 params:
265 vcpu: !os_env SLAVE_NODE_CPU, 2
266 memory: !os_env SLAVE_NODE_MEMORY, 16384
267 boot:
268 - hd
269 cloud_init_volume_name: iso
270 cloud_init_iface_up: ens3
271 volumes:
272 - name: system
273 capacity: !os_env NODE_VOLUME_SIZE, 150
274 backing_store: mcp_ubuntu_1604_image
275 format: qcow2
276 - name: cinder
277 capacity: 50
278 format: qcow2
279 - name: iso # Volume with name 'iso' will be used
280 # for store image with cloud-init metadata.
281 capacity: 1
282 format: raw
283 device: cdrom
284 bus: ide
285 cloudinit_meta_data: *cloudinit_meta_data
286 cloudinit_user_data: *cloudinit_user_data_1604
287
288 interfaces: *interfaces
289 network_config: *network_config
290
291 - name: {{ HOSTNAME_CTL03 }}
292 role: salt_minion
293 params:
294 vcpu: !os_env SLAVE_NODE_CPU, 2
295 memory: !os_env SLAVE_NODE_MEMORY, 16384
296 boot:
297 - hd
298 cloud_init_volume_name: iso
299 cloud_init_iface_up: ens3
300 volumes:
301 - name: system
302 capacity: !os_env NODE_VOLUME_SIZE, 150
303 backing_store: mcp_ubuntu_1604_image
304 format: qcow2
305 - name: cinder
306 capacity: 50
307 format: qcow2
308 - name: iso # Volume with name 'iso' will be used
309 # for store image with cloud-init metadata.
310 capacity: 1
311 format: raw
312 device: cdrom
313 bus: ide
314 cloudinit_meta_data: *cloudinit_meta_data
315 cloudinit_user_data: *cloudinit_user_data_1604
316
317 interfaces: *interfaces
318 network_config: *network_config
319
320 - name: {{ HOSTNAME_MON01 }}
321 role: salt_minion
322 params:
323 vcpu: !os_env SLAVE_NODE_CPU, 3
324 memory: !os_env SLAVE_NODE_MEMORY, 6144
325 boot:
326 - hd
327 cloud_init_volume_name: iso
328 cloud_init_iface_up: ens3
329 volumes:
330 - name: system
331 capacity: !os_env NODE_VOLUME_SIZE, 150
332 backing_store: mcp_ubuntu_1604_image
333 format: qcow2
334 - name: iso # Volume with name 'iso' will be used
335 # for store image with cloud-init metadata.
336 capacity: 1
337 format: raw
338 device: cdrom
339 bus: ide
340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
342
343 interfaces: *interfaces
344 network_config: *network_config
345
346 - name: {{ HOSTNAME_MON02 }}
347 role: salt_minion
348 params:
349 vcpu: !os_env SLAVE_NODE_CPU, 3
350 memory: !os_env SLAVE_NODE_MEMORY, 6144
351 boot:
352 - hd
353 cloud_init_volume_name: iso
354 cloud_init_iface_up: ens3
355 volumes:
356 - name: system
357 capacity: !os_env NODE_VOLUME_SIZE, 150
358 backing_store: mcp_ubuntu_1604_image
359 format: qcow2
360 - name: iso # Volume with name 'iso' will be used
361 # for store image with cloud-init metadata.
362 capacity: 1
363 format: raw
364 device: cdrom
365 bus: ide
366 cloudinit_meta_data: *cloudinit_meta_data
367 cloudinit_user_data: *cloudinit_user_data_1604
368
369 interfaces: *interfaces
370 network_config: *network_config
371
372 - name: {{ HOSTNAME_MON03 }}
373 role: salt_minion
374 params:
375 vcpu: !os_env SLAVE_NODE_CPU, 3
376 memory: !os_env SLAVE_NODE_MEMORY, 6144
377 boot:
378 - hd
379 cloud_init_volume_name: iso
380 cloud_init_iface_up: ens3
381 volumes:
382 - name: system
383 capacity: !os_env NODE_VOLUME_SIZE, 150
384 backing_store: mcp_ubuntu_1604_image
385 format: qcow2
386 - name: iso # Volume with name 'iso' will be used
387 # for store image with cloud-init metadata.
388 capacity: 1
389 format: raw
390 device: cdrom
391 bus: ide
392 cloudinit_meta_data: *cloudinit_meta_data
393 cloudinit_user_data: *cloudinit_user_data_1604
394
395 interfaces: *interfaces
396 network_config: *network_config
397
398 - name: {{ HOSTNAME_PRX01 }}
399 role: salt_minion
400 params:
401 vcpu: !os_env SLAVE_NODE_CPU, 1
402 memory: !os_env SLAVE_NODE_MEMORY, 8192
403 boot:
404 - hd
405 cloud_init_volume_name: iso
406 cloud_init_iface_up: ens3
407 volumes:
408 - name: system
409 capacity: !os_env NODE_VOLUME_SIZE, 150
410 backing_store: mcp_ubuntu_1604_image
411 format: qcow2
412 - name: cinder
413 capacity: 50
414 format: qcow2
415 - name: iso # Volume with name 'iso' will be used
416 # for store image with cloud-init metadata.
417 capacity: 1
418 format: raw
419 device: cdrom
420 bus: ide
421 cloudinit_meta_data: *cloudinit_meta_data
422 cloudinit_user_data: *cloudinit_user_data_1604
423
424 interfaces: *interfaces
425 network_config: *network_config
426
427
428 - name: {{ HOSTNAME_CMP01 }}
429 role: salt_minion
430 params:
431 vcpu: !os_env SLAVE_NODE_CPU, 3
432 memory: !os_env SLAVE_NODE_MEMORY, 4096
433 boot:
434 - hd
435 cloud_init_volume_name: iso
436 cloud_init_iface_up: ens3
437 volumes:
438 - name: system
439 capacity: !os_env NODE_VOLUME_SIZE, 150
440 backing_store: cloudimage1604
441 format: qcow2
442 - name: iso # Volume with name 'iso' will be used
443 # for store image with cloud-init metadata.
444 capacity: 1
445 format: raw
446 device: cdrom
447 bus: ide
448 cloudinit_meta_data: *cloudinit_meta_data
449 cloudinit_user_data: *cloudinit_user_data_1604
450
451
452 interfaces: &all_interfaces
453 - label: ens3
454 l2_network_device: admin
455 interface_model: *interface_model
456 - label: ens4
457 l2_network_device: private
458 interface_model: *interface_model
459 - label: ens5
460 l2_network_device: tenant
461 interface_model: *interface_model
462 - label: ens6
463 l2_network_device: external
464 interface_model: *interface_model
465 network_config: &all_network_config
466 ens3:
467 networks:
468 - admin
469 ens4:
470 networks:
471 - private
472 ens5:
473 networks:
474 - tenant
475 ens6:
476 networks:
477 - external
478
479 - name: {{ HOSTNAME_CMP02 }}
480 role: salt_minion
481 params:
482 vcpu: !os_env SLAVE_NODE_CPU, 3
483 memory: !os_env SLAVE_NODE_MEMORY, 4096
484 boot:
485 - hd
486 cloud_init_volume_name: iso
487 cloud_init_iface_up: ens3
488 volumes:
489 - name: system
490 capacity: !os_env NODE_VOLUME_SIZE, 150
491 backing_store: cloudimage1604
492 format: qcow2
493 - name: iso # Volume with name 'iso' will be used
494 # for store image with cloud-init metadata.
495 capacity: 1
496 format: raw
497 device: cdrom
498 bus: ide
499 cloudinit_meta_data: *cloudinit_meta_data
500 cloudinit_user_data: *cloudinit_user_data_1604
501
502 interfaces: *all_interfaces
503 network_config: *all_network_config
504
505 - name: {{ HOSTNAME_GTW01 }}
506 role: salt_minion
507 params:
508 vcpu: !os_env SLAVE_NODE_CPU, 1
509 memory: !os_env SLAVE_NODE_MEMORY, 2048
510 boot:
511 - hd
512 cloud_init_volume_name: iso
513 cloud_init_iface_up: ens3
514 volumes:
515 - name: system
516 capacity: !os_env NODE_VOLUME_SIZE, 150
517 backing_store: cloudimage1604
518 format: qcow2
519 - name: iso # Volume with name 'iso' will be used
520 # for store image with cloud-init metadata.
521 capacity: 1
522 format: raw
523 device: cdrom
524 bus: ide
525 cloudinit_meta_data: *cloudinit_meta_data
526 cloudinit_user_data: *cloudinit_user_data_1604
527
528 interfaces: *all_interfaces
529 network_config: *all_network_config
530
531 - name: {{ HOSTNAME_DNS01 }}
532 role: salt_minion
533 params:
534 vcpu: !os_env SLAVE_NODE_CPU, 1
535 memory: !os_env SLAVE_NODE_MEMORY, 2048
536 boot:
537 - hd
538 cloud_init_volume_name: iso
539 cloud_init_iface_up: ens3
540 volumes:
541 - name: system
542 capacity: !os_env NODE_VOLUME_SIZE, 150
543 backing_store: mcp_ubuntu_1604_image
544 format: qcow2
545 - name: iso # Volume with name 'iso' will be used
546 # for store image with cloud-init metadata.
547 capacity: 1
548 format: raw
549 device: cdrom
550 bus: ide
551 cloudinit_meta_data: *cloudinit_meta_data
552 cloudinit_user_data: *cloudinit_user_data_1604
553
554 interfaces: *all_interfaces
555 network_config: *all_network_config
556
557 - name: {{ HOSTNAME_DNS02 }}
558 role: salt_minion
559 params:
560 vcpu: !os_env SLAVE_NODE_CPU, 1
561 memory: !os_env SLAVE_NODE_MEMORY, 2048
562 boot:
563 - hd
564 cloud_init_volume_name: iso
565 cloud_init_iface_up: ens3
566 volumes:
567 - name: system
568 capacity: !os_env NODE_VOLUME_SIZE, 150
569 backing_store: mcp_ubuntu_1604_image
570 format: qcow2
571 - name: iso # Volume with name 'iso' will be used
572 # for store image with cloud-init metadata.
573 capacity: 1
574 format: raw
575 device: cdrom
576 bus: ide
577 cloudinit_meta_data: *cloudinit_meta_data
578 cloudinit_user_data: *cloudinit_user_data_1604
579
580 interfaces: *all_interfaces
581 network_config: *all_network_config