blob: 40ea763cdbfef93caab8234e64b9583884155866 [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/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03008---
9aliases:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030010 - &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 }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +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 Dmitrievab83ea42017-05-12 16:52:45 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030029
30 address_pools:
31 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030032 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030033 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030049 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030050 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030054 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030066 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030067 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030083 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030084 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
108 hpet: False
109 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
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +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
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200122 dhcp: false
123 forward:
124 mode: route
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300125
126 admin:
127 address_pool: admin-pool01
128 dhcp: true
129 forward:
130 mode: nat
131
132 tenant:
133 address_pool: tenant-pool01
Dennis Dmitriev68ef8ff2018-03-22 18:13:36 +0200134 dhcp: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300135
136 external:
137 address_pool: external-pool01
138 dhcp: true
139 forward:
140 mode: nat
141
142
143 group_volumes:
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300144 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
145 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
146 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
147 format: qcow2
148
149 nodes:
150 - name: {{ HOSTNAME_CFG01 }}
151 role: salt_master
152 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300153 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300154 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300155 boot:
156 - hd
157 cloud_init_volume_name: iso
158 cloud_init_iface_up: ens3
159 volumes:
160 - name: system
161 capacity: !os_env NODE_VOLUME_SIZE, 150
162 backing_store: cloudimage1604
163 format: qcow2
164 - name: iso # Volume with name 'iso' will be used
165 # for store image with cloud-init metadata.
166 capacity: 1
167 format: raw
168 device: cdrom
169 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300170 cloudinit_meta_data: *cloudinit_meta_data
171 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300172
173 interfaces:
174 - label: ens3
175 l2_network_device: admin
176 interface_model: *interface_model
177 - label: ens4
178 l2_network_device: private
179 interface_model: *interface_model
180 network_config:
181 ens3:
182 networks:
183 - admin
184 ens4:
185 networks:
186 - private
187
188 - name: {{ HOSTNAME_CTL01 }}
189 role: salt_minion
190 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300191 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300192 memory: !os_env SLAVE_NODE_MEMORY, 8192
193 boot:
194 - hd
195 cloud_init_volume_name: iso
196 cloud_init_iface_up: ens3
197 volumes:
198 - name: system
199 capacity: !os_env NODE_VOLUME_SIZE, 150
200 backing_store: cloudimage1604
201 format: qcow2
202 - name: cinder
203 capacity: 50
204 format: qcow2
205 - name: iso # Volume with name 'iso' will be used
206 # for store image with cloud-init metadata.
207 capacity: 1
208 format: raw
209 device: cdrom
210 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300211 cloudinit_meta_data: *cloudinit_meta_data
212 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300213
214 interfaces: &interfaces
215 - label: ens3
216 l2_network_device: admin
217 interface_model: *interface_model
218 - label: ens4
219 l2_network_device: private
220 interface_model: *interface_model
221 network_config: &network_config
222 ens3:
223 networks:
224 - admin
225 ens4:
226 networks:
227 - private
228
229 - name: {{ HOSTNAME_CTL02 }}
230 role: salt_minion
231 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300232 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300233 memory: !os_env SLAVE_NODE_MEMORY, 8192
234 boot:
235 - hd
236 cloud_init_volume_name: iso
237 cloud_init_iface_up: ens3
238 volumes:
239 - name: system
240 capacity: !os_env NODE_VOLUME_SIZE, 150
241 backing_store: cloudimage1604
242 format: qcow2
243 - name: cinder
244 capacity: 50
245 format: qcow2
246 - name: iso # Volume with name 'iso' will be used
247 # for store image with cloud-init metadata.
248 capacity: 1
249 format: raw
250 device: cdrom
251 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300252 cloudinit_meta_data: *cloudinit_meta_data
253 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300254
255 interfaces: *interfaces
256 network_config: *network_config
257
258 - name: {{ HOSTNAME_CTL03 }}
259 role: salt_minion
260 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300261 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300262 memory: !os_env SLAVE_NODE_MEMORY, 8192
263 boot:
264 - hd
265 cloud_init_volume_name: iso
266 cloud_init_iface_up: ens3
267 volumes:
268 - name: system
269 capacity: !os_env NODE_VOLUME_SIZE, 150
270 backing_store: cloudimage1604
271 format: qcow2
272 - name: cinder
273 capacity: 50
274 format: qcow2
275 - name: iso # Volume with name 'iso' will be used
276 # for store image with cloud-init metadata.
277 capacity: 1
278 format: raw
279 device: cdrom
280 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300281 cloudinit_meta_data: *cloudinit_meta_data
282 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300283
284 interfaces: *interfaces
285 network_config: *network_config
286
287 - name: {{ HOSTNAME_PRX01 }}
288 role: salt_minion
289 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300290 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300291 memory: !os_env SLAVE_NODE_MEMORY, 8192
292 boot:
293 - hd
294 cloud_init_volume_name: iso
295 cloud_init_iface_up: ens3
296 volumes:
297 - name: system
298 capacity: !os_env NODE_VOLUME_SIZE, 150
299 backing_store: cloudimage1604
300 format: qcow2
301 - name: cinder
302 capacity: 50
303 format: qcow2
304 - name: iso # Volume with name 'iso' will be used
305 # for store image with cloud-init metadata.
306 capacity: 1
307 format: raw
308 device: cdrom
309 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300310 cloudinit_meta_data: *cloudinit_meta_data
311 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300312
313 interfaces: *interfaces
314 network_config: *network_config
315
316
317 - name: {{ HOSTNAME_CMP01 }}
318 role: salt_minion
319 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300320 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300321 memory: !os_env SLAVE_NODE_MEMORY, 4096
322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
329 backing_store: cloudimage1604
330 format: qcow2
331 - name: iso # Volume with name 'iso' will be used
332 # for store image with cloud-init metadata.
333 capacity: 1
334 format: raw
335 device: cdrom
336 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300337 cloudinit_meta_data: *cloudinit_meta_data
338 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300339
340
341 interfaces: &all_interfaces
342 - label: ens3
343 l2_network_device: admin
344 interface_model: *interface_model
345 - label: ens4
346 l2_network_device: private
347 interface_model: *interface_model
348 - label: ens5
349 l2_network_device: tenant
350 interface_model: *interface_model
351 - label: ens6
352 l2_network_device: external
353 interface_model: *interface_model
354 network_config: &all_network_config
355 ens3:
356 networks:
357 - admin
358 ens4:
359 networks:
360 - private
361 ens5:
362 networks:
363 - tenant
364 ens6:
365 networks:
366 - external
367
368 - name: {{ HOSTNAME_CMP02 }}
369 role: salt_minion
370 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300371 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300372 memory: !os_env SLAVE_NODE_MEMORY, 4096
373 boot:
374 - hd
375 cloud_init_volume_name: iso
376 cloud_init_iface_up: ens3
377 volumes:
378 - name: system
379 capacity: !os_env NODE_VOLUME_SIZE, 150
380 backing_store: cloudimage1604
381 format: qcow2
382 - name: iso # Volume with name 'iso' will be used
383 # for store image with cloud-init metadata.
384 capacity: 1
385 format: raw
386 device: cdrom
387 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300388 cloudinit_meta_data: *cloudinit_meta_data
389 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300390
391 interfaces: *all_interfaces
392 network_config: *all_network_config
393
394 - name: {{ HOSTNAME_GTW01 }}
395 role: salt_minion
396 params:
397 vcpu: !os_env SLAVE_NODE_CPU, 1
398 memory: !os_env SLAVE_NODE_MEMORY, 2048
399 boot:
400 - hd
401 cloud_init_volume_name: iso
402 cloud_init_iface_up: ens3
403 volumes:
404 - name: system
405 capacity: !os_env NODE_VOLUME_SIZE, 150
406 backing_store: cloudimage1604
407 format: qcow2
408 - name: iso # Volume with name 'iso' will be used
409 # for store image with cloud-init metadata.
410 capacity: 1
411 format: raw
412 device: cdrom
413 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300414 cloudinit_meta_data: *cloudinit_meta_data
415 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300416
417 interfaces: *all_interfaces
418 network_config: *all_network_config