blob: c396bcda59116f010ce72aa111828f4272bdf642 [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-dpdk/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-ovs-dpdk/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-ovs-dpdk/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitrievd9262482017-04-26 13:12:40 +03007
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
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs-dpdk') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Dennis Dmitrievd9262482017-04-26 13:12:40 +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 Dmitrievb4b5c102017-05-10 17:09:06 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs-dpdk_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Dennis Dmitrievd9262482017-04-26 13:12:40 +030029
30 address_pools:
31 private-pool01:
32 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
33 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
37 default_{{ HOSTNAME_CFG01 }}: +100
38 default_{{ HOSTNAME_CTL01 }}: +101
39 default_{{ HOSTNAME_CTL02 }}: +102
40 default_{{ HOSTNAME_CTL03 }}: +103
41 default_{{ HOSTNAME_CMP01 }}: +105
42 default_{{ HOSTNAME_CMP02 }}: +106
43 default_{{ HOSTNAME_GTW01 }}: +110
44 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
46 dhcp: [+90, -10]
47
48 admin-pool01:
49 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
50 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030054 default_{{ HOSTNAME_CFG01 }}: +90
Dennis Dmitrievd9262482017-04-26 13:12:40 +030055 default_{{ HOSTNAME_CTL01 }}: +101
56 default_{{ HOSTNAME_CTL02 }}: +102
57 default_{{ HOSTNAME_CTL03 }}: +103
58 default_{{ HOSTNAME_CMP01 }}: +105
59 default_{{ HOSTNAME_CMP02 }}: +106
60 default_{{ HOSTNAME_GTW01 }}: +110
61 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
63 dhcp: [+90, -10]
64
65 tenant-pool01:
66 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
67 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:
83 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
84 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
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300108 hpet: True
109 use_hugepages: True
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300110 enable_acpi: true
111 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300112 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300113
114 network_pools:
115 admin: admin-pool01
116 private: private-pool01
117 tenant: tenant-pool01
118 external: external-pool01
119
120 l2_network_devices:
121 private:
122 address_pool: private-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200123 dhcp: false
124 forward:
125 mode: route
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300126
127 admin:
128 address_pool: admin-pool01
129 dhcp: true
130 forward:
131 mode: nat
132
133 tenant:
134 address_pool: tenant-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200135 dhcp: false
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300136
137 external:
138 address_pool: external-pool01
139 dhcp: true
140 forward:
141 mode: nat
142
143
144 group_volumes:
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300145 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200146 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
147 format: qcow2
148
149 - name: cfg01_day01_image # Pre-configured day01 image
150 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300151 format: qcow2
152
153 nodes:
154 - name: {{ HOSTNAME_CFG01 }}
155 role: salt_master
156 params:
Dennis Dmitriev4cf5d2d2017-08-14 00:12:45 +0300157 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300158 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300159 boot:
160 - hd
161 cloud_init_volume_name: iso
162 cloud_init_iface_up: ens3
163 volumes:
164 - name: system
165 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200166 backing_store: cfg01_day01_image
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300167 format: qcow2
168 - name: iso # Volume with name 'iso' will be used
169 # for store image with cloud-init metadata.
170 capacity: 1
171 format: raw
172 device: cdrom
173 bus: ide
174 cloudinit_meta_data: *cloudinit_meta_data
175 cloudinit_user_data: *cloudinit_user_data_cfg01
176
177 interfaces:
178 - label: ens3
179 l2_network_device: admin
180 interface_model: *interface_model
181 - label: ens4
182 l2_network_device: private
183 interface_model: *interface_model
184 network_config:
185 ens3:
186 networks:
187 - admin
188 ens4:
189 networks:
190 - private
191
192 - name: {{ HOSTNAME_CTL01 }}
193 role: salt_minion
194 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300195 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300196 memory: !os_env SLAVE_NODE_MEMORY, 8192
197 boot:
198 - hd
199 cloud_init_volume_name: iso
200 cloud_init_iface_up: ens3
201 volumes:
202 - name: system
203 capacity: !os_env NODE_VOLUME_SIZE, 150
204 backing_store: cloudimage1604
205 format: qcow2
206 - name: cinder
207 capacity: 50
208 format: qcow2
209 - name: iso # Volume with name 'iso' will be used
210 # for store image with cloud-init metadata.
211 capacity: 1
212 format: raw
213 device: cdrom
214 bus: ide
215 cloudinit_meta_data: *cloudinit_meta_data
216 cloudinit_user_data: *cloudinit_user_data_1604
217
218 interfaces: &interfaces
219 - label: ens3
220 l2_network_device: admin
221 interface_model: *interface_model
222 - label: ens4
223 l2_network_device: private
224 interface_model: *interface_model
225 network_config: &network_config
226 ens3:
227 networks:
228 - admin
229 ens4:
230 networks:
231 - private
232
233 - name: {{ HOSTNAME_CTL02 }}
234 role: salt_minion
235 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300236 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300237 memory: !os_env SLAVE_NODE_MEMORY, 8192
238 boot:
239 - hd
240 cloud_init_volume_name: iso
241 cloud_init_iface_up: ens3
242 volumes:
243 - name: system
244 capacity: !os_env NODE_VOLUME_SIZE, 150
245 backing_store: cloudimage1604
246 format: qcow2
247 - name: cinder
248 capacity: 50
249 format: qcow2
250 - name: iso # Volume with name 'iso' will be used
251 # for store image with cloud-init metadata.
252 capacity: 1
253 format: raw
254 device: cdrom
255 bus: ide
256 cloudinit_meta_data: *cloudinit_meta_data
257 cloudinit_user_data: *cloudinit_user_data_1604
258
259 interfaces: *interfaces
260 network_config: *network_config
261
262 - name: {{ HOSTNAME_CTL03 }}
263 role: salt_minion
264 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300265 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300266 memory: !os_env SLAVE_NODE_MEMORY, 8192
267 boot:
268 - hd
269 cloud_init_volume_name: iso
270 cloud_init_iface_up: ens3
271 volumes:
272 - name: system
273 capacity: !os_env NODE_VOLUME_SIZE, 150
274 backing_store: cloudimage1604
275 format: qcow2
276 - name: cinder
277 capacity: 50
278 format: qcow2
279 - name: iso # Volume with name 'iso' will be used
280 # for store image with cloud-init metadata.
281 capacity: 1
282 format: raw
283 device: cdrom
284 bus: ide
285 cloudinit_meta_data: *cloudinit_meta_data
286 cloudinit_user_data: *cloudinit_user_data_1604
287
288 interfaces: *interfaces
289 network_config: *network_config
290
291 - name: {{ HOSTNAME_PRX01 }}
292 role: salt_minion
293 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300294 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300295 memory: !os_env SLAVE_NODE_MEMORY, 8192
296 boot:
297 - hd
298 cloud_init_volume_name: iso
299 cloud_init_iface_up: ens3
300 volumes:
301 - name: system
302 capacity: !os_env NODE_VOLUME_SIZE, 150
303 backing_store: cloudimage1604
304 format: qcow2
305 - name: cinder
306 capacity: 50
307 format: qcow2
308 - name: iso # Volume with name 'iso' will be used
309 # for store image with cloud-init metadata.
310 capacity: 1
311 format: raw
312 device: cdrom
313 bus: ide
314 cloudinit_meta_data: *cloudinit_meta_data
315 cloudinit_user_data: *cloudinit_user_data_1604
316
317 interfaces: *interfaces
318 network_config: *network_config
319
320
321 - name: {{ HOSTNAME_CMP01 }}
322 role: salt_minion
323 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300324 vcpu: !os_env SLAVE_NODE_CPU, 12
325 memory: !os_env SLAVE_NODE_MEMORY, 8192
326 numa:
327 - cpus: 0,1,2,3,4,5
328 memory: 4096
329 - cpus: 6,7,8,9,10,11
330 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300331 boot:
332 - hd
333 cloud_init_volume_name: iso
334 cloud_init_iface_up: ens3
335 volumes:
336 - name: system
337 capacity: !os_env NODE_VOLUME_SIZE, 150
338 backing_store: cloudimage1604
339 format: qcow2
340 - name: iso # Volume with name 'iso' will be used
341 # for store image with cloud-init metadata.
342 capacity: 1
343 format: raw
344 device: cdrom
345 bus: ide
346 cloudinit_meta_data: *cloudinit_meta_data
347 cloudinit_user_data: *cloudinit_user_data_1604
348
349
350 interfaces: &all_interfaces
351 - label: ens3
352 l2_network_device: admin
353 interface_model: *interface_model
354 - label: ens4
355 l2_network_device: private
356 interface_model: *interface_model
357 - label: ens5
358 l2_network_device: tenant
359 interface_model: *interface_model
360 - label: ens6
361 l2_network_device: external
362 interface_model: *interface_model
363 network_config: &all_network_config
364 ens3:
365 networks:
366 - admin
367 ens4:
368 networks:
369 - private
370 ens5:
371 networks:
372 - tenant
373 ens6:
374 networks:
375 - external
376
377 - name: {{ HOSTNAME_CMP02 }}
378 role: salt_minion
379 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300380 vcpu: !os_env SLAVE_NODE_CPU, 12
381 memory: !os_env SLAVE_NODE_MEMORY, 8192
382 numa:
383 - cpus: 0,1,2,3,4,5
384 memory: 4096
385 - cpus: 6,7,8,9,10,11
386 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300387 boot:
388 - hd
389 cloud_init_volume_name: iso
390 cloud_init_iface_up: ens3
391 volumes:
392 - name: system
393 capacity: !os_env NODE_VOLUME_SIZE, 150
394 backing_store: cloudimage1604
395 format: qcow2
396 - name: iso # Volume with name 'iso' will be used
397 # for store image with cloud-init metadata.
398 capacity: 1
399 format: raw
400 device: cdrom
401 bus: ide
402 cloudinit_meta_data: *cloudinit_meta_data
403 cloudinit_user_data: *cloudinit_user_data_1604
404
405 interfaces: *all_interfaces
406 network_config: *all_network_config
407
408 - name: {{ HOSTNAME_GTW01 }}
409 role: salt_minion
410 params:
411 vcpu: !os_env SLAVE_NODE_CPU, 1
412 memory: !os_env SLAVE_NODE_MEMORY, 2048
413 boot:
414 - hd
415 cloud_init_volume_name: iso
416 cloud_init_iface_up: ens3
417 volumes:
418 - name: system
419 capacity: !os_env NODE_VOLUME_SIZE, 150
420 backing_store: cloudimage1604
421 format: qcow2
422 - name: iso # Volume with name 'iso' will be used
423 # for store image with cloud-init metadata.
424 capacity: 1
425 format: raw
426 device: cdrom
427 bus: ide
428 cloudinit_meta_data: *cloudinit_meta_data
429 cloudinit_user_data: *cloudinit_user_data_1604
430
431 interfaces: *all_interfaces
432 network_config: *all_network_config