blob: 4a93d7fb05002df67cce98a698df378663a6da55 [file] [log] [blame]
Tatyana Leontovichecd491d2017-09-13 13:51:12 +03001# 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 'mcp-ocata-local-repo-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'mcp-ocata-local-repo-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'mcp-ocata-local-repo-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7{% import 'mcp-ocata-local-repo-dvr/underlay--user-data-apt01.yaml' as CLOUDINIT_USER_DATA_APT01 with context %}
8
9
10---
11aliases:
12 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
13 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
14 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
15 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
16 - &cloudinit_user_data_apt01 {{ CLOUDINIT_USER_DATA_APT01 }}
17
18{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'mcp-ocata-local-repo-dvr') + '.local' %}
19{% set HOSTNAME_APT01 = os_env('HOSTNAME_APT01', 'apt01.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
25{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
26{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
29{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
30{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
31
32template:
33 devops_settings:
34 env_name: {{ os_env('ENV_NAME', 'mcp-ocata-local-repo-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
35
36 address_pools:
37 private-pool01:
38 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
39 params:
40 ip_reserved:
41 l2_network_device: +1
42 default_{{ HOSTNAME_APT01 }}: +122
43 default_{{ HOSTNAME_CFG01 }}: +100
44 default_{{ HOSTNAME_CTL01 }}: +101
45 default_{{ HOSTNAME_CTL02 }}: +102
46 default_{{ HOSTNAME_CTL03 }}: +103
47 default_{{ HOSTNAME_CMP01 }}: +105
48 default_{{ HOSTNAME_CMP02 }}: +106
49 default_{{ HOSTNAME_MON01 }}: +107
50 default_{{ HOSTNAME_MON02 }}: +108
51 default_{{ HOSTNAME_MON03 }}: +109
52 default_{{ HOSTNAME_GTW01 }}: +110
53 default_{{ HOSTNAME_PRX01 }}: +121
54 ip_ranges:
55 dhcp: [+90, -10]
56
57 admin-pool01:
58 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
59 params:
60 ip_reserved:
61 gateway: +122
62 l2_network_device: +1
63 default_{{ HOSTNAME_APT01 }}: +122
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 }}: +107
71 default_{{ HOSTNAME_MON02 }}: +108
72 default_{{ HOSTNAME_MON03 }}: +109
73 default_{{ HOSTNAME_GTW01 }}: +110
74 default_{{ HOSTNAME_PRX01 }}: +121
75 ip_ranges:
76 dhcp: [+90, -10]
77
78 tenant-pool01:
79 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
80 params:
81 ip_reserved:
82 l2_network_device: +1
83 default_{{ HOSTNAME_APT01 }}: +122
84 default_{{ HOSTNAME_CFG01 }}: +100
85 default_{{ HOSTNAME_CTL01 }}: +101
86 default_{{ HOSTNAME_CTL02 }}: +102
87 default_{{ HOSTNAME_CTL03 }}: +103
88 default_{{ HOSTNAME_CMP01 }}: +105
89 default_{{ HOSTNAME_CMP02 }}: +106
90 default_{{ HOSTNAME_MON01 }}: +107
91 default_{{ HOSTNAME_MON02 }}: +108
92 default_{{ HOSTNAME_MON03 }}: +109
93 default_{{ HOSTNAME_GTW01 }}: +110
94 default_{{ HOSTNAME_PRX01 }}: +121
95 ip_ranges:
96 dhcp: [+10, -10]
97 external-pool01:
98 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
99 params:
100 ip_reserved:
101 l2_network_device: +1
102 default_{{ HOSTNAME_APT01 }}: +122
103 ip_ranges:
104 dhcp: [+90, -10]
105
106 groups:
107 - name: default
108 driver:
109 name: devops.driver.libvirt
110 params:
111 connection_string: !os_env CONNECTION_STRING, qemu:///system
112 storage_pool_name: !os_env STORAGE_POOL_NAME, default
113 stp: False
114 hpet: False
115 enable_acpi: true
116 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
117 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
118
119 network_pools:
120 admin: admin-pool01
121 private: private-pool01
122 tenant: tenant-pool01
123 external: external-pool01
124
125 l2_network_devices:
126 private:
127 address_pool: private-pool01
128 dhcp: true
129
130 admin:
131 address_pool: admin-pool01
132 dhcp: true
133
134 tenant:
135 address_pool: tenant-pool01
136 dhcp: true
137
138 external:
139 address_pool: external-pool01
140 dhcp: true
141 forward:
142 mode: nat
143
144 group_volumes:
145 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
146 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
147 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
148 format: qcow2
149
150 nodes:
151 - name: {{ HOSTNAME_APT01 }}
152 role: salt_minion
153 params:
154 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300155 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichecd491d2017-09-13 13:51:12 +0300156 boot:
157 - hd
158 cloud_init_volume_name: iso
159 cloud_init_iface_up: ens3
160 volumes:
161 - name: system
162 capacity: !os_env NODE_VOLUME_SIZE, 150
163 backing_store: cloudimage1604
164 format: qcow2
165 - name: iso # Volume with name 'iso' will be used
166 # for store image with cloud-init metadata.
167 capacity: 1
168 format: raw
169 device: cdrom
170 bus: ide
171 cloudinit_meta_data: *cloudinit_meta_data
172 cloudinit_user_data: *cloudinit_user_data_apt01
173
174 interfaces:
175 - label: ens3
176 l2_network_device: admin
177 interface_model: *interface_model
178 - label: ens4
179 l2_network_device: private
180 interface_model: *interface_model
181 - label: ens5
182 l2_network_device: tenant
183 interface_model: *interface_model
184 - label: ens6
185 l2_network_device: external
186 interface_model: *interface_model
187 network_config:
188 ens3:
189 networks:
190 - admin
191 ens4:
192 networks:
193 - private
194 ens5:
195 networks:
196 - tenant
197 ens6:
198 networks:
199 - external
200
201 - name: {{ HOSTNAME_CFG01 }}
202 role: salt_master
203 params:
204 vcpu: !os_env SLAVE_NODE_CPU, 2
205 memory: !os_env SLAVE_NODE_MEMORY, 2048
206 boot:
207 - hd
208 cloud_init_volume_name: iso
209 cloud_init_iface_up: ens3
210 volumes:
211 - name: system
212 capacity: !os_env NODE_VOLUME_SIZE, 150
213 backing_store: cloudimage1604
214 format: qcow2
215 - name: iso # Volume with name 'iso' will be used
216 # for store image with cloud-init metadata.
217 capacity: 1
218 format: raw
219 device: cdrom
220 bus: ide
221 cloudinit_meta_data: *cloudinit_meta_data
222 cloudinit_user_data: *cloudinit_user_data_cfg01
223
224 interfaces:
225 - label: ens3
226 l2_network_device: admin
227 interface_model: *interface_model
228 - label: ens4
229 l2_network_device: private
230 interface_model: *interface_model
231 network_config:
232 ens3:
233 networks:
234 - admin
235 ens4:
236 networks:
237 - private
238
239 - name: {{ HOSTNAME_CTL01 }}
240 role: salt_minion
241 params:
242 vcpu: !os_env SLAVE_NODE_CPU, 2
243 memory: !os_env SLAVE_NODE_MEMORY, 8192
244 boot:
245 - hd
246 cloud_init_volume_name: iso
247 cloud_init_iface_up: ens3
248 volumes:
249 - name: system
250 capacity: !os_env NODE_VOLUME_SIZE, 150
251 backing_store: cloudimage1604
252 format: qcow2
253 - name: cinder
254 capacity: 50
255 format: qcow2
256 - name: iso # Volume with name 'iso' will be used
257 # for store image with cloud-init metadata.
258 capacity: 1
259 format: raw
260 device: cdrom
261 bus: ide
262 cloudinit_meta_data: *cloudinit_meta_data
263 cloudinit_user_data: *cloudinit_user_data_1604
264
265 interfaces: &interfaces
266 - label: ens3
267 l2_network_device: admin
268 interface_model: *interface_model
269 - label: ens4
270 l2_network_device: private
271 interface_model: *interface_model
272 network_config: &network_config
273 ens3:
274 networks:
275 - admin
276 ens4:
277 networks:
278 - private
279
280 - name: {{ HOSTNAME_CTL02 }}
281 role: salt_minion
282 params:
283 vcpu: !os_env SLAVE_NODE_CPU, 2
284 memory: !os_env SLAVE_NODE_MEMORY, 8192
285 boot:
286 - hd
287 cloud_init_volume_name: iso
288 cloud_init_iface_up: ens3
289 volumes:
290 - name: system
291 capacity: !os_env NODE_VOLUME_SIZE, 150
292 backing_store: cloudimage1604
293 format: qcow2
294 - name: cinder
295 capacity: 50
296 format: qcow2
297 - name: iso # Volume with name 'iso' will be used
298 # for store image with cloud-init metadata.
299 capacity: 1
300 format: raw
301 device: cdrom
302 bus: ide
303 cloudinit_meta_data: *cloudinit_meta_data
304 cloudinit_user_data: *cloudinit_user_data_1604
305
306 interfaces: *interfaces
307 network_config: *network_config
308
309 - name: {{ HOSTNAME_CTL03 }}
310 role: salt_minion
311 params:
312 vcpu: !os_env SLAVE_NODE_CPU, 2
313 memory: !os_env SLAVE_NODE_MEMORY, 8192
314 boot:
315 - hd
316 cloud_init_volume_name: iso
317 cloud_init_iface_up: ens3
318 volumes:
319 - name: system
320 capacity: !os_env NODE_VOLUME_SIZE, 150
321 backing_store: cloudimage1604
322 format: qcow2
323 - name: cinder
324 capacity: 50
325 format: qcow2
326 - name: iso # Volume with name 'iso' will be used
327 # for store image with cloud-init metadata.
328 capacity: 1
329 format: raw
330 device: cdrom
331 bus: ide
332 cloudinit_meta_data: *cloudinit_meta_data
333 cloudinit_user_data: *cloudinit_user_data_1604
334
335 interfaces: *interfaces
336 network_config: *network_config
337
338 - name: {{ HOSTNAME_MON01 }}
339 role: salt_minion
340 params:
341 vcpu: !os_env SLAVE_NODE_CPU, 3
342 memory: !os_env SLAVE_NODE_MEMORY, 2048
343 boot:
344 - hd
345 cloud_init_volume_name: iso
346 cloud_init_iface_up: ens3
347 volumes:
348 - name: system
349 capacity: !os_env NODE_VOLUME_SIZE, 150
350 backing_store: cloudimage1604
351 format: qcow2
352 - name: iso # Volume with name 'iso' will be used
353 # for store image with cloud-init metadata.
354 capacity: 1
355 format: raw
356 device: cdrom
357 bus: ide
358 cloudinit_meta_data: !include underlay--meta-data.yaml
359 cloudinit_user_data: !include underlay--user-data1604.yaml
360
361 interfaces: *interfaces
362 network_config: *network_config
363
364 - name: {{ HOSTNAME_MON02 }}
365 role: salt_minion
366 params:
367 vcpu: !os_env SLAVE_NODE_CPU, 3
368 memory: !os_env SLAVE_NODE_MEMORY, 2048
369 boot:
370 - hd
371 cloud_init_volume_name: iso
372 cloud_init_iface_up: ens3
373 volumes:
374 - name: system
375 capacity: !os_env NODE_VOLUME_SIZE, 150
376 backing_store: cloudimage1604
377 format: qcow2
378 - name: iso # Volume with name 'iso' will be used
379 # for store image with cloud-init metadata.
380 capacity: 1
381 format: raw
382 device: cdrom
383 bus: ide
384 cloudinit_meta_data: !include underlay--meta-data.yaml
385 cloudinit_user_data: !include underlay--user-data1604.yaml
386
387 interfaces: *interfaces
388 network_config: *network_config
389
390 - name: {{ HOSTNAME_MON03 }}
391 role: salt_minion
392 params:
393 vcpu: !os_env SLAVE_NODE_CPU, 3
394 memory: !os_env SLAVE_NODE_MEMORY, 2048
395 boot:
396 - hd
397 cloud_init_volume_name: iso
398 cloud_init_iface_up: ens3
399 volumes:
400 - name: system
401 capacity: !os_env NODE_VOLUME_SIZE, 150
402 backing_store: cloudimage1604
403 format: qcow2
404 - name: iso # Volume with name 'iso' will be used
405 # for store image with cloud-init metadata.
406 capacity: 1
407 format: raw
408 device: cdrom
409 bus: ide
410 cloudinit_meta_data: !include underlay--meta-data.yaml
411 cloudinit_user_data: !include underlay--user-data1604.yaml
412
413 interfaces: *interfaces
414 network_config: *network_config
415
416 - name: {{ HOSTNAME_PRX01 }}
417 role: salt_minion
418 params:
419 vcpu: !os_env SLAVE_NODE_CPU, 1
420 memory: !os_env SLAVE_NODE_MEMORY, 8192
421 boot:
422 - hd
423 cloud_init_volume_name: iso
424 cloud_init_iface_up: ens3
425 volumes:
426 - name: system
427 capacity: !os_env NODE_VOLUME_SIZE, 150
428 backing_store: cloudimage1604
429 format: qcow2
430 - name: cinder
431 capacity: 50
432 format: qcow2
433 - name: iso # Volume with name 'iso' will be used
434 # for store image with cloud-init metadata.
435 capacity: 1
436 format: raw
437 device: cdrom
438 bus: ide
439 cloudinit_meta_data: *cloudinit_meta_data
440 cloudinit_user_data: *cloudinit_user_data_1604
441
442 interfaces: *interfaces
443 network_config: *network_config
444
445
446 - name: {{ HOSTNAME_CMP01 }}
447 role: salt_minion
448 params:
449 vcpu: !os_env SLAVE_NODE_CPU, 3
450 memory: !os_env SLAVE_NODE_MEMORY, 4096
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
470 interfaces: &all_interfaces
471 - label: ens3
472 l2_network_device: admin
473 interface_model: *interface_model
474 - label: ens4
475 l2_network_device: private
476 interface_model: *interface_model
477 - label: ens5
478 l2_network_device: tenant
479 interface_model: *interface_model
480 - label: ens6
481 l2_network_device: external
482 interface_model: *interface_model
483 network_config: &all_network_config
484 ens3:
485 networks:
486 - admin
487 ens4:
488 networks:
489 - private
490 ens5:
491 networks:
492 - tenant
493
494 - name: {{ HOSTNAME_CMP02 }}
495 role: salt_minion
496 params:
497 vcpu: !os_env SLAVE_NODE_CPU, 3
498 memory: !os_env SLAVE_NODE_MEMORY, 4096
499 boot:
500 - hd
501 cloud_init_volume_name: iso
502 cloud_init_iface_up: ens3
503 volumes:
504 - name: system
505 capacity: !os_env NODE_VOLUME_SIZE, 150
506 backing_store: cloudimage1604
507 format: qcow2
508 - name: iso # Volume with name 'iso' will be used
509 # for store image with cloud-init metadata.
510 capacity: 1
511 format: raw
512 device: cdrom
513 bus: ide
514 cloudinit_meta_data: *cloudinit_meta_data
515 cloudinit_user_data: *cloudinit_user_data_1604
516
517 interfaces: *all_interfaces
518 network_config: *all_network_config
519
520 - name: {{ HOSTNAME_GTW01 }}
521 role: salt_minion
522 params:
523 vcpu: !os_env SLAVE_NODE_CPU, 1
524 memory: !os_env SLAVE_NODE_MEMORY, 2048
525 boot:
526 - hd
527 cloud_init_volume_name: iso
528 cloud_init_iface_up: ens3
529 volumes:
530 - name: system
531 capacity: !os_env NODE_VOLUME_SIZE, 150
532 backing_store: cloudimage1604
533 format: qcow2
534 - name: iso # Volume with name 'iso' will be used
535 # for store image with cloud-init metadata.
536 capacity: 1
537 format: raw
538 device: cdrom
539 bus: ide
540 cloudinit_meta_data: *cloudinit_meta_data
541 cloudinit_user_data: *cloudinit_user_data_1604
542
543 interfaces: *all_interfaces
544 network_config: *all_network_config