blob: 401cee7fed877a731a9d98e4f86af93c7b05d58b [file] [log] [blame]
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03001{% import 'underlay/virtual-mcp11-dvr--meta-data.yaml' as CLOUDINIT_META_DATA %}
2{% import 'underlay/virtual-mcp11-dvr--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 %}
3{% import 'underlay/virtual-mcp11-dvr--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 %}
4
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03005---
6aliases:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
8 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
9 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
10 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030011
12{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-dvr') + '.local' %}
13{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
14{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
15{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
16{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
20{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
21
22template:
23 devops_settings:
24 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-dvr') }}
25
26 address_pools:
27 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030028 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030029 params:
30 ip_reserved:
31 gateway: +1
32 l2_network_device: +1
33 default_{{ HOSTNAME_CFG01 }}: +100
34 default_{{ HOSTNAME_CTL01 }}: +101
35 default_{{ HOSTNAME_CTL02 }}: +102
36 default_{{ HOSTNAME_CTL03 }}: +103
37 default_{{ HOSTNAME_CMP01 }}: +105
38 default_{{ HOSTNAME_CMP02 }}: +106
39 default_{{ HOSTNAME_GTW01 }}: +110
40 default_{{ HOSTNAME_PRX01 }}: +121
41 ip_ranges:
42 dhcp: [+90, -10]
43
44 admin-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030045 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030046 params:
47 ip_reserved:
48 gateway: +1
49 l2_network_device: +1
50 default_{{ HOSTNAME_CFG01 }}: +100
51 default_{{ HOSTNAME_CTL01 }}: +101
52 default_{{ HOSTNAME_CTL02 }}: +102
53 default_{{ HOSTNAME_CTL03 }}: +103
54 default_{{ HOSTNAME_CMP01 }}: +105
55 default_{{ HOSTNAME_CMP02 }}: +106
56 default_{{ HOSTNAME_GTW01 }}: +110
57 default_{{ HOSTNAME_PRX01 }}: +121
58 ip_ranges:
59 dhcp: [+90, -10]
60
61 tenant-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030062 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030063 params:
64 ip_reserved:
65 gateway: +1
66 l2_network_device: +1
67 default_{{ HOSTNAME_CFG01 }}: +100
68 default_{{ HOSTNAME_CTL01 }}: +101
69 default_{{ HOSTNAME_CTL02 }}: +102
70 default_{{ HOSTNAME_CTL03 }}: +103
71 default_{{ HOSTNAME_CMP01 }}: +105
72 default_{{ HOSTNAME_CMP02 }}: +106
73 default_{{ HOSTNAME_GTW01 }}: +110
74 default_{{ HOSTNAME_PRX01 }}: +121
75 ip_ranges:
76 dhcp: [+10, -10]
77
78 external-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030079 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030080 params:
81 ip_reserved:
82 gateway: +1
83 l2_network_device: +1
84 default_{{ HOSTNAME_CFG01 }}: +100
85 default_{{ HOSTNAME_CTL01 }}: +101
86 default_{{ HOSTNAME_CTL02 }}: +102
87 default_{{ HOSTNAME_CTL03 }}: +103
88 default_{{ HOSTNAME_CMP01 }}: +105
89 default_{{ HOSTNAME_CMP02 }}: +106
90 default_{{ HOSTNAME_GTW01 }}: +110
91 default_{{ HOSTNAME_PRX01 }}: +121
92 ip_ranges:
93 dhcp: [+10, -10]
94
95
96 groups:
97 - name: default
98 driver:
99 name: devops.driver.libvirt
100 params:
101 connection_string: !os_env CONNECTION_STRING, qemu:///system
102 storage_pool_name: !os_env STORAGE_POOL_NAME, default
103 stp: False
104 hpet: False
105 enable_acpi: true
106 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
107
108 network_pools:
109 admin: admin-pool01
110 private: private-pool01
111 tenant: tenant-pool01
112 external: external-pool01
113
114 l2_network_devices:
115 private:
116 address_pool: private-pool01
117 dhcp: true
118
119 admin:
120 address_pool: admin-pool01
121 dhcp: true
122 forward:
123 mode: nat
124
125 tenant:
126 address_pool: tenant-pool01
127 dhcp: true
128
129 external:
130 address_pool: external-pool01
131 dhcp: true
132 forward:
133 mode: nat
134
135
136 group_volumes:
137 - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes.
138 source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
139 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
140 format: qcow2
141 - 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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300167 cloudinit_meta_data: *cloudinit_meta_data
168 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300169
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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300208 cloudinit_meta_data: *cloudinit_meta_data
209 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300210
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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300249 cloudinit_meta_data: *cloudinit_meta_data
250 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300251
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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300280
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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300307 cloudinit_meta_data: *cloudinit_meta_data
308 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300309
310 interfaces: *interfaces
311 network_config: *network_config
312
313
314 - name: {{ HOSTNAME_CMP01 }}
315 role: salt_minion
316 params:
317 vcpu: !os_env SLAVE_NODE_CPU, 4
318 memory: !os_env SLAVE_NODE_MEMORY, 4096
319 boot:
320 - hd
321 cloud_init_volume_name: iso
322 cloud_init_iface_up: ens3
323 volumes:
324 - name: system
325 capacity: !os_env NODE_VOLUME_SIZE, 150
326 backing_store: cloudimage1604
327 format: qcow2
328 - name: iso # Volume with name 'iso' will be used
329 # for store image with cloud-init metadata.
330 capacity: 1
331 format: raw
332 device: cdrom
333 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300334 cloudinit_meta_data: *cloudinit_meta_data
335 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300336
337
338 interfaces: &all_interfaces
339 - label: ens3
340 l2_network_device: admin
341 interface_model: *interface_model
342 - label: ens4
343 l2_network_device: private
344 interface_model: *interface_model
345 - label: ens5
346 l2_network_device: tenant
347 interface_model: *interface_model
348 - label: ens6
349 l2_network_device: external
350 interface_model: *interface_model
351 network_config: &all_network_config
352 ens3:
353 networks:
354 - admin
355 ens4:
356 networks:
357 - private
358 ens5:
359 networks:
360 - tenant
361 ens6:
362 networks:
363 - external
364
365 - name: {{ HOSTNAME_CMP02 }}
366 role: salt_minion
367 params:
368 vcpu: !os_env SLAVE_NODE_CPU, 4
369 memory: !os_env SLAVE_NODE_MEMORY, 4096
370 boot:
371 - hd
372 cloud_init_volume_name: iso
373 cloud_init_iface_up: ens3
374 volumes:
375 - name: system
376 capacity: !os_env NODE_VOLUME_SIZE, 150
377 backing_store: cloudimage1604
378 format: qcow2
379 - name: iso # Volume with name 'iso' will be used
380 # for store image with cloud-init metadata.
381 capacity: 1
382 format: raw
383 device: cdrom
384 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300385 cloudinit_meta_data: *cloudinit_meta_data
386 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300387
388 interfaces: *all_interfaces
389 network_config: *all_network_config
390
391 - name: {{ HOSTNAME_GTW01 }}
392 role: salt_minion
393 params:
394 vcpu: !os_env SLAVE_NODE_CPU, 1
395 memory: !os_env SLAVE_NODE_MEMORY, 2048
396 boot:
397 - hd
398 cloud_init_volume_name: iso
399 cloud_init_iface_up: ens3
400 volumes:
401 - name: system
402 capacity: !os_env NODE_VOLUME_SIZE, 150
403 backing_store: cloudimage1604
404 format: qcow2
405 - name: iso # Volume with name 'iso' will be used
406 # for store image with cloud-init metadata.
407 capacity: 1
408 format: raw
409 device: cdrom
410 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300411 cloudinit_meta_data: *cloudinit_meta_data
412 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300413
414 interfaces: *all_interfaces
415 network_config: *all_network_config