blob: 07ecddfadbaffaba5e0cf3e9f484680662c39120 [file] [log] [blame]
Tatyana Leontovich055b5062017-04-03 13:17:25 +03001---
2aliases:
3 default_interface_model:
4 - &interface_model !os_env INTERFACE_MODEL, virtio
5
6{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual_mcp10_ovs') + '.local' %}
7{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
8{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
11{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
12{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
13{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
14{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'prx01.' + DOMAIN_NAME) %}
15
16template:
17 devops_settings:
18 env_name: {{ os_env('ENV_NAME', 'virtual_mcp10_ovs') }}
19
20 address_pools:
21 admin-pool01:
22 net: 172.16.10.0/24:24
23 params:
24 ip_reserved:
25 gateway: +1
26 l2_network_device: +1
27 default_{{ HOSTNAME_CFG01 }}: +100
28 default_{{ HOSTNAME_CTL01 }}: +101
29 default_{{ HOSTNAME_CTL02 }}: +102
30 default_{{ HOSTNAME_CTL03 }}: +103
31 default_{{ HOSTNAME_CMP01 }}: +105
32 default_{{ HOSTNAME_CMP02 }}: +106
33 default_{{ HOSTNAME_GTW01 }}: +110
34 default_{{ HOSTNAME_PRX01 }}: +121
35 ip_ranges:
36 dhcp: [+90, -10]
37
38 private-pool01:
39 net: 192.168.10.0/24:24
40 params:
41 ip_reserved:
42 gateway: +1
43 l2_network_device: +1
44 default_{{ HOSTNAME_CFG01 }}: +100
45 default_{{ HOSTNAME_CTL01 }}: +101
46 default_{{ HOSTNAME_CTL02 }}: +102
47 default_{{ HOSTNAME_CTL03 }}: +103
48 default_{{ HOSTNAME_CMP01 }}: +105
49 default_{{ HOSTNAME_CMP02 }}: +106
50 default_{{ HOSTNAME_GTW01 }}: +110
51 default_{{ HOSTNAME_PRX01 }}: +121
52 ip_ranges:
53 dhcp: [+90, -10]
54
55 tenant-pool01:
56 net: 10.1.0.0/24:24
57 params:
58 ip_reserved:
59 gateway: +1
60 l2_network_device: +1
61 default_{{ HOSTNAME_CFG01 }}: +100
62 default_{{ HOSTNAME_CTL01 }}: +101
63 default_{{ HOSTNAME_CTL02 }}: +102
64 default_{{ HOSTNAME_CTL03 }}: +103
65 default_{{ HOSTNAME_CMP01 }}: +105
66 default_{{ HOSTNAME_CMP02 }}: +106
67 default_{{ HOSTNAME_GTW01 }}: +110
68 default_{{ HOSTNAME_PRX01 }}: +121
69 ip_ranges:
70 dhcp: [+10, -10]
71
72 external-pool01:
73 net: 10.16.0.0/24:24
74 params:
75 ip_reserved:
76 gateway: +1
77 l2_network_device: +1
78 default_{{ HOSTNAME_CFG01 }}: +100
79 default_{{ HOSTNAME_CTL01 }}: +101
80 default_{{ HOSTNAME_CTL02 }}: +102
81 default_{{ HOSTNAME_CTL03 }}: +103
82 default_{{ HOSTNAME_CMP01 }}: +105
83 default_{{ HOSTNAME_CMP02 }}: +106
84 default_{{ HOSTNAME_GTW01 }}: +110
85 default_{{ HOSTNAME_PRX01 }}: +121
86 ip_ranges:
87 dhcp: [+10, -10]
88
89
90 groups:
91 - name: default
92 driver:
93 name: devops.driver.libvirt
94 params:
95 connection_string: !os_env CONNECTION_STRING, qemu:///system
96 storage_pool_name: !os_env STORAGE_POOL_NAME, default
97 stp: False
98 hpet: False
99 enable_acpi: true
100 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
101
102 network_pools:
103 admin: admin-pool01
104 private: private-pool01
105 tenant: tenant-pool01
106 external: external-pool01
107
108 l2_network_devices:
109 private:
110 address_pool: private-pool01
111 dhcp: true
112 forward:
113 mode: nat
114
115 admin:
116 address_pool: admin-pool01
117 dhcp: true
118
119 tenant:
120 address_pool: tenant-pool01
121 dhcp: true
122
123 external:
124 address_pool: external-pool01
125 dhcp: true
126 forward:
127 mode: nat
128
129
130 group_volumes:
131 - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes.
132 source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
133 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
134 format: qcow2
135 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
136 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
137 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
138 format: qcow2
139
140 nodes:
141 - name: {{ HOSTNAME_CFG01 }}
142 role: salt_master
143 params:
144 vcpu: !os_env SLAVE_NODE_CPU, 4
145 memory: !os_env SLAVE_NODE_MEMORY, 2048
146 boot:
147 - hd
148 cloud_init_volume_name: iso
149 cloud_init_iface_up: ens3
150 volumes:
151 - name: system
152 capacity: !os_env NODE_VOLUME_SIZE, 150
153 backing_store: cloudimage1604
154 format: qcow2
155 - name: iso # Volume with name 'iso' will be used
156 # for store image with cloud-init metadata.
157 capacity: 1
158 format: raw
159 device: cdrom
160 bus: ide
161 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
162 cloudinit_user_data: !include virtual_mcp10_ovs--user-data-cfg01.yaml
163
164 interfaces:
165 - label: ens3
166 l2_network_device: private
167 interface_model: *interface_model
168 - label: ens4
169 l2_network_device: admin
170 interface_model: *interface_model
171 network_config:
172 ens3:
173 networks:
174 - private
175 ens4:
176 networks:
177 - admin
178
179 - name: {{ HOSTNAME_CTL01 }}
180 role: salt_minion
181 params:
182 vcpu: !os_env SLAVE_NODE_CPU, 4
183 memory: !os_env SLAVE_NODE_MEMORY, 8192
184 boot:
185 - hd
186 cloud_init_volume_name: iso
187 cloud_init_iface_up: eth0
188 volumes:
189 - name: system
190 capacity: !os_env NODE_VOLUME_SIZE, 150
191 backing_store: cloudimage1404
192 format: qcow2
193 - name: cinder
194 capacity: 50
195 format: qcow2
196 - name: iso # Volume with name 'iso' will be used
197 # for store image with cloud-init metadata.
198 capacity: 1
199 format: raw
200 device: cdrom
201 bus: ide
202 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
203 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1404.yaml
204
205 interfaces: &interfaces
206 - label: eth0
207 l2_network_device: private
208 interface_model: *interface_model
209 - label: eth1
210 l2_network_device: admin
211 interface_model: *interface_model
212 network_config: &network_config
213 eth0:
214 networks:
215 - private
216 eth1:
217 networks:
218 - admin
219
220 - name: {{ HOSTNAME_CTL02 }}
221 role: salt_minion
222 params:
223 vcpu: !os_env SLAVE_NODE_CPU, 4
224 memory: !os_env SLAVE_NODE_MEMORY, 8192
225 boot:
226 - hd
227 cloud_init_volume_name: iso
228 cloud_init_iface_up: eth0
229 volumes:
230 - name: system
231 capacity: !os_env NODE_VOLUME_SIZE, 150
232 backing_store: cloudimage1404
233 format: qcow2
234 - name: cinder
235 capacity: 50
236 format: qcow2
237 - name: iso # Volume with name 'iso' will be used
238 # for store image with cloud-init metadata.
239 capacity: 1
240 format: raw
241 device: cdrom
242 bus: ide
243 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
244 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1404.yaml
245
246 interfaces: *interfaces
247 network_config: *network_config
248
249 - name: {{ HOSTNAME_CTL03 }}
250 role: salt_minion
251 params:
252 vcpu: !os_env SLAVE_NODE_CPU, 4
253 memory: !os_env SLAVE_NODE_MEMORY, 8192
254 boot:
255 - hd
256 cloud_init_volume_name: iso
257 cloud_init_iface_up: eth0
258 volumes:
259 - name: system
260 capacity: !os_env NODE_VOLUME_SIZE, 150
261 backing_store: cloudimage1404
262 format: qcow2
263 - name: cinder
264 capacity: 50
265 format: qcow2
266 - name: iso # Volume with name 'iso' will be used
267 # for store image with cloud-init metadata.
268 capacity: 1
269 format: raw
270 device: cdrom
271 bus: ide
272 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
273 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1404.yaml
274
275 interfaces: *interfaces
276 network_config: *network_config
277
278 - name: {{ HOSTNAME_PRX01 }}
279 role: salt_minion
280 params:
281 vcpu: !os_env SLAVE_NODE_CPU, 4
282 memory: !os_env SLAVE_NODE_MEMORY, 8192
283 boot:
284 - hd
285 cloud_init_volume_name: iso
286 cloud_init_iface_up: eth0
287 volumes:
288 - name: system
289 capacity: !os_env NODE_VOLUME_SIZE, 150
290 backing_store: cloudimage1404
291 format: qcow2
292 - name: cinder
293 capacity: 50
294 format: qcow2
295 - name: iso # Volume with name 'iso' will be used
296 # for store image with cloud-init metadata.
297 capacity: 1
298 format: raw
299 device: cdrom
300 bus: ide
301 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
302 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1404.yaml
303
304 interfaces: *interfaces
305 network_config: *network_config
306
307
308 - name: {{ HOSTNAME_CMP01 }}
309 role: salt_minion
310 params:
311 vcpu: !os_env SLAVE_NODE_CPU, 4
312 memory: !os_env SLAVE_NODE_MEMORY, 4096
313 boot:
314 - hd
315 cloud_init_volume_name: iso
316 cloud_init_iface_up: eth0
317 volumes:
318 - name: system
319 capacity: !os_env NODE_VOLUME_SIZE, 150
320 backing_store: cloudimage1604
321 format: qcow2
322 - name: iso # Volume with name 'iso' will be used
323 # for store image with cloud-init metadata.
324 capacity: 1
325 format: raw
326 device: cdrom
327 bus: ide
328 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
329 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1604.yaml
330
331
332 interfaces: &all_interfaces
333 - label: ens3
334 l2_network_device: private
335 interface_model: *interface_model
336 - label: ens4
337 l2_network_device: admin
338 interface_model: *interface_model
339 - label: ens5
340 l2_network_device: tenant
341 interface_model: *interface_model
342 - label: ens6
343 l2_network_device: external
344 interface_model: *interface_model
345 network_config: &all_network_config
346 ens3:
347 networks:
348 - private
349 ens4:
350 networks:
351 - admin
352 ens5:
353 networks:
354 - tenant
355 ens6:
356 networks:
357 - external
358
359 - name: {{ HOSTNAME_CMP02 }}
360 role: salt_minion
361 params:
362 vcpu: !os_env SLAVE_NODE_CPU, 4
363 memory: !os_env SLAVE_NODE_MEMORY, 4096
364 boot:
365 - hd
366 cloud_init_volume_name: iso
367 cloud_init_iface_up: eth0
368 volumes:
369 - name: system
370 capacity: !os_env NODE_VOLUME_SIZE, 150
371 backing_store: cloudimage1604
372 format: qcow2
373 - name: iso # Volume with name 'iso' will be used
374 # for store image with cloud-init metadata.
375 capacity: 1
376 format: raw
377 device: cdrom
378 bus: ide
379 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
380 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1604.yaml
381
382 interfaces: *all_interfaces
383 network_config: *all_network_config
384
385 - name: {{ HOSTNAME_GTW01 }}
386 role: salt_minion
387 params:
388 vcpu: !os_env SLAVE_NODE_CPU, 1
389 memory: !os_env SLAVE_NODE_MEMORY, 2048
390 boot:
391 - hd
392 cloud_init_volume_name: iso
393 cloud_init_iface_up: eth0
394 volumes:
395 - name: system
396 capacity: !os_env NODE_VOLUME_SIZE, 150
397 backing_store: cloudimage1604
398 format: qcow2
399 - name: iso # Volume with name 'iso' will be used
400 # for store image with cloud-init metadata.
401 capacity: 1
402 format: raw
403 device: cdrom
404 bus: ide
405 cloudinit_meta_data: !include virtual_mcp10_ovs--meta-data.yaml
406 cloudinit_user_data: !include virtual_mcp10_ovs--user-data1604.yaml
407
408 interfaces: *all_interfaces
409 network_config: *all_network_config