blob: 8b4a50e33c14f4d63e5846a09f0035fcec6471f2 [file] [log] [blame]
Tatyana Leontovich460f7df2017-11-13 15:45:06 +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-ocata-ovs-ceph/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-ocata-ovs-ceph/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-ocata-ovs-ceph/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-ocata-ovs-ceph') %}
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_CMN01 = os_env('HOSTNAME_CMN01', 'cmn01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMN02 = os_env('HOSTNAME_CMN02', 'cmn02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_CMN03 = os_env('HOSTNAME_CMN03', 'cmn03.' + DOMAIN_NAME) %}
26{% set HOSTNAME_OSD01 = os_env('HOSTNAME_OSD01', 'osd01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_OSD02 = os_env('HOSTNAME_OSD02', 'osd02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + 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-ocata-ovs-ceph_' + 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_OSD01 }}: +94
49 default_{{ HOSTNAME_OSD02 }}: +95
50 default_{{ HOSTNAME_CMN01 }}: +96
51 default_{{ HOSTNAME_CMN02 }}: +97
52 default_{{ HOSTNAME_CMN03 }}: +98
53 default_{{ HOSTNAME_GTW01 }}: +110
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_OSD01 }}: +94
71 default_{{ HOSTNAME_OSD02 }}: +95
72 default_{{ HOSTNAME_CMN01 }}: +96
73 default_{{ HOSTNAME_CMN02 }}: +97
74 default_{{ HOSTNAME_CMN03 }}: +98
75 default_{{ HOSTNAME_GTW01 }}: +110
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_OSD01 }}: +94
93 default_{{ HOSTNAME_OSD02 }}: +95
94 default_{{ HOSTNAME_CMN01 }}: +96
95 default_{{ HOSTNAME_CMN02 }}: +97
96 default_{{ HOSTNAME_CMN03 }}: +98
97 default_{{ HOSTNAME_GTW01 }}: +110
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_OSD01 }}: +94
115 default_{{ HOSTNAME_OSD02 }}: +95
116 default_{{ HOSTNAME_CMN01 }}: +96
117 default_{{ HOSTNAME_CMN02 }}: +97
118 default_{{ HOSTNAME_CMN03 }}: +98
119 default_{{ HOSTNAME_GTW01 }}: +110
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: true
148
149 admin:
150 address_pool: admin-pool01
151 dhcp: true
152 forward:
153 mode: nat
154
155 tenant:
156 address_pool: tenant-pool01
157 dhcp: true
158
159 external:
160 address_pool: external-pool01
161 dhcp: true
162 forward:
163 mode: nat
164
165
166 group_volumes:
167 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200168 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
169 format: qcow2
170 - name: cfg01_day01_image # Pre-configured day01 image
171 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200172 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200173 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
174 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
175 # or
176 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
177 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
178 format: qcow2
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200179
180 nodes:
181 - name: {{ HOSTNAME_CFG01 }}
182 role: salt_master
183 params:
184 vcpu: !os_env SLAVE_NODE_CPU, 2
185 memory: !os_env SLAVE_NODE_MEMORY, 4096
186 boot:
187 - hd
188 cloud_init_volume_name: iso
189 cloud_init_iface_up: ens3
190 volumes:
191 - name: system
192 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200193 backing_store: cfg01_day01_image
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200194 format: qcow2
195 - name: iso # Volume with name 'iso' will be used
196 # for store image with cloud-init metadata.
197 capacity: 1
198 format: raw
199 device: cdrom
200 bus: ide
201 cloudinit_meta_data: *cloudinit_meta_data
202 cloudinit_user_data: *cloudinit_user_data_cfg01
203
204 interfaces:
205 - label: ens3
206 l2_network_device: admin
207 interface_model: *interface_model
208 - label: ens4
209 l2_network_device: private
210 interface_model: *interface_model
211 network_config:
212 ens3:
213 networks:
214 - admin
215 ens4:
216 networks:
217 - private
218
219 - name: {{ HOSTNAME_CTL01 }}
220 role: salt_minion
221 params:
222 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200223 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200224 boot:
225 - hd
226 cloud_init_volume_name: iso
227 cloud_init_iface_up: ens3
228 volumes:
229 - name: system
230 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200231 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200232 format: qcow2
233 - name: cinder
234 capacity: 50
235 format: qcow2
236 - name: iso # Volume with name 'iso' will be used
237 # for store image with cloud-init metadata.
238 capacity: 1
239 format: raw
240 device: cdrom
241 bus: ide
242 cloudinit_meta_data: *cloudinit_meta_data
243 cloudinit_user_data: *cloudinit_user_data_1604
244
245 interfaces: &interfaces
246 - label: ens3
247 l2_network_device: admin
248 interface_model: *interface_model
249 - label: ens4
250 l2_network_device: private
251 interface_model: *interface_model
252 network_config: &network_config
253 ens3:
254 networks:
255 - admin
256 ens4:
257 networks:
258 - private
259
260 - name: {{ HOSTNAME_CTL02 }}
261 role: salt_minion
262 params:
263 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200264 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200265 boot:
266 - hd
267 cloud_init_volume_name: iso
268 cloud_init_iface_up: ens3
269 volumes:
270 - name: system
271 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200272 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200273 format: qcow2
274 - name: cinder
275 capacity: 50
276 format: qcow2
277 - name: iso # Volume with name 'iso' will be used
278 # for store image with cloud-init metadata.
279 capacity: 1
280 format: raw
281 device: cdrom
282 bus: ide
283 cloudinit_meta_data: *cloudinit_meta_data
284 cloudinit_user_data: *cloudinit_user_data_1604
285
286 interfaces: *interfaces
287 network_config: *network_config
288
289 - name: {{ HOSTNAME_CTL03 }}
290 role: salt_minion
291 params:
292 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200293 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200294 boot:
295 - hd
296 cloud_init_volume_name: iso
297 cloud_init_iface_up: ens3
298 volumes:
299 - name: system
300 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200301 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200302 format: qcow2
303 - name: cinder
304 capacity: 50
305 format: qcow2
306 - name: iso # Volume with name 'iso' will be used
307 # for store image with cloud-init metadata.
308 capacity: 1
309 format: raw
310 device: cdrom
311 bus: ide
312 cloudinit_meta_data: *cloudinit_meta_data
313 cloudinit_user_data: *cloudinit_user_data_1604
314
315 interfaces: *interfaces
316 network_config: *network_config
317
318 - name: {{ HOSTNAME_CMN01 }}
319 role: salt_minion
320 params:
321 vcpu: !os_env SLAVE_NODE_CPU, 3
322 memory: !os_env SLAVE_NODE_MEMORY, 2048
323 boot:
324 - hd
325 cloud_init_volume_name: iso
326 cloud_init_iface_up: ens3
327 volumes:
328 - name: system
329 capacity: !os_env NODE_VOLUME_SIZE, 150
330 backing_store: cloudimage1604
331 format: qcow2
332 - name: iso # Volume with name 'iso' will be used
333 # for store image with cloud-init metadata.
334 capacity: 1
335 format: raw
336 device: cdrom
337 bus: ide
338 cloudinit_meta_data: *cloudinit_meta_data
339 cloudinit_user_data: *cloudinit_user_data_1604
340
341 interfaces: *interfaces
342 network_config: *network_config
343
344 - name: {{ HOSTNAME_CMN02 }}
345 role: salt_minion
346 params:
347 vcpu: !os_env SLAVE_NODE_CPU, 3
348 memory: !os_env SLAVE_NODE_MEMORY, 2048
349 boot:
350 - hd
351 cloud_init_volume_name: iso
352 cloud_init_iface_up: ens3
353 volumes:
354 - name: system
355 capacity: !os_env NODE_VOLUME_SIZE, 150
356 backing_store: cloudimage1604
357 format: qcow2
358 - name: iso # Volume with name 'iso' will be used
359 # for store image with cloud-init metadata.
360 capacity: 1
361 format: raw
362 device: cdrom
363 bus: ide
364 cloudinit_meta_data: *cloudinit_meta_data
365 cloudinit_user_data: *cloudinit_user_data_1604
366
367 interfaces: *interfaces
368 network_config: *network_config
369
370 - name: {{ HOSTNAME_CMN03 }}
371 role: salt_minion
372 params:
373 vcpu: !os_env SLAVE_NODE_CPU, 3
374 memory: !os_env SLAVE_NODE_MEMORY, 2048
375 boot:
376 - hd
377 cloud_init_volume_name: iso
378 cloud_init_iface_up: ens3
379 volumes:
380 - name: system
381 capacity: !os_env NODE_VOLUME_SIZE, 150
382 backing_store: cloudimage1604
383 format: qcow2
384 - name: iso # Volume with name 'iso' will be used
385 # for store image with cloud-init metadata.
386 capacity: 1
387 format: raw
388 device: cdrom
389 bus: ide
390 cloudinit_meta_data: *cloudinit_meta_data
391 cloudinit_user_data: *cloudinit_user_data_1604
392
393 interfaces: *interfaces
394 network_config: *network_config
395
396 - name: {{ HOSTNAME_OSD01 }}
397 role: salt_minion
398 params:
399 vcpu: !os_env SLAVE_NODE_CPU, 3
400 memory: !os_env SLAVE_NODE_MEMORY, 2048
401 boot:
402 - hd
403 cloud_init_volume_name: iso
404 cloud_init_iface_up: ens3
405 volumes:
406 - name: system
407 capacity: !os_env NODE_VOLUME_SIZE, 150
408 backing_store: cloudimage1604
409 format: qcow2
Tatyana Leontovicha754ce52017-11-13 16:46:43 +0200410 - name: cinder
411 capacity: 50
412 format: qcow2
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200413 - 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: *interfaces
423 network_config: *network_config
424
425 - name: {{ HOSTNAME_OSD02 }}
426 role: salt_minion
427 params:
428 vcpu: !os_env SLAVE_NODE_CPU, 3
429 memory: !os_env SLAVE_NODE_MEMORY, 2048
430 boot:
431 - hd
432 cloud_init_volume_name: iso
433 cloud_init_iface_up: ens3
434 volumes:
435 - name: system
436 capacity: !os_env NODE_VOLUME_SIZE, 150
437 backing_store: cloudimage1604
438 format: qcow2
Tatyana Leontovicha754ce52017-11-13 16:46:43 +0200439 - name: cinder
440 capacity: 50
441 format: qcow2
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200442 - 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 interfaces: *interfaces
452 network_config: *network_config
453
454 - name: {{ HOSTNAME_PRX01 }}
455 role: salt_minion
456 params:
457 vcpu: !os_env SLAVE_NODE_CPU, 1
458 memory: !os_env SLAVE_NODE_MEMORY, 2048
459 boot:
460 - hd
461 cloud_init_volume_name: iso
462 cloud_init_iface_up: ens3
463 volumes:
464 - name: system
465 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200466 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200467 format: qcow2
Tatyana Leontovich460f7df2017-11-13 15:45:06 +0200468 - name: iso # Volume with name 'iso' will be used
469 # for store image with cloud-init metadata.
470 capacity: 1
471 format: raw
472 device: cdrom
473 bus: ide
474 cloudinit_meta_data: *cloudinit_meta_data
475 cloudinit_user_data: *cloudinit_user_data_1604
476
477 interfaces: *interfaces
478 network_config: *network_config
479
480 - name: {{ HOSTNAME_CMP01 }}
481 role: salt_minion
482 params:
483 vcpu: !os_env SLAVE_NODE_CPU, 3
484 memory: !os_env SLAVE_NODE_MEMORY, 4096
485 boot:
486 - hd
487 cloud_init_volume_name: iso
488 cloud_init_iface_up: ens3
489 volumes:
490 - name: system
491 capacity: !os_env NODE_VOLUME_SIZE, 150
492 backing_store: cloudimage1604
493 format: qcow2
494 - name: iso # Volume with name 'iso' will be used
495 # for store image with cloud-init metadata.
496 capacity: 1
497 format: raw
498 device: cdrom
499 bus: ide
500 cloudinit_meta_data: *cloudinit_meta_data
501 cloudinit_user_data: *cloudinit_user_data_1604
502
503
504 interfaces: &all_interfaces
505 - label: ens3
506 l2_network_device: admin
507 interface_model: *interface_model
508 - label: ens4
509 l2_network_device: private
510 interface_model: *interface_model
511 - label: ens5
512 l2_network_device: tenant
513 interface_model: *interface_model
514 - label: ens6
515 l2_network_device: external
516 interface_model: *interface_model
517 network_config: &all_network_config
518 ens3:
519 networks:
520 - admin
521 ens4:
522 networks:
523 - private
524 ens5:
525 networks:
526 - tenant
527 ens6:
528 networks:
529 - external
530
531 - name: {{ HOSTNAME_CMP02 }}
532 role: salt_minion
533 params:
534 vcpu: !os_env SLAVE_NODE_CPU, 3
535 memory: !os_env SLAVE_NODE_MEMORY, 4096
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: cloudimage1604
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_GTW01 }}
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: cloudimage1604
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