blob: bd52ae01741886278879d8a70de86025b79679da [file] [log] [blame]
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03003
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03004{% import 'virtual-mcp11-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03008---
9aliases:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030010 - &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 }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030017{% 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_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
25
26template:
27 devops_settings:
Dennis Dmitrievab83ea42017-05-12 16:52:45 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030029
30 address_pools:
31 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030032 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030033 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
Tatyana Leontovich1328b3d2017-10-04 18:48:52 +030037 default_{{ HOSTNAME_CFG01 }}: +90
38 default_{{ HOSTNAME_CTL01 }}: +91
39 default_{{ HOSTNAME_CTL02 }}: +92
40 default_{{ HOSTNAME_CTL03 }}: +93
41 default_{{ HOSTNAME_CMP01 }}: +95
42 default_{{ HOSTNAME_CMP02 }}: +96
43 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030044 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
46 dhcp: [+90, -10]
47
48 admin-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030049 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030050 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030054 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovichcc864bd2017-10-04 18:35:44 +030055 default_{{ HOSTNAME_CTL01 }}: +91
56 default_{{ HOSTNAME_CTL02 }}: +92
57 default_{{ HOSTNAME_CTL03 }}: +93
58 default_{{ HOSTNAME_CMP01 }}: +95
59 default_{{ HOSTNAME_CMP02 }}: +96
60 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030061 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
63 dhcp: [+90, -10]
64
65 tenant-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030066 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030067 params:
68 ip_reserved:
69 gateway: +1
70 l2_network_device: +1
71 default_{{ HOSTNAME_CFG01 }}: +100
72 default_{{ HOSTNAME_CTL01 }}: +101
73 default_{{ HOSTNAME_CTL02 }}: +102
74 default_{{ HOSTNAME_CTL03 }}: +103
75 default_{{ HOSTNAME_CMP01 }}: +105
76 default_{{ HOSTNAME_CMP02 }}: +106
77 default_{{ HOSTNAME_GTW01 }}: +110
78 default_{{ HOSTNAME_PRX01 }}: +121
79 ip_ranges:
80 dhcp: [+10, -10]
81
82 external-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030083 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030084 params:
85 ip_reserved:
86 gateway: +1
87 l2_network_device: +1
88 default_{{ HOSTNAME_CFG01 }}: +100
89 default_{{ HOSTNAME_CTL01 }}: +101
90 default_{{ HOSTNAME_CTL02 }}: +102
91 default_{{ HOSTNAME_CTL03 }}: +103
92 default_{{ HOSTNAME_CMP01 }}: +105
93 default_{{ HOSTNAME_CMP02 }}: +106
94 default_{{ HOSTNAME_GTW01 }}: +110
95 default_{{ HOSTNAME_PRX01 }}: +121
96 ip_ranges:
97 dhcp: [+10, -10]
98
99
100 groups:
101 - name: default
102 driver:
103 name: devops.driver.libvirt
104 params:
105 connection_string: !os_env CONNECTION_STRING, qemu:///system
106 storage_pool_name: !os_env STORAGE_POOL_NAME, default
107 stp: False
108 hpet: False
109 enable_acpi: true
110 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300112
113 network_pools:
114 admin: admin-pool01
115 private: private-pool01
116 tenant: tenant-pool01
117 external: external-pool01
118
119 l2_network_devices:
120 private:
121 address_pool: private-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200122 dhcp: false
123 forward:
124 mode: route
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300125
126 admin:
127 address_pool: admin-pool01
128 dhcp: true
129 forward:
130 mode: nat
131
132 tenant:
133 address_pool: tenant-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200134 dhcp: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300135
136 external:
137 address_pool: external-pool01
138 dhcp: true
139 forward:
140 mode: nat
141
142
143 group_volumes:
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300144 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200145 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
146 format: qcow2
147
148 - name: cfg01_day01_image # Pre-configured day01 image
149 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 Leontovichd8bf14f2017-04-19 12:20:50 +0300150 format: qcow2
151
152 nodes:
153 - name: {{ HOSTNAME_CFG01 }}
154 role: salt_master
155 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300156 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300157 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300158 boot:
159 - hd
160 cloud_init_volume_name: iso
161 cloud_init_iface_up: ens3
162 volumes:
163 - name: system
164 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200165 backing_store: cfg01_day01_image
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300166 format: qcow2
167 - name: iso # Volume with name 'iso' will be used
168 # for store image with cloud-init metadata.
169 capacity: 1
170 format: raw
171 device: cdrom
172 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300173 cloudinit_meta_data: *cloudinit_meta_data
174 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300175
176 interfaces:
177 - label: ens3
178 l2_network_device: admin
179 interface_model: *interface_model
180 - label: ens4
181 l2_network_device: private
182 interface_model: *interface_model
183 network_config:
184 ens3:
185 networks:
186 - admin
187 ens4:
188 networks:
189 - private
190
191 - name: {{ HOSTNAME_CTL01 }}
192 role: salt_minion
193 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200194 vcpu: !os_env SLAVE_NODE_CPU, 3
195 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300196 boot:
197 - hd
198 cloud_init_volume_name: iso
199 cloud_init_iface_up: ens3
200 volumes:
201 - name: system
202 capacity: !os_env NODE_VOLUME_SIZE, 150
203 backing_store: cloudimage1604
204 format: qcow2
205 - name: cinder
206 capacity: 50
207 format: qcow2
208 - name: iso # Volume with name 'iso' will be used
209 # for store image with cloud-init metadata.
210 capacity: 1
211 format: raw
212 device: cdrom
213 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300214 cloudinit_meta_data: *cloudinit_meta_data
215 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300216
217 interfaces: &interfaces
218 - label: ens3
219 l2_network_device: admin
220 interface_model: *interface_model
221 - label: ens4
222 l2_network_device: private
223 interface_model: *interface_model
224 network_config: &network_config
225 ens3:
226 networks:
227 - admin
228 ens4:
229 networks:
230 - private
231
232 - name: {{ HOSTNAME_CTL02 }}
233 role: salt_minion
234 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200235 vcpu: !os_env SLAVE_NODE_CPU, 3
236 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300237 boot:
238 - hd
239 cloud_init_volume_name: iso
240 cloud_init_iface_up: ens3
241 volumes:
242 - name: system
243 capacity: !os_env NODE_VOLUME_SIZE, 150
244 backing_store: cloudimage1604
245 format: qcow2
246 - name: cinder
247 capacity: 50
248 format: qcow2
249 - name: iso # Volume with name 'iso' will be used
250 # for store image with cloud-init metadata.
251 capacity: 1
252 format: raw
253 device: cdrom
254 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300255 cloudinit_meta_data: *cloudinit_meta_data
256 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300257
258 interfaces: *interfaces
259 network_config: *network_config
260
261 - name: {{ HOSTNAME_CTL03 }}
262 role: salt_minion
263 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200264 vcpu: !os_env SLAVE_NODE_CPU, 3
265 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300266 boot:
267 - hd
268 cloud_init_volume_name: iso
269 cloud_init_iface_up: ens3
270 volumes:
271 - name: system
272 capacity: !os_env NODE_VOLUME_SIZE, 150
273 backing_store: cloudimage1604
274 format: qcow2
275 - name: cinder
276 capacity: 50
277 format: qcow2
278 - name: iso # Volume with name 'iso' will be used
279 # for store image with cloud-init metadata.
280 capacity: 1
281 format: raw
282 device: cdrom
283 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300284 cloudinit_meta_data: *cloudinit_meta_data
285 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300286
287 interfaces: *interfaces
288 network_config: *network_config
289
290 - name: {{ HOSTNAME_PRX01 }}
291 role: salt_minion
292 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300293 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300294 memory: !os_env SLAVE_NODE_MEMORY, 8192
295 boot:
296 - hd
297 cloud_init_volume_name: iso
298 cloud_init_iface_up: ens3
299 volumes:
300 - name: system
301 capacity: !os_env NODE_VOLUME_SIZE, 150
302 backing_store: cloudimage1604
303 format: qcow2
304 - name: cinder
305 capacity: 50
306 format: qcow2
307 - name: iso # Volume with name 'iso' will be used
308 # for store image with cloud-init metadata.
309 capacity: 1
310 format: raw
311 device: cdrom
312 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300313 cloudinit_meta_data: *cloudinit_meta_data
314 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300315
316 interfaces: *interfaces
317 network_config: *network_config
318
319
320 - name: {{ HOSTNAME_CMP01 }}
321 role: salt_minion
322 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300323 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300324 memory: !os_env SLAVE_NODE_MEMORY, 4096
325 boot:
326 - hd
327 cloud_init_volume_name: iso
328 cloud_init_iface_up: ens3
329 volumes:
330 - name: system
331 capacity: !os_env NODE_VOLUME_SIZE, 150
332 backing_store: cloudimage1604
333 format: qcow2
334 - name: iso # Volume with name 'iso' will be used
335 # for store image with cloud-init metadata.
336 capacity: 1
337 format: raw
338 device: cdrom
339 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300342
343
344 interfaces: &all_interfaces
345 - label: ens3
346 l2_network_device: admin
347 interface_model: *interface_model
348 - label: ens4
349 l2_network_device: private
350 interface_model: *interface_model
351 - label: ens5
352 l2_network_device: tenant
353 interface_model: *interface_model
354 - label: ens6
355 l2_network_device: external
356 interface_model: *interface_model
357 network_config: &all_network_config
358 ens3:
359 networks:
360 - admin
361 ens4:
362 networks:
363 - private
364 ens5:
365 networks:
366 - tenant
367 ens6:
368 networks:
369 - external
370
371 - name: {{ HOSTNAME_CMP02 }}
372 role: salt_minion
373 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300374 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300375 memory: !os_env SLAVE_NODE_MEMORY, 4096
376 boot:
377 - hd
378 cloud_init_volume_name: iso
379 cloud_init_iface_up: ens3
380 volumes:
381 - name: system
382 capacity: !os_env NODE_VOLUME_SIZE, 150
383 backing_store: cloudimage1604
384 format: qcow2
385 - name: iso # Volume with name 'iso' will be used
386 # for store image with cloud-init metadata.
387 capacity: 1
388 format: raw
389 device: cdrom
390 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300391 cloudinit_meta_data: *cloudinit_meta_data
392 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300393
394 interfaces: *all_interfaces
395 network_config: *all_network_config
396
397 - name: {{ HOSTNAME_GTW01 }}
398 role: salt_minion
399 params:
400 vcpu: !os_env SLAVE_NODE_CPU, 1
401 memory: !os_env SLAVE_NODE_MEMORY, 2048
402 boot:
403 - hd
404 cloud_init_volume_name: iso
405 cloud_init_iface_up: ens3
406 volumes:
407 - name: system
408 capacity: !os_env NODE_VOLUME_SIZE, 150
409 backing_store: cloudimage1604
410 format: qcow2
411 - 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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300417 cloudinit_meta_data: *cloudinit_meta_data
418 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300419
420 interfaces: *all_interfaces
421 network_config: *all_network_config