blob: 4f7b55f85049de0d955a03f25486e95c24bac22a [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
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'stable') %}
3
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
15{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs-dpdk') + '.local' %}
16{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
22{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
24
25template:
26 devops_settings:
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030027 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs-dpdk_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Dennis Dmitrievd9262482017-04-26 13:12:40 +030028
29 address_pools:
30 private-pool01:
31 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
32 params:
33 ip_reserved:
34 gateway: +1
35 l2_network_device: +1
36 default_{{ HOSTNAME_CFG01 }}: +100
37 default_{{ HOSTNAME_CTL01 }}: +101
38 default_{{ HOSTNAME_CTL02 }}: +102
39 default_{{ HOSTNAME_CTL03 }}: +103
40 default_{{ HOSTNAME_CMP01 }}: +105
41 default_{{ HOSTNAME_CMP02 }}: +106
42 default_{{ HOSTNAME_GTW01 }}: +110
43 default_{{ HOSTNAME_PRX01 }}: +121
44 ip_ranges:
45 dhcp: [+90, -10]
46
47 admin-pool01:
48 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
49 params:
50 ip_reserved:
51 gateway: +1
52 l2_network_device: +1
53 default_{{ HOSTNAME_CFG01 }}: +100
54 default_{{ HOSTNAME_CTL01 }}: +101
55 default_{{ HOSTNAME_CTL02 }}: +102
56 default_{{ HOSTNAME_CTL03 }}: +103
57 default_{{ HOSTNAME_CMP01 }}: +105
58 default_{{ HOSTNAME_CMP02 }}: +106
59 default_{{ HOSTNAME_GTW01 }}: +110
60 default_{{ HOSTNAME_PRX01 }}: +121
61 ip_ranges:
62 dhcp: [+90, -10]
63
64 tenant-pool01:
65 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
66 params:
67 ip_reserved:
68 gateway: +1
69 l2_network_device: +1
70 default_{{ HOSTNAME_CFG01 }}: +100
71 default_{{ HOSTNAME_CTL01 }}: +101
72 default_{{ HOSTNAME_CTL02 }}: +102
73 default_{{ HOSTNAME_CTL03 }}: +103
74 default_{{ HOSTNAME_CMP01 }}: +105
75 default_{{ HOSTNAME_CMP02 }}: +106
76 default_{{ HOSTNAME_GTW01 }}: +110
77 default_{{ HOSTNAME_PRX01 }}: +121
78 ip_ranges:
79 dhcp: [+10, -10]
80
81 external-pool01:
82 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
83 params:
84 ip_reserved:
85 gateway: +1
86 l2_network_device: +1
87 default_{{ HOSTNAME_CFG01 }}: +100
88 default_{{ HOSTNAME_CTL01 }}: +101
89 default_{{ HOSTNAME_CTL02 }}: +102
90 default_{{ HOSTNAME_CTL03 }}: +103
91 default_{{ HOSTNAME_CMP01 }}: +105
92 default_{{ HOSTNAME_CMP02 }}: +106
93 default_{{ HOSTNAME_GTW01 }}: +110
94 default_{{ HOSTNAME_PRX01 }}: +121
95 ip_ranges:
96 dhcp: [+10, -10]
97
98
99 groups:
100 - name: default
101 driver:
102 name: devops.driver.libvirt
103 params:
104 connection_string: !os_env CONNECTION_STRING, qemu:///system
105 storage_pool_name: !os_env STORAGE_POOL_NAME, default
106 stp: False
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300107 hpet: True
108 use_hugepages: True
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300109 enable_acpi: true
110 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
111
112 network_pools:
113 admin: admin-pool01
114 private: private-pool01
115 tenant: tenant-pool01
116 external: external-pool01
117
118 l2_network_devices:
119 private:
120 address_pool: private-pool01
121 dhcp: true
122
123 admin:
124 address_pool: admin-pool01
125 dhcp: true
126 forward:
127 mode: nat
128
129 tenant:
130 address_pool: tenant-pool01
131 dhcp: true
132
133 external:
134 address_pool: external-pool01
135 dhcp: true
136 forward:
137 mode: nat
138
139
140 group_volumes:
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300141 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
142 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
143 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
144 format: qcow2
145
146 nodes:
147 - name: {{ HOSTNAME_CFG01 }}
148 role: salt_master
149 params:
150 vcpu: !os_env SLAVE_NODE_CPU, 4
151 memory: !os_env SLAVE_NODE_MEMORY, 2048
152 boot:
153 - hd
154 cloud_init_volume_name: iso
155 cloud_init_iface_up: ens3
156 volumes:
157 - name: system
158 capacity: !os_env NODE_VOLUME_SIZE, 150
159 backing_store: cloudimage1604
160 format: qcow2
161 - name: iso # Volume with name 'iso' will be used
162 # for store image with cloud-init metadata.
163 capacity: 1
164 format: raw
165 device: cdrom
166 bus: ide
167 cloudinit_meta_data: *cloudinit_meta_data
168 cloudinit_user_data: *cloudinit_user_data_cfg01
169
170 interfaces:
171 - label: ens3
172 l2_network_device: admin
173 interface_model: *interface_model
174 - label: ens4
175 l2_network_device: private
176 interface_model: *interface_model
177 network_config:
178 ens3:
179 networks:
180 - admin
181 ens4:
182 networks:
183 - private
184
185 - name: {{ HOSTNAME_CTL01 }}
186 role: salt_minion
187 params:
188 vcpu: !os_env SLAVE_NODE_CPU, 4
189 memory: !os_env SLAVE_NODE_MEMORY, 8192
190 boot:
191 - hd
192 cloud_init_volume_name: iso
193 cloud_init_iface_up: ens3
194 volumes:
195 - name: system
196 capacity: !os_env NODE_VOLUME_SIZE, 150
197 backing_store: cloudimage1604
198 format: qcow2
199 - name: cinder
200 capacity: 50
201 format: qcow2
202 - name: iso # Volume with name 'iso' will be used
203 # for store image with cloud-init metadata.
204 capacity: 1
205 format: raw
206 device: cdrom
207 bus: ide
208 cloudinit_meta_data: *cloudinit_meta_data
209 cloudinit_user_data: *cloudinit_user_data_1604
210
211 interfaces: &interfaces
212 - label: ens3
213 l2_network_device: admin
214 interface_model: *interface_model
215 - label: ens4
216 l2_network_device: private
217 interface_model: *interface_model
218 network_config: &network_config
219 ens3:
220 networks:
221 - admin
222 ens4:
223 networks:
224 - private
225
226 - name: {{ HOSTNAME_CTL02 }}
227 role: salt_minion
228 params:
229 vcpu: !os_env SLAVE_NODE_CPU, 4
230 memory: !os_env SLAVE_NODE_MEMORY, 8192
231 boot:
232 - hd
233 cloud_init_volume_name: iso
234 cloud_init_iface_up: ens3
235 volumes:
236 - name: system
237 capacity: !os_env NODE_VOLUME_SIZE, 150
238 backing_store: cloudimage1604
239 format: qcow2
240 - name: cinder
241 capacity: 50
242 format: qcow2
243 - name: iso # Volume with name 'iso' will be used
244 # for store image with cloud-init metadata.
245 capacity: 1
246 format: raw
247 device: cdrom
248 bus: ide
249 cloudinit_meta_data: *cloudinit_meta_data
250 cloudinit_user_data: *cloudinit_user_data_1604
251
252 interfaces: *interfaces
253 network_config: *network_config
254
255 - name: {{ HOSTNAME_CTL03 }}
256 role: salt_minion
257 params:
258 vcpu: !os_env SLAVE_NODE_CPU, 4
259 memory: !os_env SLAVE_NODE_MEMORY, 8192
260 boot:
261 - hd
262 cloud_init_volume_name: iso
263 cloud_init_iface_up: ens3
264 volumes:
265 - name: system
266 capacity: !os_env NODE_VOLUME_SIZE, 150
267 backing_store: cloudimage1604
268 format: qcow2
269 - name: cinder
270 capacity: 50
271 format: qcow2
272 - name: iso # Volume with name 'iso' will be used
273 # for store image with cloud-init metadata.
274 capacity: 1
275 format: raw
276 device: cdrom
277 bus: ide
278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
280
281 interfaces: *interfaces
282 network_config: *network_config
283
284 - name: {{ HOSTNAME_PRX01 }}
285 role: salt_minion
286 params:
287 vcpu: !os_env SLAVE_NODE_CPU, 4
288 memory: !os_env SLAVE_NODE_MEMORY, 8192
289 boot:
290 - hd
291 cloud_init_volume_name: iso
292 cloud_init_iface_up: ens3
293 volumes:
294 - name: system
295 capacity: !os_env NODE_VOLUME_SIZE, 150
296 backing_store: cloudimage1604
297 format: qcow2
298 - name: cinder
299 capacity: 50
300 format: qcow2
301 - name: iso # Volume with name 'iso' will be used
302 # for store image with cloud-init metadata.
303 capacity: 1
304 format: raw
305 device: cdrom
306 bus: ide
307 cloudinit_meta_data: *cloudinit_meta_data
308 cloudinit_user_data: *cloudinit_user_data_1604
309
310 interfaces: *interfaces
311 network_config: *network_config
312
313
314 - name: {{ HOSTNAME_CMP01 }}
315 role: salt_minion
316 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300317 vcpu: !os_env SLAVE_NODE_CPU, 12
318 memory: !os_env SLAVE_NODE_MEMORY, 8192
319 numa:
320 - cpus: 0,1,2,3,4,5
321 memory: 4096
322 - cpus: 6,7,8,9,10,11
323 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300324 boot:
325 - hd
326 cloud_init_volume_name: iso
327 cloud_init_iface_up: ens3
328 volumes:
329 - name: system
330 capacity: !os_env NODE_VOLUME_SIZE, 150
331 backing_store: cloudimage1604
332 format: qcow2
333 - name: iso # Volume with name 'iso' will be used
334 # for store image with cloud-init metadata.
335 capacity: 1
336 format: raw
337 device: cdrom
338 bus: ide
339 cloudinit_meta_data: *cloudinit_meta_data
340 cloudinit_user_data: *cloudinit_user_data_1604
341
342
343 interfaces: &all_interfaces
344 - label: ens3
345 l2_network_device: admin
346 interface_model: *interface_model
347 - label: ens4
348 l2_network_device: private
349 interface_model: *interface_model
350 - label: ens5
351 l2_network_device: tenant
352 interface_model: *interface_model
353 - label: ens6
354 l2_network_device: external
355 interface_model: *interface_model
356 network_config: &all_network_config
357 ens3:
358 networks:
359 - admin
360 ens4:
361 networks:
362 - private
363 ens5:
364 networks:
365 - tenant
366 ens6:
367 networks:
368 - external
369
370 - name: {{ HOSTNAME_CMP02 }}
371 role: salt_minion
372 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300373 vcpu: !os_env SLAVE_NODE_CPU, 12
374 memory: !os_env SLAVE_NODE_MEMORY, 8192
375 numa:
376 - cpus: 0,1,2,3,4,5
377 memory: 4096
378 - cpus: 6,7,8,9,10,11
379 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300380 boot:
381 - hd
382 cloud_init_volume_name: iso
383 cloud_init_iface_up: ens3
384 volumes:
385 - name: system
386 capacity: !os_env NODE_VOLUME_SIZE, 150
387 backing_store: cloudimage1604
388 format: qcow2
389 - name: iso # Volume with name 'iso' will be used
390 # for store image with cloud-init metadata.
391 capacity: 1
392 format: raw
393 device: cdrom
394 bus: ide
395 cloudinit_meta_data: *cloudinit_meta_data
396 cloudinit_user_data: *cloudinit_user_data_1604
397
398 interfaces: *all_interfaces
399 network_config: *all_network_config
400
401 - name: {{ HOSTNAME_GTW01 }}
402 role: salt_minion
403 params:
404 vcpu: !os_env SLAVE_NODE_CPU, 1
405 memory: !os_env SLAVE_NODE_MEMORY, 2048
406 boot:
407 - hd
408 cloud_init_volume_name: iso
409 cloud_init_iface_up: ens3
410 volumes:
411 - name: system
412 capacity: !os_env NODE_VOLUME_SIZE, 150
413 backing_store: cloudimage1604
414 format: qcow2
415 - name: iso # Volume with name 'iso' will be used
416 # for store image with cloud-init metadata.
417 capacity: 1
418 format: raw
419 device: cdrom
420 bus: ide
421 cloudinit_meta_data: *cloudinit_meta_data
422 cloudinit_user_data: *cloudinit_user_data_1604
423
424 interfaces: *all_interfaces
425 network_config: *all_network_config