blob: 888786e68dfa3df9d75df71b5713b71790c90c9b [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
123 dhcp: true
124
125 admin:
126 address_pool: admin-pool01
127 dhcp: true
128 forward:
129 mode: nat
130
131 tenant:
132 address_pool: tenant-pool01
133 dhcp: true
134
135 external:
136 address_pool: external-pool01
137 dhcp: true
138 forward:
139 mode: nat
140
141
142 group_volumes:
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300143 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200144 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
145 format: qcow2
146
147 - name: cfg01_day01_image # Pre-configured day01 image
148 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 +0300149 format: qcow2
150
151 nodes:
152 - name: {{ HOSTNAME_CFG01 }}
153 role: salt_master
154 params:
Dennis Dmitriev4cf5d2d2017-08-14 00:12:45 +0300155 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300156 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300157 boot:
158 - hd
159 cloud_init_volume_name: iso
160 cloud_init_iface_up: ens3
161 volumes:
162 - name: system
163 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200164 backing_store: cfg01_day01_image
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300165 format: qcow2
166 - name: iso # Volume with name 'iso' will be used
167 # for store image with cloud-init metadata.
168 capacity: 1
169 format: raw
170 device: cdrom
171 bus: ide
172 cloudinit_meta_data: *cloudinit_meta_data
173 cloudinit_user_data: *cloudinit_user_data_cfg01
174
175 interfaces:
176 - label: ens3
177 l2_network_device: admin
178 interface_model: *interface_model
179 - label: ens4
180 l2_network_device: private
181 interface_model: *interface_model
182 network_config:
183 ens3:
184 networks:
185 - admin
186 ens4:
187 networks:
188 - private
189
190 - name: {{ HOSTNAME_CTL01 }}
191 role: salt_minion
192 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300193 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300194 memory: !os_env SLAVE_NODE_MEMORY, 8192
195 boot:
196 - hd
197 cloud_init_volume_name: iso
198 cloud_init_iface_up: ens3
199 volumes:
200 - name: system
201 capacity: !os_env NODE_VOLUME_SIZE, 150
202 backing_store: cloudimage1604
203 format: qcow2
204 - name: cinder
205 capacity: 50
206 format: qcow2
207 - name: iso # Volume with name 'iso' will be used
208 # for store image with cloud-init metadata.
209 capacity: 1
210 format: raw
211 device: cdrom
212 bus: ide
213 cloudinit_meta_data: *cloudinit_meta_data
214 cloudinit_user_data: *cloudinit_user_data_1604
215
216 interfaces: &interfaces
217 - label: ens3
218 l2_network_device: admin
219 interface_model: *interface_model
220 - label: ens4
221 l2_network_device: private
222 interface_model: *interface_model
223 network_config: &network_config
224 ens3:
225 networks:
226 - admin
227 ens4:
228 networks:
229 - private
230
231 - name: {{ HOSTNAME_CTL02 }}
232 role: salt_minion
233 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300234 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300235 memory: !os_env SLAVE_NODE_MEMORY, 8192
236 boot:
237 - hd
238 cloud_init_volume_name: iso
239 cloud_init_iface_up: ens3
240 volumes:
241 - name: system
242 capacity: !os_env NODE_VOLUME_SIZE, 150
243 backing_store: cloudimage1604
244 format: qcow2
245 - name: cinder
246 capacity: 50
247 format: qcow2
248 - name: iso # Volume with name 'iso' will be used
249 # for store image with cloud-init metadata.
250 capacity: 1
251 format: raw
252 device: cdrom
253 bus: ide
254 cloudinit_meta_data: *cloudinit_meta_data
255 cloudinit_user_data: *cloudinit_user_data_1604
256
257 interfaces: *interfaces
258 network_config: *network_config
259
260 - name: {{ HOSTNAME_CTL03 }}
261 role: salt_minion
262 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300263 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300264 memory: !os_env SLAVE_NODE_MEMORY, 8192
265 boot:
266 - hd
267 cloud_init_volume_name: iso
268 cloud_init_iface_up: ens3
269 volumes:
270 - name: system
271 capacity: !os_env NODE_VOLUME_SIZE, 150
272 backing_store: cloudimage1604
273 format: qcow2
274 - name: cinder
275 capacity: 50
276 format: qcow2
277 - name: iso # Volume with name 'iso' will be used
278 # for store image with cloud-init metadata.
279 capacity: 1
280 format: raw
281 device: cdrom
282 bus: ide
283 cloudinit_meta_data: *cloudinit_meta_data
284 cloudinit_user_data: *cloudinit_user_data_1604
285
286 interfaces: *interfaces
287 network_config: *network_config
288
289 - name: {{ HOSTNAME_PRX01 }}
290 role: salt_minion
291 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300292 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300293 memory: !os_env SLAVE_NODE_MEMORY, 8192
294 boot:
295 - hd
296 cloud_init_volume_name: iso
297 cloud_init_iface_up: ens3
298 volumes:
299 - name: system
300 capacity: !os_env NODE_VOLUME_SIZE, 150
301 backing_store: cloudimage1604
302 format: qcow2
303 - name: cinder
304 capacity: 50
305 format: qcow2
306 - name: iso # Volume with name 'iso' will be used
307 # for store image with cloud-init metadata.
308 capacity: 1
309 format: raw
310 device: cdrom
311 bus: ide
312 cloudinit_meta_data: *cloudinit_meta_data
313 cloudinit_user_data: *cloudinit_user_data_1604
314
315 interfaces: *interfaces
316 network_config: *network_config
317
318
319 - name: {{ HOSTNAME_CMP01 }}
320 role: salt_minion
321 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300322 vcpu: !os_env SLAVE_NODE_CPU, 12
323 memory: !os_env SLAVE_NODE_MEMORY, 8192
324 numa:
325 - cpus: 0,1,2,3,4,5
326 memory: 4096
327 - cpus: 6,7,8,9,10,11
328 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300329 boot:
330 - hd
331 cloud_init_volume_name: iso
332 cloud_init_iface_up: ens3
333 volumes:
334 - name: system
335 capacity: !os_env NODE_VOLUME_SIZE, 150
336 backing_store: cloudimage1604
337 format: qcow2
338 - name: iso # Volume with name 'iso' will be used
339 # for store image with cloud-init metadata.
340 capacity: 1
341 format: raw
342 device: cdrom
343 bus: ide
344 cloudinit_meta_data: *cloudinit_meta_data
345 cloudinit_user_data: *cloudinit_user_data_1604
346
347
348 interfaces: &all_interfaces
349 - label: ens3
350 l2_network_device: admin
351 interface_model: *interface_model
352 - label: ens4
353 l2_network_device: private
354 interface_model: *interface_model
355 - label: ens5
356 l2_network_device: tenant
357 interface_model: *interface_model
358 - label: ens6
359 l2_network_device: external
360 interface_model: *interface_model
361 network_config: &all_network_config
362 ens3:
363 networks:
364 - admin
365 ens4:
366 networks:
367 - private
368 ens5:
369 networks:
370 - tenant
371 ens6:
372 networks:
373 - external
374
375 - name: {{ HOSTNAME_CMP02 }}
376 role: salt_minion
377 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300378 vcpu: !os_env SLAVE_NODE_CPU, 12
379 memory: !os_env SLAVE_NODE_MEMORY, 8192
380 numa:
381 - cpus: 0,1,2,3,4,5
382 memory: 4096
383 - cpus: 6,7,8,9,10,11
384 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300385 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
394 - name: iso # Volume with name 'iso' will be used
395 # for store image with cloud-init metadata.
396 capacity: 1
397 format: raw
398 device: cdrom
399 bus: ide
400 cloudinit_meta_data: *cloudinit_meta_data
401 cloudinit_user_data: *cloudinit_user_data_1604
402
403 interfaces: *all_interfaces
404 network_config: *all_network_config
405
406 - name: {{ HOSTNAME_GTW01 }}
407 role: salt_minion
408 params:
409 vcpu: !os_env SLAVE_NODE_CPU, 1
410 memory: !os_env SLAVE_NODE_MEMORY, 2048
411 boot:
412 - hd
413 cloud_init_volume_name: iso
414 cloud_init_iface_up: ens3
415 volumes:
416 - name: system
417 capacity: !os_env NODE_VOLUME_SIZE, 150
418 backing_store: cloudimage1604
419 format: qcow2
420 - name: iso # Volume with name 'iso' will be used
421 # for store image with cloud-init metadata.
422 capacity: 1
423 format: raw
424 device: cdrom
425 bus: ide
426 cloudinit_meta_data: *cloudinit_meta_data
427 cloudinit_user_data: *cloudinit_user_data_1604
428
429 interfaces: *all_interfaces
430 network_config: *all_network_config