blob: bfbb96944453715daa3a1fcf31c15d82665fe57d [file] [log] [blame]
Tatyana Leontovich56005da2017-12-11 13:16:51 +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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02004{% import 'virtual-mcp-pike-ovs-ceph/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-ovs-ceph/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-ovs-ceph/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02007
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-pike-ovs-ceph') %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020016{% 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) %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020026{% 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:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020033 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-ovs-ceph_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020034
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020053 default_{{ HOSTNAME_GTW01 }}: +110
54 default_{{ HOSTNAME_PRX01 }}: +121
55 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020056 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020057
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020075 default_{{ HOSTNAME_GTW01 }}: +110
76 default_{{ HOSTNAME_PRX01 }}: +121
77 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020078 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020079
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020097 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
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200119 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.
168 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
169 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
170 format: qcow2
171
172 nodes:
173 - name: {{ HOSTNAME_CFG01 }}
174 role: salt_master
175 params:
176 vcpu: !os_env SLAVE_NODE_CPU, 2
177 memory: !os_env SLAVE_NODE_MEMORY, 4096
178 boot:
179 - hd
180 cloud_init_volume_name: iso
181 cloud_init_iface_up: ens3
182 volumes:
183 - name: system
184 capacity: !os_env NODE_VOLUME_SIZE, 150
185 backing_store: cloudimage1604
186 format: qcow2
187 - name: iso # Volume with name 'iso' will be used
188 # for store image with cloud-init metadata.
189 capacity: 1
190 format: raw
191 device: cdrom
192 bus: ide
193 cloudinit_meta_data: *cloudinit_meta_data
194 cloudinit_user_data: *cloudinit_user_data_cfg01
195
196 interfaces:
197 - label: ens3
198 l2_network_device: admin
199 interface_model: *interface_model
200 - label: ens4
201 l2_network_device: private
202 interface_model: *interface_model
203 network_config:
204 ens3:
205 networks:
206 - admin
207 ens4:
208 networks:
209 - private
210
211 - name: {{ HOSTNAME_CTL01 }}
212 role: salt_minion
213 params:
214 vcpu: !os_env SLAVE_NODE_CPU, 2
215 memory: !os_env SLAVE_NODE_MEMORY, 8192
216 boot:
217 - hd
218 cloud_init_volume_name: iso
219 cloud_init_iface_up: ens3
220 volumes:
221 - name: system
222 capacity: !os_env NODE_VOLUME_SIZE, 150
223 backing_store: cloudimage1604
224 format: qcow2
225 - name: cinder
226 capacity: 50
227 format: qcow2
228 - name: iso # Volume with name 'iso' will be used
229 # for store image with cloud-init metadata.
230 capacity: 1
231 format: raw
232 device: cdrom
233 bus: ide
234 cloudinit_meta_data: *cloudinit_meta_data
235 cloudinit_user_data: *cloudinit_user_data_1604
236
237 interfaces: &interfaces
238 - label: ens3
239 l2_network_device: admin
240 interface_model: *interface_model
241 - label: ens4
242 l2_network_device: private
243 interface_model: *interface_model
244 network_config: &network_config
245 ens3:
246 networks:
247 - admin
248 ens4:
249 networks:
250 - private
251
252 - name: {{ HOSTNAME_CTL02 }}
253 role: salt_minion
254 params:
255 vcpu: !os_env SLAVE_NODE_CPU, 2
256 memory: !os_env SLAVE_NODE_MEMORY, 8192
257 boot:
258 - hd
259 cloud_init_volume_name: iso
260 cloud_init_iface_up: ens3
261 volumes:
262 - name: system
263 capacity: !os_env NODE_VOLUME_SIZE, 150
264 backing_store: cloudimage1604
265 format: qcow2
266 - name: cinder
267 capacity: 50
268 format: qcow2
269 - name: iso # Volume with name 'iso' will be used
270 # for store image with cloud-init metadata.
271 capacity: 1
272 format: raw
273 device: cdrom
274 bus: ide
275 cloudinit_meta_data: *cloudinit_meta_data
276 cloudinit_user_data: *cloudinit_user_data_1604
277
278 interfaces: *interfaces
279 network_config: *network_config
280
281 - name: {{ HOSTNAME_CTL03 }}
282 role: salt_minion
283 params:
284 vcpu: !os_env SLAVE_NODE_CPU, 2
285 memory: !os_env SLAVE_NODE_MEMORY, 8192
286 boot:
287 - hd
288 cloud_init_volume_name: iso
289 cloud_init_iface_up: ens3
290 volumes:
291 - name: system
292 capacity: !os_env NODE_VOLUME_SIZE, 150
293 backing_store: cloudimage1604
294 format: qcow2
295 - name: cinder
296 capacity: 50
297 format: qcow2
298 - name: iso # Volume with name 'iso' will be used
299 # for store image with cloud-init metadata.
300 capacity: 1
301 format: raw
302 device: cdrom
303 bus: ide
304 cloudinit_meta_data: *cloudinit_meta_data
305 cloudinit_user_data: *cloudinit_user_data_1604
306
307 interfaces: *interfaces
308 network_config: *network_config
309
310 - name: {{ HOSTNAME_CMN01 }}
311 role: salt_minion
312 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200313 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200314 memory: !os_env SLAVE_NODE_MEMORY, 2048
315 boot:
316 - hd
317 cloud_init_volume_name: iso
318 cloud_init_iface_up: ens3
319 volumes:
320 - name: system
321 capacity: !os_env NODE_VOLUME_SIZE, 150
322 backing_store: cloudimage1604
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 - name: {{ HOSTNAME_CMN02 }}
337 role: salt_minion
338 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200339 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200340 memory: !os_env SLAVE_NODE_MEMORY, 2048
341 boot:
342 - hd
343 cloud_init_volume_name: iso
344 cloud_init_iface_up: ens3
345 volumes:
346 - name: system
347 capacity: !os_env NODE_VOLUME_SIZE, 150
348 backing_store: cloudimage1604
349 format: qcow2
350 - name: iso # Volume with name 'iso' will be used
351 # for store image with cloud-init metadata.
352 capacity: 1
353 format: raw
354 device: cdrom
355 bus: ide
356 cloudinit_meta_data: *cloudinit_meta_data
357 cloudinit_user_data: *cloudinit_user_data_1604
358
359 interfaces: *interfaces
360 network_config: *network_config
361
362 - name: {{ HOSTNAME_CMN03 }}
363 role: salt_minion
364 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200365 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200366 memory: !os_env SLAVE_NODE_MEMORY, 2048
367 boot:
368 - hd
369 cloud_init_volume_name: iso
370 cloud_init_iface_up: ens3
371 volumes:
372 - name: system
373 capacity: !os_env NODE_VOLUME_SIZE, 150
374 backing_store: cloudimage1604
375 format: qcow2
376 - name: iso # Volume with name 'iso' will be used
377 # for store image with cloud-init metadata.
378 capacity: 1
379 format: raw
380 device: cdrom
381 bus: ide
382 cloudinit_meta_data: *cloudinit_meta_data
383 cloudinit_user_data: *cloudinit_user_data_1604
384
385 interfaces: *interfaces
386 network_config: *network_config
387
388 - name: {{ HOSTNAME_OSD01 }}
389 role: salt_minion
390 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200391 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200392 memory: !os_env SLAVE_NODE_MEMORY, 2048
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: cinder
403 capacity: 50
404 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200405 - name: iso # Volume with name 'iso' will be used
406 # for store image with cloud-init metadata.
407 capacity: 1
408 format: raw
409 device: cdrom
410 bus: ide
411 cloudinit_meta_data: *cloudinit_meta_data
412 cloudinit_user_data: *cloudinit_user_data_1604
413
414 interfaces: *interfaces
415 network_config: *network_config
416
417 - name: {{ HOSTNAME_OSD02 }}
418 role: salt_minion
419 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200420 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200421 memory: !os_env SLAVE_NODE_MEMORY, 2048
422 boot:
423 - hd
424 cloud_init_volume_name: iso
425 cloud_init_iface_up: ens3
426 volumes:
427 - name: system
428 capacity: !os_env NODE_VOLUME_SIZE, 150
429 backing_store: cloudimage1604
430 format: qcow2
431 - name: cinder
432 capacity: 50
433 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200434 - name: iso # Volume with name 'iso' will be used
435 # for store image with cloud-init metadata.
436 capacity: 1
437 format: raw
438 device: cdrom
439 bus: ide
440 cloudinit_meta_data: *cloudinit_meta_data
441 cloudinit_user_data: *cloudinit_user_data_1604
442
443 interfaces: *interfaces
444 network_config: *network_config
445
446 - name: {{ HOSTNAME_PRX01 }}
447 role: salt_minion
448 params:
449 vcpu: !os_env SLAVE_NODE_CPU, 1
450 memory: !os_env SLAVE_NODE_MEMORY, 2048
451 boot:
452 - hd
453 cloud_init_volume_name: iso
454 cloud_init_iface_up: ens3
455 volumes:
456 - name: system
457 capacity: !os_env NODE_VOLUME_SIZE, 150
458 backing_store: cloudimage1604
459 format: qcow2
460 - name: iso # Volume with name 'iso' will be used
461 # for store image with cloud-init metadata.
462 capacity: 1
463 format: raw
464 device: cdrom
465 bus: ide
466 cloudinit_meta_data: *cloudinit_meta_data
467 cloudinit_user_data: *cloudinit_user_data_1604
468
469 interfaces: *interfaces
470 network_config: *network_config
471
472 - name: {{ HOSTNAME_CMP01 }}
473 role: salt_minion
474 params:
475 vcpu: !os_env SLAVE_NODE_CPU, 3
476 memory: !os_env SLAVE_NODE_MEMORY, 4096
477 boot:
478 - hd
479 cloud_init_volume_name: iso
480 cloud_init_iface_up: ens3
481 volumes:
482 - name: system
483 capacity: !os_env NODE_VOLUME_SIZE, 150
484 backing_store: cloudimage1604
485 format: qcow2
486 - name: iso # Volume with name 'iso' will be used
487 # for store image with cloud-init metadata.
488 capacity: 1
489 format: raw
490 device: cdrom
491 bus: ide
492 cloudinit_meta_data: *cloudinit_meta_data
493 cloudinit_user_data: *cloudinit_user_data_1604
494
495
496 interfaces: &all_interfaces
497 - label: ens3
498 l2_network_device: admin
499 interface_model: *interface_model
500 - label: ens4
501 l2_network_device: private
502 interface_model: *interface_model
503 - label: ens5
504 l2_network_device: tenant
505 interface_model: *interface_model
506 - label: ens6
507 l2_network_device: external
508 interface_model: *interface_model
509 network_config: &all_network_config
510 ens3:
511 networks:
512 - admin
513 ens4:
514 networks:
515 - private
516 ens5:
517 networks:
518 - tenant
519 ens6:
520 networks:
521 - external
522
523 - name: {{ HOSTNAME_CMP02 }}
524 role: salt_minion
525 params:
526 vcpu: !os_env SLAVE_NODE_CPU, 3
527 memory: !os_env SLAVE_NODE_MEMORY, 4096
528 boot:
529 - hd
530 cloud_init_volume_name: iso
531 cloud_init_iface_up: ens3
532 volumes:
533 - name: system
534 capacity: !os_env NODE_VOLUME_SIZE, 150
535 backing_store: cloudimage1604
536 format: qcow2
537 - name: iso # Volume with name 'iso' will be used
538 # for store image with cloud-init metadata.
539 capacity: 1
540 format: raw
541 device: cdrom
542 bus: ide
543 cloudinit_meta_data: *cloudinit_meta_data
544 cloudinit_user_data: *cloudinit_user_data_1604
545
546 interfaces: *all_interfaces
547 network_config: *all_network_config
548
549 - name: {{ HOSTNAME_GTW01 }}
550 role: salt_minion
551 params:
552 vcpu: !os_env SLAVE_NODE_CPU, 1
553 memory: !os_env SLAVE_NODE_MEMORY, 2048
554 boot:
555 - hd
556 cloud_init_volume_name: iso
557 cloud_init_iface_up: ens3
558 volumes:
559 - name: system
560 capacity: !os_env NODE_VOLUME_SIZE, 150
561 backing_store: cloudimage1604
562 format: qcow2
563 - name: iso # Volume with name 'iso' will be used
564 # for store image with cloud-init metadata.
565 capacity: 1
566 format: raw
567 device: cdrom
568 bus: ide
569 cloudinit_meta_data: *cloudinit_meta_data
570 cloudinit_user_data: *cloudinit_user_data_1604
571
572 interfaces: *all_interfaces
573 network_config: *all_network_config