blob: 7f3acfa4d51eae1864a30051345e1deae42f84e3 [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.
144 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
145 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
146 format: qcow2
147
148 nodes:
149 - name: {{ HOSTNAME_CFG01 }}
150 role: salt_master
151 params:
Dennis Dmitriev4cf5d2d2017-08-14 00:12:45 +0300152 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300153 memory: !os_env SLAVE_NODE_MEMORY, 2048
154 boot:
155 - hd
156 cloud_init_volume_name: iso
157 cloud_init_iface_up: ens3
158 volumes:
159 - name: system
160 capacity: !os_env NODE_VOLUME_SIZE, 150
161 backing_store: cloudimage1604
162 format: qcow2
163 - name: iso # Volume with name 'iso' will be used
164 # for store image with cloud-init metadata.
165 capacity: 1
166 format: raw
167 device: cdrom
168 bus: ide
169 cloudinit_meta_data: *cloudinit_meta_data
170 cloudinit_user_data: *cloudinit_user_data_cfg01
171
172 interfaces:
173 - label: ens3
174 l2_network_device: admin
175 interface_model: *interface_model
176 - label: ens4
177 l2_network_device: private
178 interface_model: *interface_model
179 network_config:
180 ens3:
181 networks:
182 - admin
183 ens4:
184 networks:
185 - private
186
187 - name: {{ HOSTNAME_CTL01 }}
188 role: salt_minion
189 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300190 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300191 memory: !os_env SLAVE_NODE_MEMORY, 8192
192 boot:
193 - hd
194 cloud_init_volume_name: iso
195 cloud_init_iface_up: ens3
196 volumes:
197 - name: system
198 capacity: !os_env NODE_VOLUME_SIZE, 150
199 backing_store: cloudimage1604
200 format: qcow2
201 - name: cinder
202 capacity: 50
203 format: qcow2
204 - name: iso # Volume with name 'iso' will be used
205 # for store image with cloud-init metadata.
206 capacity: 1
207 format: raw
208 device: cdrom
209 bus: ide
210 cloudinit_meta_data: *cloudinit_meta_data
211 cloudinit_user_data: *cloudinit_user_data_1604
212
213 interfaces: &interfaces
214 - label: ens3
215 l2_network_device: admin
216 interface_model: *interface_model
217 - label: ens4
218 l2_network_device: private
219 interface_model: *interface_model
220 network_config: &network_config
221 ens3:
222 networks:
223 - admin
224 ens4:
225 networks:
226 - private
227
228 - name: {{ HOSTNAME_CTL02 }}
229 role: salt_minion
230 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300231 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300232 memory: !os_env SLAVE_NODE_MEMORY, 8192
233 boot:
234 - hd
235 cloud_init_volume_name: iso
236 cloud_init_iface_up: ens3
237 volumes:
238 - name: system
239 capacity: !os_env NODE_VOLUME_SIZE, 150
240 backing_store: cloudimage1604
241 format: qcow2
242 - name: cinder
243 capacity: 50
244 format: qcow2
245 - name: iso # Volume with name 'iso' will be used
246 # for store image with cloud-init metadata.
247 capacity: 1
248 format: raw
249 device: cdrom
250 bus: ide
251 cloudinit_meta_data: *cloudinit_meta_data
252 cloudinit_user_data: *cloudinit_user_data_1604
253
254 interfaces: *interfaces
255 network_config: *network_config
256
257 - name: {{ HOSTNAME_CTL03 }}
258 role: salt_minion
259 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300260 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300261 memory: !os_env SLAVE_NODE_MEMORY, 8192
262 boot:
263 - hd
264 cloud_init_volume_name: iso
265 cloud_init_iface_up: ens3
266 volumes:
267 - name: system
268 capacity: !os_env NODE_VOLUME_SIZE, 150
269 backing_store: cloudimage1604
270 format: qcow2
271 - name: cinder
272 capacity: 50
273 format: qcow2
274 - name: iso # Volume with name 'iso' will be used
275 # for store image with cloud-init metadata.
276 capacity: 1
277 format: raw
278 device: cdrom
279 bus: ide
280 cloudinit_meta_data: *cloudinit_meta_data
281 cloudinit_user_data: *cloudinit_user_data_1604
282
283 interfaces: *interfaces
284 network_config: *network_config
285
286 - name: {{ HOSTNAME_PRX01 }}
287 role: salt_minion
288 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300289 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300290 memory: !os_env SLAVE_NODE_MEMORY, 8192
291 boot:
292 - hd
293 cloud_init_volume_name: iso
294 cloud_init_iface_up: ens3
295 volumes:
296 - name: system
297 capacity: !os_env NODE_VOLUME_SIZE, 150
298 backing_store: cloudimage1604
299 format: qcow2
300 - name: cinder
301 capacity: 50
302 format: qcow2
303 - name: iso # Volume with name 'iso' will be used
304 # for store image with cloud-init metadata.
305 capacity: 1
306 format: raw
307 device: cdrom
308 bus: ide
309 cloudinit_meta_data: *cloudinit_meta_data
310 cloudinit_user_data: *cloudinit_user_data_1604
311
312 interfaces: *interfaces
313 network_config: *network_config
314
315
316 - name: {{ HOSTNAME_CMP01 }}
317 role: salt_minion
318 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300319 vcpu: !os_env SLAVE_NODE_CPU, 12
320 memory: !os_env SLAVE_NODE_MEMORY, 8192
321 numa:
322 - cpus: 0,1,2,3,4,5
323 memory: 4096
324 - cpus: 6,7,8,9,10,11
325 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300326 boot:
327 - hd
328 cloud_init_volume_name: iso
329 cloud_init_iface_up: ens3
330 volumes:
331 - name: system
332 capacity: !os_env NODE_VOLUME_SIZE, 150
333 backing_store: cloudimage1604
334 format: qcow2
335 - name: iso # Volume with name 'iso' will be used
336 # for store image with cloud-init metadata.
337 capacity: 1
338 format: raw
339 device: cdrom
340 bus: ide
341 cloudinit_meta_data: *cloudinit_meta_data
342 cloudinit_user_data: *cloudinit_user_data_1604
343
344
345 interfaces: &all_interfaces
346 - label: ens3
347 l2_network_device: admin
348 interface_model: *interface_model
349 - label: ens4
350 l2_network_device: private
351 interface_model: *interface_model
352 - label: ens5
353 l2_network_device: tenant
354 interface_model: *interface_model
355 - label: ens6
356 l2_network_device: external
357 interface_model: *interface_model
358 network_config: &all_network_config
359 ens3:
360 networks:
361 - admin
362 ens4:
363 networks:
364 - private
365 ens5:
366 networks:
367 - tenant
368 ens6:
369 networks:
370 - external
371
372 - name: {{ HOSTNAME_CMP02 }}
373 role: salt_minion
374 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300375 vcpu: !os_env SLAVE_NODE_CPU, 12
376 memory: !os_env SLAVE_NODE_MEMORY, 8192
377 numa:
378 - cpus: 0,1,2,3,4,5
379 memory: 4096
380 - cpus: 6,7,8,9,10,11
381 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300382 boot:
383 - hd
384 cloud_init_volume_name: iso
385 cloud_init_iface_up: ens3
386 volumes:
387 - name: system
388 capacity: !os_env NODE_VOLUME_SIZE, 150
389 backing_store: cloudimage1604
390 format: qcow2
391 - name: iso # Volume with name 'iso' will be used
392 # for store image with cloud-init metadata.
393 capacity: 1
394 format: raw
395 device: cdrom
396 bus: ide
397 cloudinit_meta_data: *cloudinit_meta_data
398 cloudinit_user_data: *cloudinit_user_data_1604
399
400 interfaces: *all_interfaces
401 network_config: *all_network_config
402
403 - name: {{ HOSTNAME_GTW01 }}
404 role: salt_minion
405 params:
406 vcpu: !os_env SLAVE_NODE_CPU, 1
407 memory: !os_env SLAVE_NODE_MEMORY, 2048
408 boot:
409 - hd
410 cloud_init_volume_name: iso
411 cloud_init_iface_up: ens3
412 volumes:
413 - name: system
414 capacity: !os_env NODE_VOLUME_SIZE, 150
415 backing_store: cloudimage1604
416 format: qcow2
417 - name: iso # Volume with name 'iso' will be used
418 # for store image with cloud-init metadata.
419 capacity: 1
420 format: raw
421 device: cdrom
422 bus: ide
423 cloudinit_meta_data: *cloudinit_meta_data
424 cloudinit_user_data: *cloudinit_user_data_1604
425
426 interfaces: *all_interfaces
427 network_config: *all_network_config