blob: 6563199b93c95c969bd26732845621270a58364c [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
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
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Dennis Dmitrievd9262482017-04-26 13:12:40 +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
122 dhcp: true
123
124 admin:
125 address_pool: admin-pool01
126 dhcp: true
127 forward:
128 mode: nat
129
130 tenant:
131 address_pool: tenant-pool01
132 dhcp: true
133
134 external:
135 address_pool: external-pool01
136 dhcp: true
137 forward:
138 mode: nat
139
140
141 group_volumes:
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300142 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
143 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
144 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
145 format: qcow2
146
147 nodes:
148 - name: {{ HOSTNAME_CFG01 }}
149 role: salt_master
150 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300151 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300152 memory: !os_env SLAVE_NODE_MEMORY, 2048
153 boot:
154 - hd
155 cloud_init_volume_name: iso
156 cloud_init_iface_up: ens3
157 volumes:
158 - name: system
159 capacity: !os_env NODE_VOLUME_SIZE, 150
160 backing_store: cloudimage1604
161 format: qcow2
162 - name: iso # Volume with name 'iso' will be used
163 # for store image with cloud-init metadata.
164 capacity: 1
165 format: raw
166 device: cdrom
167 bus: ide
168 cloudinit_meta_data: *cloudinit_meta_data
169 cloudinit_user_data: *cloudinit_user_data_cfg01
170
171 interfaces:
172 - label: ens3
173 l2_network_device: admin
174 interface_model: *interface_model
175 - label: ens4
176 l2_network_device: private
177 interface_model: *interface_model
178 network_config:
179 ens3:
180 networks:
181 - admin
182 ens4:
183 networks:
184 - private
185
186 - name: {{ HOSTNAME_CTL01 }}
187 role: salt_minion
188 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300189 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300190 memory: !os_env SLAVE_NODE_MEMORY, 8192
191 boot:
192 - hd
193 cloud_init_volume_name: iso
194 cloud_init_iface_up: ens3
195 volumes:
196 - name: system
197 capacity: !os_env NODE_VOLUME_SIZE, 150
198 backing_store: cloudimage1604
199 format: qcow2
200 - name: cinder
201 capacity: 50
202 format: qcow2
203 - name: iso # Volume with name 'iso' will be used
204 # for store image with cloud-init metadata.
205 capacity: 1
206 format: raw
207 device: cdrom
208 bus: ide
209 cloudinit_meta_data: *cloudinit_meta_data
210 cloudinit_user_data: *cloudinit_user_data_1604
211
212 interfaces: &interfaces
213 - label: ens3
214 l2_network_device: admin
215 interface_model: *interface_model
216 - label: ens4
217 l2_network_device: private
218 interface_model: *interface_model
219 network_config: &network_config
220 ens3:
221 networks:
222 - admin
223 ens4:
224 networks:
225 - private
226
227 - name: {{ HOSTNAME_CTL02 }}
228 role: salt_minion
229 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300230 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300231 memory: !os_env SLAVE_NODE_MEMORY, 8192
232 boot:
233 - hd
234 cloud_init_volume_name: iso
235 cloud_init_iface_up: ens3
236 volumes:
237 - name: system
238 capacity: !os_env NODE_VOLUME_SIZE, 150
239 backing_store: cloudimage1604
240 format: qcow2
241 - name: cinder
242 capacity: 50
243 format: qcow2
244 - name: iso # Volume with name 'iso' will be used
245 # for store image with cloud-init metadata.
246 capacity: 1
247 format: raw
248 device: cdrom
249 bus: ide
250 cloudinit_meta_data: *cloudinit_meta_data
251 cloudinit_user_data: *cloudinit_user_data_1604
252
253 interfaces: *interfaces
254 network_config: *network_config
255
256 - name: {{ HOSTNAME_CTL03 }}
257 role: salt_minion
258 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300259 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300260 memory: !os_env SLAVE_NODE_MEMORY, 8192
261 boot:
262 - hd
263 cloud_init_volume_name: iso
264 cloud_init_iface_up: ens3
265 volumes:
266 - name: system
267 capacity: !os_env NODE_VOLUME_SIZE, 150
268 backing_store: cloudimage1604
269 format: qcow2
270 - name: cinder
271 capacity: 50
272 format: qcow2
273 - name: iso # Volume with name 'iso' will be used
274 # for store image with cloud-init metadata.
275 capacity: 1
276 format: raw
277 device: cdrom
278 bus: ide
279 cloudinit_meta_data: *cloudinit_meta_data
280 cloudinit_user_data: *cloudinit_user_data_1604
281
282 interfaces: *interfaces
283 network_config: *network_config
284
285 - name: {{ HOSTNAME_PRX01 }}
286 role: salt_minion
287 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300288 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300289 memory: !os_env SLAVE_NODE_MEMORY, 8192
290 boot:
291 - hd
292 cloud_init_volume_name: iso
293 cloud_init_iface_up: ens3
294 volumes:
295 - name: system
296 capacity: !os_env NODE_VOLUME_SIZE, 150
297 backing_store: cloudimage1604
298 format: qcow2
299 - name: cinder
300 capacity: 50
301 format: qcow2
302 - name: iso # Volume with name 'iso' will be used
303 # for store image with cloud-init metadata.
304 capacity: 1
305 format: raw
306 device: cdrom
307 bus: ide
308 cloudinit_meta_data: *cloudinit_meta_data
309 cloudinit_user_data: *cloudinit_user_data_1604
310
311 interfaces: *interfaces
312 network_config: *network_config
313
314
315 - name: {{ HOSTNAME_CMP01 }}
316 role: salt_minion
317 params:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300318 vcpu: !os_env SLAVE_NODE_CPU, 12
319 memory: !os_env SLAVE_NODE_MEMORY, 8192
320 numa:
321 - cpus: 0,1,2,3,4,5
322 memory: 4096
323 - cpus: 6,7,8,9,10,11
324 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300325 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
340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
342
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:
Dmitry Tyzhnenko24a043f2017-06-01 15:48:40 +0300374 vcpu: !os_env SLAVE_NODE_CPU, 12
375 memory: !os_env SLAVE_NODE_MEMORY, 8192
376 numa:
377 - cpus: 0,1,2,3,4,5
378 memory: 4096
379 - cpus: 6,7,8,9,10,11
380 memory: 4096
Dennis Dmitrievd9262482017-04-26 13:12:40 +0300381 boot:
382 - hd
383 cloud_init_volume_name: iso
384 cloud_init_iface_up: ens3
385 volumes:
386 - name: system
387 capacity: !os_env NODE_VOLUME_SIZE, 150
388 backing_store: cloudimage1604
389 format: qcow2
390 - name: iso # Volume with name 'iso' will be used
391 # for store image with cloud-init metadata.
392 capacity: 1
393 format: raw
394 device: cdrom
395 bus: ide
396 cloudinit_meta_data: *cloudinit_meta_data
397 cloudinit_user_data: *cloudinit_user_data_1604
398
399 interfaces: *all_interfaces
400 network_config: *all_network_config
401
402 - name: {{ HOSTNAME_GTW01 }}
403 role: salt_minion
404 params:
405 vcpu: !os_env SLAVE_NODE_CPU, 1
406 memory: !os_env SLAVE_NODE_MEMORY, 2048
407 boot:
408 - hd
409 cloud_init_volume_name: iso
410 cloud_init_iface_up: ens3
411 volumes:
412 - name: system
413 capacity: !os_env NODE_VOLUME_SIZE, 150
414 backing_store: cloudimage1604
415 format: qcow2
416 - name: iso # Volume with name 'iso' will be used
417 # for store image with cloud-init metadata.
418 capacity: 1
419 format: raw
420 device: cdrom
421 bus: ide
422 cloudinit_meta_data: *cloudinit_meta_data
423 cloudinit_user_data: *cloudinit_user_data_1604
424
425 interfaces: *all_interfaces
426 network_config: *all_network_config