blob: 352d691fbd30644fe6dc813779617f73d86305a5 [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/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-ovs/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') %}
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) %}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020023{% 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) %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020026{% 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:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020031 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020032
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020046 default_{{ HOSTNAME_MON01 }}: +107
47 default_{{ HOSTNAME_MON02 }}: +108
48 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020049 default_{{ HOSTNAME_GTW01 }}: +110
50 default_{{ HOSTNAME_PRX01 }}: +121
51 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020052 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020053
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020066 default_{{ HOSTNAME_MON01 }}: +107
67 default_{{ HOSTNAME_MON02 }}: +108
68 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020069 default_{{ HOSTNAME_GTW01 }}: +110
70 default_{{ HOSTNAME_PRX01 }}: +121
71 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020072 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020073
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020086 default_{{ HOSTNAME_MON01 }}: +107
87 default_{{ HOSTNAME_MON02 }}: +108
88 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +020089 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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200106 default_{{ HOSTNAME_MON01 }}: +107
107 default_{{ HOSTNAME_MON02 }}: +108
108 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200109 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: true
138
139 admin:
140 address_pool: admin-pool01
141 dhcp: true
142 forward:
143 mode: nat
144
145 tenant:
146 address_pool: tenant-pool01
147 dhcp: true
148
149 external:
150 address_pool: external-pool01
151 dhcp: true
152 forward:
153 mode: nat
154
155
156 group_volumes:
157 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200158 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
159 format: qcow2
160 - name: cfg01_day01_image # Pre-configured day01 image
161 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 Leontovich56005da2017-12-11 13:16:51 +0200162 format: qcow2
163
164 nodes:
165 - name: {{ HOSTNAME_CFG01 }}
166 role: salt_master
167 params:
168 vcpu: !os_env SLAVE_NODE_CPU, 2
169 memory: !os_env SLAVE_NODE_MEMORY, 4096
170 boot:
171 - hd
172 cloud_init_volume_name: iso
173 cloud_init_iface_up: ens3
174 volumes:
175 - name: system
176 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200177 backing_store: cfg01_day01_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200178 format: qcow2
179 - name: iso # Volume with name 'iso' will be used
180 # for store image with cloud-init metadata.
181 capacity: 1
182 format: raw
183 device: cdrom
184 bus: ide
185 cloudinit_meta_data: *cloudinit_meta_data
186 cloudinit_user_data: *cloudinit_user_data_cfg01
187
188 interfaces:
189 - label: ens3
190 l2_network_device: admin
191 interface_model: *interface_model
192 - label: ens4
193 l2_network_device: private
194 interface_model: *interface_model
195 network_config:
196 ens3:
197 networks:
198 - admin
199 ens4:
200 networks:
201 - private
202
203 - name: {{ HOSTNAME_CTL01 }}
204 role: salt_minion
205 params:
206 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200207 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200208 boot:
209 - hd
210 cloud_init_volume_name: iso
211 cloud_init_iface_up: ens3
212 volumes:
213 - name: system
214 capacity: !os_env NODE_VOLUME_SIZE, 150
215 backing_store: cloudimage1604
216 format: qcow2
217 - name: cinder
218 capacity: 50
219 format: qcow2
220 - name: iso # Volume with name 'iso' will be used
221 # for store image with cloud-init metadata.
222 capacity: 1
223 format: raw
224 device: cdrom
225 bus: ide
226 cloudinit_meta_data: *cloudinit_meta_data
227 cloudinit_user_data: *cloudinit_user_data_1604
228
229 interfaces: &interfaces
230 - label: ens3
231 l2_network_device: admin
232 interface_model: *interface_model
233 - label: ens4
234 l2_network_device: private
235 interface_model: *interface_model
236 network_config: &network_config
237 ens3:
238 networks:
239 - admin
240 ens4:
241 networks:
242 - private
243
244 - name: {{ HOSTNAME_CTL02 }}
245 role: salt_minion
246 params:
247 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200248 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200249 boot:
250 - hd
251 cloud_init_volume_name: iso
252 cloud_init_iface_up: ens3
253 volumes:
254 - name: system
255 capacity: !os_env NODE_VOLUME_SIZE, 150
256 backing_store: cloudimage1604
257 format: qcow2
258 - name: cinder
259 capacity: 50
260 format: qcow2
261 - name: iso # Volume with name 'iso' will be used
262 # for store image with cloud-init metadata.
263 capacity: 1
264 format: raw
265 device: cdrom
266 bus: ide
267 cloudinit_meta_data: *cloudinit_meta_data
268 cloudinit_user_data: *cloudinit_user_data_1604
269
270 interfaces: *interfaces
271 network_config: *network_config
272
273 - name: {{ HOSTNAME_CTL03 }}
274 role: salt_minion
275 params:
276 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev0937c392018-01-29 18:46:40 +0200277 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200278 boot:
279 - hd
280 cloud_init_volume_name: iso
281 cloud_init_iface_up: ens3
282 volumes:
283 - name: system
284 capacity: !os_env NODE_VOLUME_SIZE, 150
285 backing_store: cloudimage1604
286 format: qcow2
287 - name: cinder
288 capacity: 50
289 format: qcow2
290 - name: iso # Volume with name 'iso' will be used
291 # for store image with cloud-init metadata.
292 capacity: 1
293 format: raw
294 device: cdrom
295 bus: ide
296 cloudinit_meta_data: *cloudinit_meta_data
297 cloudinit_user_data: *cloudinit_user_data_1604
298
299 interfaces: *interfaces
300 network_config: *network_config
301
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200302 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200303 role: salt_minion
304 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200305 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200306 memory: !os_env SLAVE_NODE_MEMORY, 2048
307 boot:
308 - hd
309 cloud_init_volume_name: iso
310 cloud_init_iface_up: ens3
311 volumes:
312 - name: system
313 capacity: !os_env NODE_VOLUME_SIZE, 150
314 backing_store: cloudimage1604
315 format: qcow2
316 - name: iso # Volume with name 'iso' will be used
317 # for store image with cloud-init metadata.
318 capacity: 1
319 format: raw
320 device: cdrom
321 bus: ide
322 cloudinit_meta_data: *cloudinit_meta_data
323 cloudinit_user_data: *cloudinit_user_data_1604
324
325 interfaces: *interfaces
326 network_config: *network_config
327
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200328 - name: {{ HOSTNAME_MON02 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200329 role: salt_minion
330 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200331 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200332 memory: !os_env SLAVE_NODE_MEMORY, 2048
333 boot:
334 - hd
335 cloud_init_volume_name: iso
336 cloud_init_iface_up: ens3
337 volumes:
338 - name: system
339 capacity: !os_env NODE_VOLUME_SIZE, 150
340 backing_store: cloudimage1604
341 format: qcow2
342 - name: iso # Volume with name 'iso' will be used
343 # for store image with cloud-init metadata.
344 capacity: 1
345 format: raw
346 device: cdrom
347 bus: ide
348 cloudinit_meta_data: *cloudinit_meta_data
349 cloudinit_user_data: *cloudinit_user_data_1604
350
351 interfaces: *interfaces
352 network_config: *network_config
353
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200354 - name: {{ HOSTNAME_MON03 }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200355 role: salt_minion
356 params:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200357 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200358 memory: !os_env SLAVE_NODE_MEMORY, 2048
359 boot:
360 - hd
361 cloud_init_volume_name: iso
362 cloud_init_iface_up: ens3
363 volumes:
364 - name: system
365 capacity: !os_env NODE_VOLUME_SIZE, 150
366 backing_store: cloudimage1604
367 format: qcow2
368 - name: iso # Volume with name 'iso' will be used
369 # for store image with cloud-init metadata.
370 capacity: 1
371 format: raw
372 device: cdrom
373 bus: ide
374 cloudinit_meta_data: *cloudinit_meta_data
375 cloudinit_user_data: *cloudinit_user_data_1604
376
377 interfaces: *interfaces
378 network_config: *network_config
379
380 - name: {{ HOSTNAME_PRX01 }}
381 role: salt_minion
382 params:
383 vcpu: !os_env SLAVE_NODE_CPU, 1
384 memory: !os_env SLAVE_NODE_MEMORY, 2048
385 boot:
386 - hd
387 cloud_init_volume_name: iso
388 cloud_init_iface_up: ens3
389 volumes:
390 - name: system
391 capacity: !os_env NODE_VOLUME_SIZE, 150
392 backing_store: cloudimage1604
393 format: qcow2
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200394 - name: cinder
395 capacity: 50
396 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200397 - name: iso # Volume with name 'iso' will be used
398 # for store image with cloud-init metadata.
399 capacity: 1
400 format: raw
401 device: cdrom
402 bus: ide
403 cloudinit_meta_data: *cloudinit_meta_data
404 cloudinit_user_data: *cloudinit_user_data_1604
405
406 interfaces: *interfaces
407 network_config: *network_config
408
409 - name: {{ HOSTNAME_CMP01 }}
410 role: salt_minion
411 params:
412 vcpu: !os_env SLAVE_NODE_CPU, 3
413 memory: !os_env SLAVE_NODE_MEMORY, 4096
414 boot:
415 - hd
416 cloud_init_volume_name: iso
417 cloud_init_iface_up: ens3
418 volumes:
419 - name: system
420 capacity: !os_env NODE_VOLUME_SIZE, 150
421 backing_store: cloudimage1604
422 format: qcow2
423 - name: iso # Volume with name 'iso' will be used
424 # for store image with cloud-init metadata.
425 capacity: 1
426 format: raw
427 device: cdrom
428 bus: ide
429 cloudinit_meta_data: *cloudinit_meta_data
430 cloudinit_user_data: *cloudinit_user_data_1604
431
432
433 interfaces: &all_interfaces
434 - label: ens3
435 l2_network_device: admin
436 interface_model: *interface_model
437 - label: ens4
438 l2_network_device: private
439 interface_model: *interface_model
440 - label: ens5
441 l2_network_device: tenant
442 interface_model: *interface_model
443 - label: ens6
444 l2_network_device: external
445 interface_model: *interface_model
446 network_config: &all_network_config
447 ens3:
448 networks:
449 - admin
450 ens4:
451 networks:
452 - private
453 ens5:
454 networks:
455 - tenant
456 ens6:
457 networks:
458 - external
459
460 - name: {{ HOSTNAME_CMP02 }}
461 role: salt_minion
462 params:
463 vcpu: !os_env SLAVE_NODE_CPU, 3
464 memory: !os_env SLAVE_NODE_MEMORY, 4096
465 boot:
466 - hd
467 cloud_init_volume_name: iso
468 cloud_init_iface_up: ens3
469 volumes:
470 - name: system
471 capacity: !os_env NODE_VOLUME_SIZE, 150
472 backing_store: cloudimage1604
473 format: qcow2
474 - name: iso # Volume with name 'iso' will be used
475 # for store image with cloud-init metadata.
476 capacity: 1
477 format: raw
478 device: cdrom
479 bus: ide
480 cloudinit_meta_data: *cloudinit_meta_data
481 cloudinit_user_data: *cloudinit_user_data_1604
482
483 interfaces: *all_interfaces
484 network_config: *all_network_config
485
486 - name: {{ HOSTNAME_GTW01 }}
487 role: salt_minion
488 params:
489 vcpu: !os_env SLAVE_NODE_CPU, 1
490 memory: !os_env SLAVE_NODE_MEMORY, 2048
491 boot:
492 - hd
493 cloud_init_volume_name: iso
494 cloud_init_iface_up: ens3
495 volumes:
496 - name: system
497 capacity: !os_env NODE_VOLUME_SIZE, 150
498 backing_store: cloudimage1604
499 format: qcow2
500 - name: iso # Volume with name 'iso' will be used
501 # for store image with cloud-init metadata.
502 capacity: 1
503 format: raw
504 device: cdrom
505 bus: ide
506 cloudinit_meta_data: *cloudinit_meta_data
507 cloudinit_user_data: *cloudinit_user_data_1604
508
509 interfaces: *all_interfaces
510 network_config: *all_network_config