blob: bdfb212a212e78d0ed69d1b97c533803012f8f93 [file] [log] [blame]
ibumarskov76aa5c72018-06-13 10:15:37 +04001# 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-mitaka-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-mcp-mitaka-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'cookied-mcp-mitaka-ovs/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-mitaka-ovs') %}
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', 'cookied-mcp-mitaka-ovs_' + 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 }}: +71
49 default_{{ HOSTNAME_MON02 }}: +72
50 default_{{ HOSTNAME_MON03 }}: +73
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 }}: +71
71 default_{{ HOSTNAME_MON02 }}: +72
72 default_{{ HOSTNAME_MON03 }}: +73
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 }}: +71
93 default_{{ HOSTNAME_MON02 }}: +72
94 default_{{ HOSTNAME_MON03 }}: +73
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 }}: +71
115 default_{{ HOSTNAME_MON02 }}: +72
116 default_{{ HOSTNAME_MON03 }}: +73
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
147 dhcp: false
148 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
159 dhcp: false
160
161 external:
162 address_pool: external-pool01
163 dhcp: false
164 forward:
165 mode: route
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 control plane
176 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
177 format: qcow2
178
179 nodes:
180 - name: {{ HOSTNAME_CFG01 }}
181 role: salt_master
182 params:
183 vcpu: !os_env SLAVE_NODE_CPU, 2
184 memory: !os_env SLAVE_NODE_MEMORY, 8192
185 boot:
186 - hd
187 cloud_init_volume_name: iso
188 cloud_init_iface_up: ens3
189 volumes:
190 - name: system
191 capacity: !os_env NODE_VOLUME_SIZE, 150
192 backing_store: cfg01_day01_image
193 format: qcow2
194 - name: iso # Volume with name 'iso' will be used
195 # for store image with cloud-init metadata.
196 capacity: 1
197 format: raw
198 device: cdrom
199 bus: ide
200 cloudinit_meta_data: *cloudinit_meta_data
201 cloudinit_user_data: *cloudinit_user_data_cfg01
202
203 interfaces:
204 - label: ens3
205 l2_network_device: admin
206 interface_model: *interface_model
207 - label: ens4
208 l2_network_device: private
209 interface_model: *interface_model
210 network_config:
211 ens3:
212 networks:
213 - admin
214 ens4:
215 networks:
216 - private
217
218 - name: {{ HOSTNAME_CTL01 }}
219 role: salt_minion
220 params:
221 vcpu: !os_env SLAVE_NODE_CPU, 2
222 memory: !os_env SLAVE_NODE_MEMORY, 16384
223 boot:
224 - hd
225 cloud_init_volume_name: iso
226 cloud_init_iface_up: ens3
227 volumes:
228 - name: system
229 capacity: !os_env NODE_VOLUME_SIZE, 150
230 backing_store: mcp_ubuntu_1604_image
231 format: qcow2
232 - name: cinder
233 capacity: 50
234 format: qcow2
235 - name: iso # Volume with name 'iso' will be used
236 # for store image with cloud-init metadata.
237 capacity: 1
238 format: raw
239 device: cdrom
240 bus: ide
241 cloudinit_meta_data: *cloudinit_meta_data
242 cloudinit_user_data: *cloudinit_user_data_1604
243
244 interfaces: &interfaces
245 - label: ens3
246 l2_network_device: admin
247 interface_model: *interface_model
248 - label: ens4
249 l2_network_device: private
250 interface_model: *interface_model
251 network_config: &network_config
252 ens3:
253 networks:
254 - admin
255 ens4:
256 networks:
257 - private
258
259 - name: {{ HOSTNAME_CTL02 }}
260 role: salt_minion
261 params:
262 vcpu: !os_env SLAVE_NODE_CPU, 2
263 memory: !os_env SLAVE_NODE_MEMORY, 16384
264 boot:
265 - hd
266 cloud_init_volume_name: iso
267 cloud_init_iface_up: ens3
268 volumes:
269 - name: system
270 capacity: !os_env NODE_VOLUME_SIZE, 150
271 backing_store: mcp_ubuntu_1604_image
272 format: qcow2
273 - name: cinder
274 capacity: 50
275 format: qcow2
276 - name: iso # Volume with name 'iso' will be used
277 # for store image with cloud-init metadata.
278 capacity: 1
279 format: raw
280 device: cdrom
281 bus: ide
282 cloudinit_meta_data: *cloudinit_meta_data
283 cloudinit_user_data: *cloudinit_user_data_1604
284
285 interfaces: *interfaces
286 network_config: *network_config
287
288 - name: {{ HOSTNAME_CTL03 }}
289 role: salt_minion
290 params:
291 vcpu: !os_env SLAVE_NODE_CPU, 2
292 memory: !os_env SLAVE_NODE_MEMORY, 16384
293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: !os_env NODE_VOLUME_SIZE, 150
300 backing_store: mcp_ubuntu_1604_image
301 format: qcow2
302 - name: cinder
303 capacity: 50
304 format: qcow2
305 - name: iso # Volume with name 'iso' will be used
306 # for store image with cloud-init metadata.
307 capacity: 1
308 format: raw
309 device: cdrom
310 bus: ide
311 cloudinit_meta_data: *cloudinit_meta_data
312 cloudinit_user_data: *cloudinit_user_data_1604
313
314 interfaces: *interfaces
315 network_config: *network_config
316
317 - name: {{ HOSTNAME_MON01 }}
318 role: salt_minion
319 params:
320 vcpu: !os_env SLAVE_NODE_CPU, 2
321 memory: !os_env SLAVE_NODE_MEMORY, 4096
322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
329 backing_store: mcp_ubuntu_1604_image
330 format: qcow2
331 - name: iso # Volume with name 'iso' will be used
332 # for store image with cloud-init metadata.
333 capacity: 1
334 format: raw
335 device: cdrom
336 bus: ide
337 cloudinit_meta_data: *cloudinit_meta_data
338 cloudinit_user_data: *cloudinit_user_data_1604
339
340 interfaces: *interfaces
341 network_config: *network_config
342
343 - name: {{ HOSTNAME_MON02 }}
344 role: salt_minion
345 params:
346 vcpu: !os_env SLAVE_NODE_CPU, 2
347 memory: !os_env SLAVE_NODE_MEMORY, 4096
348 boot:
349 - hd
350 cloud_init_volume_name: iso
351 cloud_init_iface_up: ens3
352 volumes:
353 - name: system
354 capacity: !os_env NODE_VOLUME_SIZE, 150
355 backing_store: mcp_ubuntu_1604_image
356 format: qcow2
357 - name: iso # Volume with name 'iso' will be used
358 # for store image with cloud-init metadata.
359 capacity: 1
360 format: raw
361 device: cdrom
362 bus: ide
363 cloudinit_meta_data: *cloudinit_meta_data
364 cloudinit_user_data: *cloudinit_user_data_1604
365
366 interfaces: *interfaces
367 network_config: *network_config
368
369 - name: {{ HOSTNAME_MON03 }}
370 role: salt_minion
371 params:
372 vcpu: !os_env SLAVE_NODE_CPU, 2
373 memory: !os_env SLAVE_NODE_MEMORY, 4096
374 boot:
375 - hd
376 cloud_init_volume_name: iso
377 cloud_init_iface_up: ens3
378 volumes:
379 - name: system
380 capacity: !os_env NODE_VOLUME_SIZE, 150
381 backing_store: mcp_ubuntu_1604_image
382 format: qcow2
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385 capacity: 1
386 format: raw
387 device: cdrom
388 bus: ide
389 cloudinit_meta_data: *cloudinit_meta_data
390 cloudinit_user_data: *cloudinit_user_data_1604
391
392 interfaces: *interfaces
393 network_config: *network_config
394
395 - name: {{ HOSTNAME_PRX01 }}
396 role: salt_minion
397 params:
398 vcpu: !os_env SLAVE_NODE_CPU, 1
399 memory: !os_env SLAVE_NODE_MEMORY, 2048
400 boot:
401 - hd
402 cloud_init_volume_name: iso
403 cloud_init_iface_up: ens3
404 volumes:
405 - name: system
406 capacity: !os_env NODE_VOLUME_SIZE, 150
407 backing_store: mcp_ubuntu_1604_image
408 format: qcow2
409 - name: cinder
410 capacity: 50
411 format: qcow2
412 - name: iso # Volume with name 'iso' will be used
413 # for store image with cloud-init metadata.
414 capacity: 1
415 format: raw
416 device: cdrom
417 bus: ide
418 cloudinit_meta_data: *cloudinit_meta_data
419 cloudinit_user_data: *cloudinit_user_data_1604
420
421 interfaces: *interfaces
422 network_config: *network_config
423
424 - name: {{ HOSTNAME_CMP01 }}
425 role: salt_minion
426 params:
427 vcpu: !os_env SLAVE_NODE_CPU, 3
428 memory: !os_env SLAVE_NODE_MEMORY, 4096
429 boot:
430 - hd
431 cloud_init_volume_name: iso
432 cloud_init_iface_up: ens3
433 volumes:
434 - name: system
435 capacity: !os_env NODE_VOLUME_SIZE, 150
436 backing_store: cloudimage1604
437 format: qcow2
438 - name: iso # Volume with name 'iso' will be used
439 # for store image with cloud-init metadata.
440 capacity: 1
441 format: raw
442 device: cdrom
443 bus: ide
444 cloudinit_meta_data: *cloudinit_meta_data
445 cloudinit_user_data: *cloudinit_user_data_1604
446
447
448 interfaces: &all_interfaces
449 - label: ens3
450 l2_network_device: admin
451 interface_model: *interface_model
452 - label: ens4
453 l2_network_device: private
454 interface_model: *interface_model
455 - label: ens5
456 l2_network_device: tenant
457 interface_model: *interface_model
458 - label: ens6
459 l2_network_device: external
460 interface_model: *interface_model
461 network_config: &all_network_config
462 ens3:
463 networks:
464 - admin
465 ens4:
466 networks:
467 - private
468 ens5:
469 networks:
470 - tenant
471 ens6:
472 networks:
473 - external
474
475 - name: {{ HOSTNAME_CMP02 }}
476 role: salt_minion
477 params:
478 vcpu: !os_env SLAVE_NODE_CPU, 3
479 memory: !os_env SLAVE_NODE_MEMORY, 4096
480 boot:
481 - hd
482 cloud_init_volume_name: iso
483 cloud_init_iface_up: ens3
484 volumes:
485 - name: system
486 capacity: !os_env NODE_VOLUME_SIZE, 150
487 backing_store: cloudimage1604
488 format: qcow2
489 - name: iso # Volume with name 'iso' will be used
490 # for store image with cloud-init metadata.
491 capacity: 1
492 format: raw
493 device: cdrom
494 bus: ide
495 cloudinit_meta_data: *cloudinit_meta_data
496 cloudinit_user_data: *cloudinit_user_data_1604
497
498 interfaces: *all_interfaces
499 network_config: *all_network_config
500
501 - name: {{ HOSTNAME_GTW01 }}
502 role: salt_minion
503 params:
504 vcpu: !os_env SLAVE_NODE_CPU, 4
505 memory: !os_env SLAVE_NODE_MEMORY, 4096
506 boot:
507 - hd
508 cloud_init_volume_name: iso
509 cloud_init_iface_up: ens3
510 volumes:
511 - name: system
512 capacity: !os_env NODE_VOLUME_SIZE, 150
513 backing_store: cloudimage1604
514 format: qcow2
515 - name: iso # Volume with name 'iso' will be used
516 # for store image with cloud-init metadata.
517 capacity: 1
518 format: raw
519 device: cdrom
520 bus: ide
521 cloudinit_meta_data: *cloudinit_meta_data
522 cloudinit_user_data: *cloudinit_user_data_1604
523
524 interfaces: *all_interfaces
525 network_config: *all_network_config
526
527 - name: {{ HOSTNAME_DNS01 }}
528 role: salt_minion
529 params:
530 vcpu: !os_env SLAVE_NODE_CPU, 1
531 memory: !os_env SLAVE_NODE_MEMORY, 2048
532 boot:
533 - hd
534 cloud_init_volume_name: iso
535 cloud_init_iface_up: ens3
536 volumes:
537 - name: system
538 capacity: !os_env NODE_VOLUME_SIZE, 150
539 backing_store: mcp_ubuntu_1604_image
540 format: qcow2
541 - name: iso # Volume with name 'iso' will be used
542 # for store image with cloud-init metadata.
543 capacity: 1
544 format: raw
545 device: cdrom
546 bus: ide
547 cloudinit_meta_data: *cloudinit_meta_data
548 cloudinit_user_data: *cloudinit_user_data_1604
549
550 interfaces: *all_interfaces
551 network_config: *all_network_config
552
553 - name: {{ HOSTNAME_DNS02 }}
554 role: salt_minion
555 params:
556 vcpu: !os_env SLAVE_NODE_CPU, 1
557 memory: !os_env SLAVE_NODE_MEMORY, 2048
558 boot:
559 - hd
560 cloud_init_volume_name: iso
561 cloud_init_iface_up: ens3
562 volumes:
563 - name: system
564 capacity: !os_env NODE_VOLUME_SIZE, 150
565 backing_store: mcp_ubuntu_1604_image
566 format: qcow2
567 - name: iso # Volume with name 'iso' will be used
568 # for store image with cloud-init metadata.
569 capacity: 1
570 format: raw
571 device: cdrom
572 bus: ide
573 cloudinit_meta_data: *cloudinit_meta_data
574 cloudinit_user_data: *cloudinit_user_data_1604
575
576 interfaces: *all_interfaces
577 network_config: *all_network_config