blob: f90dceb4f87615b0772c4f04572ca1fafb4bdade [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) %}
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +020023{% set HOSTNAME_MDB01 = os_env('HOSTNAME_MDB01', 'mdb01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MDB02 = os_env('HOSTNAME_MDB02', 'mdb02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MDB03 = os_env('HOSTNAME_MDB03', 'mdb03.' + 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
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +020046 default_{{ HOSTNAME_MDB01 }}: +121
47 default_{{ HOSTNAME_MDB02 }}: +122
48 default_{{ HOSTNAME_MDB03 }}: +123
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
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +020066 default_{{ HOSTNAME_MDB01 }}: +121
67 default_{{ HOSTNAME_MDB02 }}: +122
68 default_{{ HOSTNAME_MDB03 }}: +123
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
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +020086 default_{{ HOSTNAME_MDB01 }}: +121
87 default_{{ HOSTNAME_MDB02 }}: +122
88 default_{{ HOSTNAME_MDB03 }}: +123
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
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200106 default_{{ HOSTNAME_MDB01 }}: +121
107 default_{{ HOSTNAME_MDB02 }}: +122
108 default_{{ HOSTNAME_MDB03 }}: +123
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
Dennis Dmitrieva5978eb2018-02-21 10:12:33 +0200138 forward:
139 mode: route
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200140
141 admin:
142 address_pool: admin-pool01
143 dhcp: true
144 forward:
145 mode: nat
146
147 tenant:
148 address_pool: tenant-pool01
149 dhcp: true
150
151 external:
152 address_pool: external-pool01
153 dhcp: true
154 forward:
155 mode: nat
156
157
158 group_volumes:
159 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200160 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
161 format: qcow2
162 - name: cfg01_day01_image # Pre-configured day01 image
163 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 +0200164 format: qcow2
Tatyana Leontovichded29902018-01-30 09:53:34 +0200165 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
166 source_image: !os_env MCP_IMAGE_PATH1604
167 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200168
169 nodes:
170 - name: {{ HOSTNAME_CFG01 }}
171 role: salt_master
172 params:
173 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200174 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200175 boot:
176 - hd
177 cloud_init_volume_name: iso
178 cloud_init_iface_up: ens3
179 volumes:
180 - name: system
181 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200182 backing_store: cfg01_day01_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200183 format: qcow2
184 - name: iso # Volume with name 'iso' will be used
185 # for store image with cloud-init metadata.
186 capacity: 1
187 format: raw
188 device: cdrom
189 bus: ide
190 cloudinit_meta_data: *cloudinit_meta_data
191 cloudinit_user_data: *cloudinit_user_data_cfg01
192
193 interfaces:
194 - label: ens3
195 l2_network_device: admin
196 interface_model: *interface_model
197 - label: ens4
198 l2_network_device: private
199 interface_model: *interface_model
200 network_config:
201 ens3:
202 networks:
203 - admin
204 ens4:
205 networks:
206 - private
207
208 - name: {{ HOSTNAME_CTL01 }}
209 role: salt_minion
210 params:
211 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200212 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200213 boot:
214 - hd
215 cloud_init_volume_name: iso
216 cloud_init_iface_up: ens3
217 volumes:
218 - name: system
219 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200220 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200221 format: qcow2
222 - name: cinder
223 capacity: 50
224 format: qcow2
225 - name: iso # Volume with name 'iso' will be used
226 # for store image with cloud-init metadata.
227 capacity: 1
228 format: raw
229 device: cdrom
230 bus: ide
231 cloudinit_meta_data: *cloudinit_meta_data
232 cloudinit_user_data: *cloudinit_user_data_1604
233
234 interfaces: &interfaces
235 - label: ens3
236 l2_network_device: admin
237 interface_model: *interface_model
238 - label: ens4
239 l2_network_device: private
240 interface_model: *interface_model
241 network_config: &network_config
242 ens3:
243 networks:
244 - admin
245 ens4:
246 networks:
247 - private
248
249 - name: {{ HOSTNAME_CTL02 }}
250 role: salt_minion
251 params:
252 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200253 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200254 boot:
255 - hd
256 cloud_init_volume_name: iso
257 cloud_init_iface_up: ens3
258 volumes:
259 - name: system
260 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200261 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200262 format: qcow2
263 - name: cinder
264 capacity: 50
265 format: qcow2
266 - name: iso # Volume with name 'iso' will be used
267 # for store image with cloud-init metadata.
268 capacity: 1
269 format: raw
270 device: cdrom
271 bus: ide
272 cloudinit_meta_data: *cloudinit_meta_data
273 cloudinit_user_data: *cloudinit_user_data_1604
274
275 interfaces: *interfaces
276 network_config: *network_config
277
278 - name: {{ HOSTNAME_CTL03 }}
279 role: salt_minion
280 params:
281 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200282 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200283 boot:
284 - hd
285 cloud_init_volume_name: iso
286 cloud_init_iface_up: ens3
287 volumes:
288 - name: system
289 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200290 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200291 format: qcow2
292 - name: cinder
293 capacity: 50
294 format: qcow2
295 - name: iso # Volume with name 'iso' will be used
296 # for store image with cloud-init metadata.
297 capacity: 1
298 format: raw
299 device: cdrom
300 bus: ide
301 cloudinit_meta_data: *cloudinit_meta_data
302 cloudinit_user_data: *cloudinit_user_data_1604
303
304 interfaces: *interfaces
305 network_config: *network_config
306
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200307 - name: {{ HOSTNAME_MDB01 }}
308 role: salt_minion
309 params:
310 vcpu: !os_env SLAVE_NODE_CPU, 2
311 memory: !os_env SLAVE_NODE_MEMORY, 8192
312 boot:
313 - hd
314 cloud_init_volume_name: iso
315 cloud_init_iface_up: ens3
316 volumes:
317 - name: system
318 capacity: !os_env NODE_VOLUME_SIZE, 150
319 backing_store: mcp_ubuntu_1604_image
320 format: qcow2
321 - name: cinder
322 capacity: 50
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_MDB02 }}
337 role: salt_minion
338 params:
339 vcpu: !os_env SLAVE_NODE_CPU, 2
340 memory: !os_env SLAVE_NODE_MEMORY, 8192
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: mcp_ubuntu_1604_image
349 format: qcow2
350 - name: cinder
351 capacity: 50
352 format: qcow2
353 - name: iso # Volume with name 'iso' will be used
354 # for store image with cloud-init metadata.
355 capacity: 1
356 format: raw
357 device: cdrom
358 bus: ide
359 cloudinit_meta_data: *cloudinit_meta_data
360 cloudinit_user_data: *cloudinit_user_data_1604
361
362 interfaces: *interfaces
363 network_config: *network_config
364
365 - name: {{ HOSTNAME_MDB03 }}
366 role: salt_minion
367 params:
368 vcpu: !os_env SLAVE_NODE_CPU, 2
369 memory: !os_env SLAVE_NODE_MEMORY, 8192
370 boot:
371 - hd
372 cloud_init_volume_name: iso
373 cloud_init_iface_up: ens3
374 volumes:
375 - name: system
376 capacity: !os_env NODE_VOLUME_SIZE, 150
377 backing_store: mcp_ubuntu_1604_image
378 format: qcow2
379 - name: cinder
380 capacity: 50
381 format: qcow2
382 - name: iso # Volume with name 'iso' will be used
383 # for store image with cloud-init metadata.
384 capacity: 1
385 format: raw
386 device: cdrom
387 bus: ide
388 cloudinit_meta_data: *cloudinit_meta_data
389 cloudinit_user_data: *cloudinit_user_data_1604
390
391 interfaces: *interfaces
392 network_config: *network_config
393
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200394 - name: {{ HOSTNAME_PRX01 }}
395 role: salt_minion
396 params:
397 vcpu: !os_env SLAVE_NODE_CPU, 1
398 memory: !os_env SLAVE_NODE_MEMORY, 2048
399 boot:
400 - hd
401 cloud_init_volume_name: iso
402 cloud_init_iface_up: ens3
403 volumes:
404 - name: system
405 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200406 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200407 format: qcow2
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200408 - name: cinder
409 capacity: 50
410 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200411 - name: iso # Volume with name 'iso' will be used
412 # for store image with cloud-init metadata.
413 capacity: 1
414 format: raw
415 device: cdrom
416 bus: ide
417 cloudinit_meta_data: *cloudinit_meta_data
418 cloudinit_user_data: *cloudinit_user_data_1604
419
420 interfaces: *interfaces
421 network_config: *network_config
422
423 - name: {{ HOSTNAME_CMP01 }}
424 role: salt_minion
425 params:
426 vcpu: !os_env SLAVE_NODE_CPU, 3
427 memory: !os_env SLAVE_NODE_MEMORY, 4096
428 boot:
429 - hd
430 cloud_init_volume_name: iso
431 cloud_init_iface_up: ens3
432 volumes:
433 - name: system
434 capacity: !os_env NODE_VOLUME_SIZE, 150
435 backing_store: cloudimage1604
436 format: qcow2
437 - name: iso # Volume with name 'iso' will be used
438 # for store image with cloud-init metadata.
439 capacity: 1
440 format: raw
441 device: cdrom
442 bus: ide
443 cloudinit_meta_data: *cloudinit_meta_data
444 cloudinit_user_data: *cloudinit_user_data_1604
445
446
447 interfaces: &all_interfaces
448 - label: ens3
449 l2_network_device: admin
450 interface_model: *interface_model
451 - label: ens4
452 l2_network_device: private
453 interface_model: *interface_model
454 - label: ens5
455 l2_network_device: tenant
456 interface_model: *interface_model
457 - label: ens6
458 l2_network_device: external
459 interface_model: *interface_model
460 network_config: &all_network_config
461 ens3:
462 networks:
463 - admin
464 ens4:
465 networks:
466 - private
467 ens5:
468 networks:
469 - tenant
470 ens6:
471 networks:
472 - external
473
474 - name: {{ HOSTNAME_CMP02 }}
475 role: salt_minion
476 params:
477 vcpu: !os_env SLAVE_NODE_CPU, 3
478 memory: !os_env SLAVE_NODE_MEMORY, 4096
479 boot:
480 - hd
481 cloud_init_volume_name: iso
482 cloud_init_iface_up: ens3
483 volumes:
484 - name: system
485 capacity: !os_env NODE_VOLUME_SIZE, 150
486 backing_store: cloudimage1604
487 format: qcow2
488 - name: iso # Volume with name 'iso' will be used
489 # for store image with cloud-init metadata.
490 capacity: 1
491 format: raw
492 device: cdrom
493 bus: ide
494 cloudinit_meta_data: *cloudinit_meta_data
495 cloudinit_user_data: *cloudinit_user_data_1604
496
497 interfaces: *all_interfaces
498 network_config: *all_network_config
499
500 - name: {{ HOSTNAME_GTW01 }}
501 role: salt_minion
502 params:
Dennis Dmitrievfd3370b2018-03-07 00:50:35 +0200503 vcpu: !os_env SLAVE_NODE_CPU, 4
504 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200505 boot:
506 - hd
507 cloud_init_volume_name: iso
508 cloud_init_iface_up: ens3
509 volumes:
510 - name: system
511 capacity: !os_env NODE_VOLUME_SIZE, 150
512 backing_store: cloudimage1604
513 format: qcow2
514 - name: iso # Volume with name 'iso' will be used
515 # for store image with cloud-init metadata.
516 capacity: 1
517 format: raw
518 device: cdrom
519 bus: ide
520 cloudinit_meta_data: *cloudinit_meta_data
521 cloudinit_user_data: *cloudinit_user_data_1604
522
523 interfaces: *all_interfaces
524 network_config: *all_network_config