blob: 30ccf9040dd2825842337f9c52e9f1ce0a890855 [file] [log] [blame]
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03001{% import 'underlay/virtual-mcp11-ovs--meta-data.yaml' as CLOUDINIT_META_DATA %}
2{% import 'underlay/virtual-mcp11-ovs--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 %}
3{% import 'underlay/virtual-mcp11-ovs--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 %}
4
Tatyana Leontovich78b83482017-04-11 18:57:11 +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 Leontovich78b83482017-04-11 18:57:11 +030011
12{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs') + '.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-ovs') }}
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 Leontovich78b83482017-04-11 18:57:11 +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 Leontovich78b83482017-04-11 18:57:11 +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 Leontovich78b83482017-04-11 18:57:11 +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 Leontovich78b83482017-04-11 18:57:11 +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:
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300137 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
138 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
139 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
140 format: qcow2
141
142 nodes:
143 - name: {{ HOSTNAME_CFG01 }}
144 role: salt_master
145 params:
146 vcpu: !os_env SLAVE_NODE_CPU, 4
147 memory: !os_env SLAVE_NODE_MEMORY, 2048
148 boot:
149 - hd
150 cloud_init_volume_name: iso
151 cloud_init_iface_up: ens3
152 volumes:
153 - name: system
154 capacity: !os_env NODE_VOLUME_SIZE, 150
155 backing_store: cloudimage1604
156 format: qcow2
157 - name: iso # Volume with name 'iso' will be used
158 # for store image with cloud-init metadata.
159 capacity: 1
160 format: raw
161 device: cdrom
162 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300163 cloudinit_meta_data: *cloudinit_meta_data
164 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300165
166 interfaces:
167 - label: ens3
168 l2_network_device: admin
169 interface_model: *interface_model
170 - label: ens4
171 l2_network_device: private
172 interface_model: *interface_model
173 network_config:
174 ens3:
175 networks:
176 - admin
177 ens4:
178 networks:
179 - private
180
181 - name: {{ HOSTNAME_CTL01 }}
182 role: salt_minion
183 params:
184 vcpu: !os_env SLAVE_NODE_CPU, 4
185 memory: !os_env SLAVE_NODE_MEMORY, 8192
186 boot:
187 - hd
188 cloud_init_volume_name: iso
189 cloud_init_iface_up: ens3
190 volumes:
191 - name: system
192 capacity: !os_env NODE_VOLUME_SIZE, 150
193 backing_store: cloudimage1604
194 format: qcow2
195 - name: cinder
196 capacity: 50
197 format: qcow2
198 - name: iso # Volume with name 'iso' will be used
199 # for store image with cloud-init metadata.
200 capacity: 1
201 format: raw
202 device: cdrom
203 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300204 cloudinit_meta_data: *cloudinit_meta_data
205 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300206
207 interfaces: &interfaces
208 - label: ens3
209 l2_network_device: admin
210 interface_model: *interface_model
211 - label: ens4
212 l2_network_device: private
213 interface_model: *interface_model
214 network_config: &network_config
215 ens3:
216 networks:
217 - admin
218 ens4:
219 networks:
220 - private
221
222 - name: {{ HOSTNAME_CTL02 }}
223 role: salt_minion
224 params:
225 vcpu: !os_env SLAVE_NODE_CPU, 4
226 memory: !os_env SLAVE_NODE_MEMORY, 8192
227 boot:
228 - hd
229 cloud_init_volume_name: iso
230 cloud_init_iface_up: ens3
231 volumes:
232 - name: system
233 capacity: !os_env NODE_VOLUME_SIZE, 150
234 backing_store: cloudimage1604
235 format: qcow2
236 - name: cinder
237 capacity: 50
238 format: qcow2
239 - name: iso # Volume with name 'iso' will be used
240 # for store image with cloud-init metadata.
241 capacity: 1
242 format: raw
243 device: cdrom
244 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300245 cloudinit_meta_data: *cloudinit_meta_data
246 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300247
248 interfaces: *interfaces
249 network_config: *network_config
250
251 - name: {{ HOSTNAME_CTL03 }}
252 role: salt_minion
253 params:
254 vcpu: !os_env SLAVE_NODE_CPU, 4
255 memory: !os_env SLAVE_NODE_MEMORY, 8192
256 boot:
257 - hd
258 cloud_init_volume_name: iso
259 cloud_init_iface_up: ens3
260 volumes:
261 - name: system
262 capacity: !os_env NODE_VOLUME_SIZE, 150
263 backing_store: cloudimage1604
264 format: qcow2
265 - name: cinder
266 capacity: 50
267 format: qcow2
268 - name: iso # Volume with name 'iso' will be used
269 # for store image with cloud-init metadata.
270 capacity: 1
271 format: raw
272 device: cdrom
273 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300274 cloudinit_meta_data: *cloudinit_meta_data
275 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300276
277 interfaces: *interfaces
278 network_config: *network_config
279
280 - name: {{ HOSTNAME_PRX01 }}
281 role: salt_minion
282 params:
283 vcpu: !os_env SLAVE_NODE_CPU, 4
284 memory: !os_env SLAVE_NODE_MEMORY, 8192
285 boot:
286 - hd
287 cloud_init_volume_name: iso
288 cloud_init_iface_up: ens3
289 volumes:
290 - name: system
291 capacity: !os_env NODE_VOLUME_SIZE, 150
292 backing_store: cloudimage1604
293 format: qcow2
294 - name: cinder
295 capacity: 50
296 format: qcow2
297 - name: iso # Volume with name 'iso' will be used
298 # for store image with cloud-init metadata.
299 capacity: 1
300 format: raw
301 device: cdrom
302 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300303 cloudinit_meta_data: *cloudinit_meta_data
304 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300305
306 interfaces: *interfaces
307 network_config: *network_config
308
309
310 - name: {{ HOSTNAME_CMP01 }}
311 role: salt_minion
312 params:
313 vcpu: !os_env SLAVE_NODE_CPU, 4
314 memory: !os_env SLAVE_NODE_MEMORY, 4096
315 boot:
316 - hd
317 cloud_init_volume_name: iso
318 cloud_init_iface_up: ens3
319 volumes:
320 - name: system
321 capacity: !os_env NODE_VOLUME_SIZE, 150
322 backing_store: cloudimage1604
323 format: qcow2
324 - name: iso # Volume with name 'iso' will be used
325 # for store image with cloud-init metadata.
326 capacity: 1
327 format: raw
328 device: cdrom
329 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300330 cloudinit_meta_data: *cloudinit_meta_data
331 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300332
333
334 interfaces: &all_interfaces
335 - label: ens3
336 l2_network_device: admin
337 interface_model: *interface_model
338 - label: ens4
339 l2_network_device: private
340 interface_model: *interface_model
341 - label: ens5
342 l2_network_device: tenant
343 interface_model: *interface_model
344 - label: ens6
345 l2_network_device: external
346 interface_model: *interface_model
347 network_config: &all_network_config
348 ens3:
349 networks:
350 - admin
351 ens4:
352 networks:
353 - private
354 ens5:
355 networks:
356 - tenant
357 ens6:
358 networks:
359 - external
360
361 - name: {{ HOSTNAME_CMP02 }}
362 role: salt_minion
363 params:
364 vcpu: !os_env SLAVE_NODE_CPU, 4
365 memory: !os_env SLAVE_NODE_MEMORY, 4096
366 boot:
367 - hd
368 cloud_init_volume_name: iso
369 cloud_init_iface_up: ens3
370 volumes:
371 - name: system
372 capacity: !os_env NODE_VOLUME_SIZE, 150
373 backing_store: cloudimage1604
374 format: qcow2
375 - name: iso # Volume with name 'iso' will be used
376 # for store image with cloud-init metadata.
377 capacity: 1
378 format: raw
379 device: cdrom
380 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300381 cloudinit_meta_data: *cloudinit_meta_data
382 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300383
384 interfaces: *all_interfaces
385 network_config: *all_network_config
386
387 - name: {{ HOSTNAME_GTW01 }}
388 role: salt_minion
389 params:
390 vcpu: !os_env SLAVE_NODE_CPU, 1
391 memory: !os_env SLAVE_NODE_MEMORY, 2048
392 boot:
393 - hd
394 cloud_init_volume_name: iso
395 cloud_init_iface_up: ens3
396 volumes:
397 - name: system
398 capacity: !os_env NODE_VOLUME_SIZE, 150
399 backing_store: cloudimage1604
400 format: qcow2
401 - name: iso # Volume with name 'iso' will be used
402 # for store image with cloud-init metadata.
403 capacity: 1
404 format: raw
405 device: cdrom
406 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300407 cloudinit_meta_data: *cloudinit_meta_data
408 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich78b83482017-04-11 18:57:11 +0300409
410 interfaces: *all_interfaces
411 network_config: *all_network_config