blob: b90c192734fc87cffed58280af381b151ed9c982 [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
4{% import 'underlay/virtual-mcp11-dvr--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'underlay/virtual-mcp11-dvr--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'underlay/virtual-mcp11-dvr--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
15{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-dvr') + '.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-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030028
29 address_pools:
30 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030031 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030032 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030048 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030049 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030065 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030066 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030082 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030083 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
107 hpet: False
108 enable_acpi: true
109 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
110
111 network_pools:
112 admin: admin-pool01
113 private: private-pool01
114 tenant: tenant-pool01
115 external: external-pool01
116
117 l2_network_devices:
118 private:
119 address_pool: private-pool01
120 dhcp: true
121
122 admin:
123 address_pool: admin-pool01
124 dhcp: true
125 forward:
126 mode: nat
127
128 tenant:
129 address_pool: tenant-pool01
130 dhcp: true
131
132 external:
133 address_pool: external-pool01
134 dhcp: true
135 forward:
136 mode: nat
137
138
139 group_volumes:
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300140 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
141 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
142 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
143 format: qcow2
144
145 nodes:
146 - name: {{ HOSTNAME_CFG01 }}
147 role: salt_master
148 params:
149 vcpu: !os_env SLAVE_NODE_CPU, 4
150 memory: !os_env SLAVE_NODE_MEMORY, 2048
151 boot:
152 - hd
153 cloud_init_volume_name: iso
154 cloud_init_iface_up: ens3
155 volumes:
156 - name: system
157 capacity: !os_env NODE_VOLUME_SIZE, 150
158 backing_store: cloudimage1604
159 format: qcow2
160 - name: iso # Volume with name 'iso' will be used
161 # for store image with cloud-init metadata.
162 capacity: 1
163 format: raw
164 device: cdrom
165 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300166 cloudinit_meta_data: *cloudinit_meta_data
167 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300168
169 interfaces:
170 - label: ens3
171 l2_network_device: admin
172 interface_model: *interface_model
173 - label: ens4
174 l2_network_device: private
175 interface_model: *interface_model
176 network_config:
177 ens3:
178 networks:
179 - admin
180 ens4:
181 networks:
182 - private
183
184 - name: {{ HOSTNAME_CTL01 }}
185 role: salt_minion
186 params:
187 vcpu: !os_env SLAVE_NODE_CPU, 4
188 memory: !os_env SLAVE_NODE_MEMORY, 8192
189 boot:
190 - hd
191 cloud_init_volume_name: iso
192 cloud_init_iface_up: ens3
193 volumes:
194 - name: system
195 capacity: !os_env NODE_VOLUME_SIZE, 150
196 backing_store: cloudimage1604
197 format: qcow2
198 - name: cinder
199 capacity: 50
200 format: qcow2
201 - name: iso # Volume with name 'iso' will be used
202 # for store image with cloud-init metadata.
203 capacity: 1
204 format: raw
205 device: cdrom
206 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300207 cloudinit_meta_data: *cloudinit_meta_data
208 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300209
210 interfaces: &interfaces
211 - label: ens3
212 l2_network_device: admin
213 interface_model: *interface_model
214 - label: ens4
215 l2_network_device: private
216 interface_model: *interface_model
217 network_config: &network_config
218 ens3:
219 networks:
220 - admin
221 ens4:
222 networks:
223 - private
224
225 - name: {{ HOSTNAME_CTL02 }}
226 role: salt_minion
227 params:
228 vcpu: !os_env SLAVE_NODE_CPU, 4
229 memory: !os_env SLAVE_NODE_MEMORY, 8192
230 boot:
231 - hd
232 cloud_init_volume_name: iso
233 cloud_init_iface_up: ens3
234 volumes:
235 - name: system
236 capacity: !os_env NODE_VOLUME_SIZE, 150
237 backing_store: cloudimage1604
238 format: qcow2
239 - name: cinder
240 capacity: 50
241 format: qcow2
242 - name: iso # Volume with name 'iso' will be used
243 # for store image with cloud-init metadata.
244 capacity: 1
245 format: raw
246 device: cdrom
247 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300248 cloudinit_meta_data: *cloudinit_meta_data
249 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300250
251 interfaces: *interfaces
252 network_config: *network_config
253
254 - name: {{ HOSTNAME_CTL03 }}
255 role: salt_minion
256 params:
257 vcpu: !os_env SLAVE_NODE_CPU, 4
258 memory: !os_env SLAVE_NODE_MEMORY, 8192
259 boot:
260 - hd
261 cloud_init_volume_name: iso
262 cloud_init_iface_up: ens3
263 volumes:
264 - name: system
265 capacity: !os_env NODE_VOLUME_SIZE, 150
266 backing_store: cloudimage1604
267 format: qcow2
268 - name: cinder
269 capacity: 50
270 format: qcow2
271 - name: iso # Volume with name 'iso' will be used
272 # for store image with cloud-init metadata.
273 capacity: 1
274 format: raw
275 device: cdrom
276 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300277 cloudinit_meta_data: *cloudinit_meta_data
278 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300279
280 interfaces: *interfaces
281 network_config: *network_config
282
283 - name: {{ HOSTNAME_PRX01 }}
284 role: salt_minion
285 params:
286 vcpu: !os_env SLAVE_NODE_CPU, 4
287 memory: !os_env SLAVE_NODE_MEMORY, 8192
288 boot:
289 - hd
290 cloud_init_volume_name: iso
291 cloud_init_iface_up: ens3
292 volumes:
293 - name: system
294 capacity: !os_env NODE_VOLUME_SIZE, 150
295 backing_store: cloudimage1604
296 format: qcow2
297 - name: cinder
298 capacity: 50
299 format: qcow2
300 - name: iso # Volume with name 'iso' will be used
301 # for store image with cloud-init metadata.
302 capacity: 1
303 format: raw
304 device: cdrom
305 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300306 cloudinit_meta_data: *cloudinit_meta_data
307 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300308
309 interfaces: *interfaces
310 network_config: *network_config
311
312
313 - name: {{ HOSTNAME_CMP01 }}
314 role: salt_minion
315 params:
316 vcpu: !os_env SLAVE_NODE_CPU, 4
317 memory: !os_env SLAVE_NODE_MEMORY, 4096
318 boot:
319 - hd
320 cloud_init_volume_name: iso
321 cloud_init_iface_up: ens3
322 volumes:
323 - name: system
324 capacity: !os_env NODE_VOLUME_SIZE, 150
325 backing_store: cloudimage1604
326 format: qcow2
327 - name: iso # Volume with name 'iso' will be used
328 # for store image with cloud-init metadata.
329 capacity: 1
330 format: raw
331 device: cdrom
332 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300333 cloudinit_meta_data: *cloudinit_meta_data
334 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300335
336
337 interfaces: &all_interfaces
338 - label: ens3
339 l2_network_device: admin
340 interface_model: *interface_model
341 - label: ens4
342 l2_network_device: private
343 interface_model: *interface_model
344 - label: ens5
345 l2_network_device: tenant
346 interface_model: *interface_model
347 - label: ens6
348 l2_network_device: external
349 interface_model: *interface_model
350 network_config: &all_network_config
351 ens3:
352 networks:
353 - admin
354 ens4:
355 networks:
356 - private
357 ens5:
358 networks:
359 - tenant
360 ens6:
361 networks:
362 - external
363
364 - name: {{ HOSTNAME_CMP02 }}
365 role: salt_minion
366 params:
367 vcpu: !os_env SLAVE_NODE_CPU, 4
368 memory: !os_env SLAVE_NODE_MEMORY, 4096
369 boot:
370 - hd
371 cloud_init_volume_name: iso
372 cloud_init_iface_up: ens3
373 volumes:
374 - name: system
375 capacity: !os_env NODE_VOLUME_SIZE, 150
376 backing_store: cloudimage1604
377 format: qcow2
378 - name: iso # Volume with name 'iso' will be used
379 # for store image with cloud-init metadata.
380 capacity: 1
381 format: raw
382 device: cdrom
383 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300384 cloudinit_meta_data: *cloudinit_meta_data
385 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300386
387 interfaces: *all_interfaces
388 network_config: *all_network_config
389
390 - name: {{ HOSTNAME_GTW01 }}
391 role: salt_minion
392 params:
393 vcpu: !os_env SLAVE_NODE_CPU, 1
394 memory: !os_env SLAVE_NODE_MEMORY, 2048
395 boot:
396 - hd
397 cloud_init_volume_name: iso
398 cloud_init_iface_up: ens3
399 volumes:
400 - name: system
401 capacity: !os_env NODE_VOLUME_SIZE, 150
402 backing_store: cloudimage1604
403 format: qcow2
404 - name: iso # Volume with name 'iso' will be used
405 # for store image with cloud-init metadata.
406 capacity: 1
407 format: raw
408 device: cdrom
409 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300410 cloudinit_meta_data: *cloudinit_meta_data
411 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300412
413 interfaces: *all_interfaces
414 network_config: *all_network_config