blob: 0a27a36bbadced3b1108900b1c42cf27197663be [file] [log] [blame]
Tatyana Leontovich38be41b2017-04-12 14:45:23 +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-mcp-ocata-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_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
15
16template:
17 devops_settings:
18 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-ovs') }}
19
20 address_pools:
21 private-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 admin-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
113 admin:
114 address_pool: admin-pool01
115 dhcp: true
116 forward:
117 mode: nat
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: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
132 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
133 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
134 format: qcow2
135
136 nodes:
137 - name: {{ HOSTNAME_CFG01 }}
138 role: salt_master
139 params:
140 vcpu: !os_env SLAVE_NODE_CPU, 4
141 memory: !os_env SLAVE_NODE_MEMORY, 2048
142 boot:
143 - hd
144 cloud_init_volume_name: iso
145 cloud_init_iface_up: ens3
146 volumes:
147 - name: system
148 capacity: !os_env NODE_VOLUME_SIZE, 150
149 backing_store: cloudimage1604
150 format: qcow2
151 - name: iso # Volume with name 'iso' will be used
152 # for store image with cloud-init metadata.
153 capacity: 1
154 format: raw
155 device: cdrom
156 bus: ide
157 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
158 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data-cfg01.yaml
159
160 interfaces:
161 - label: ens3
162 l2_network_device: admin
163 interface_model: *interface_model
164 - label: ens4
165 l2_network_device: private
166 interface_model: *interface_model
167 network_config:
168 ens3:
169 networks:
170 - admin
171 ens4:
172 networks:
173 - private
174
175 - name: {{ HOSTNAME_CTL01 }}
176 role: salt_minion
177 params:
178 vcpu: !os_env SLAVE_NODE_CPU, 4
179 memory: !os_env SLAVE_NODE_MEMORY, 8192
180 boot:
181 - hd
182 cloud_init_volume_name: iso
183 cloud_init_iface_up: ens3
184 volumes:
185 - name: system
186 capacity: !os_env NODE_VOLUME_SIZE, 150
187 backing_store: cloudimage1604
188 format: qcow2
189 - name: cinder
190 capacity: 50
191 format: qcow2
192 - name: iso # Volume with name 'iso' will be used
193 # for store image with cloud-init metadata.
194 capacity: 1
195 format: raw
196 device: cdrom
197 bus: ide
198 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
199 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
200
201 interfaces: &interfaces
202 - label: ens3
203 l2_network_device: admin
204 interface_model: *interface_model
205 - label: ens4
206 l2_network_device: private
207 interface_model: *interface_model
208 network_config: &network_config
209 ens3:
210 networks:
211 - admin
212 ens4:
213 networks:
214 - private
215
216 - name: {{ HOSTNAME_CTL02 }}
217 role: salt_minion
218 params:
219 vcpu: !os_env SLAVE_NODE_CPU, 4
220 memory: !os_env SLAVE_NODE_MEMORY, 8192
221 boot:
222 - hd
223 cloud_init_volume_name: iso
224 cloud_init_iface_up: ens3
225 volumes:
226 - name: system
227 capacity: !os_env NODE_VOLUME_SIZE, 150
228 backing_store: cloudimage1604
229 format: qcow2
230 - name: cinder
231 capacity: 50
232 format: qcow2
233 - name: iso # Volume with name 'iso' will be used
234 # for store image with cloud-init metadata.
235 capacity: 1
236 format: raw
237 device: cdrom
238 bus: ide
239 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
240 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
241
242 interfaces: *interfaces
243 network_config: *network_config
244
245 - name: {{ HOSTNAME_CTL03 }}
246 role: salt_minion
247 params:
248 vcpu: !os_env SLAVE_NODE_CPU, 4
249 memory: !os_env SLAVE_NODE_MEMORY, 8192
250 boot:
251 - hd
252 cloud_init_volume_name: iso
253 cloud_init_iface_up: ens3
254 volumes:
255 - name: system
256 capacity: !os_env NODE_VOLUME_SIZE, 150
257 backing_store: cloudimage1604
258 format: qcow2
259 - name: cinder
260 capacity: 50
261 format: qcow2
262 - name: iso # Volume with name 'iso' will be used
263 # for store image with cloud-init metadata.
264 capacity: 1
265 format: raw
266 device: cdrom
267 bus: ide
268 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
269 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
270
271 interfaces: *interfaces
272 network_config: *network_config
273
274 - name: {{ HOSTNAME_PRX01 }}
275 role: salt_minion
276 params:
277 vcpu: !os_env SLAVE_NODE_CPU, 4
278 memory: !os_env SLAVE_NODE_MEMORY, 8192
279 boot:
280 - hd
281 cloud_init_volume_name: iso
282 cloud_init_iface_up: ens3
283 volumes:
284 - name: system
285 capacity: !os_env NODE_VOLUME_SIZE, 150
286 backing_store: cloudimage1604
287 format: qcow2
288 - name: cinder
289 capacity: 50
290 format: qcow2
291 - name: iso # Volume with name 'iso' will be used
292 # for store image with cloud-init metadata.
293 capacity: 1
294 format: raw
295 device: cdrom
296 bus: ide
297 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
298 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
299
300 interfaces: *interfaces
301 network_config: *network_config
302
303
304 - name: {{ HOSTNAME_CMP01 }}
305 role: salt_minion
306 params:
307 vcpu: !os_env SLAVE_NODE_CPU, 4
308 memory: !os_env SLAVE_NODE_MEMORY, 4096
309 boot:
310 - hd
311 cloud_init_volume_name: iso
312 cloud_init_iface_up: ens3
313 volumes:
314 - name: system
315 capacity: !os_env NODE_VOLUME_SIZE, 150
316 backing_store: cloudimage1604
317 format: qcow2
318 - name: iso # Volume with name 'iso' will be used
319 # for store image with cloud-init metadata.
320 capacity: 1
321 format: raw
322 device: cdrom
323 bus: ide
324 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
325 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
326
327
328 interfaces: &all_interfaces
329 - label: ens3
330 l2_network_device: admin
331 interface_model: *interface_model
332 - label: ens4
333 l2_network_device: private
334 interface_model: *interface_model
335 - label: ens5
336 l2_network_device: tenant
337 interface_model: *interface_model
338 - label: ens6
339 l2_network_device: external
340 interface_model: *interface_model
341 network_config: &all_network_config
342 ens3:
343 networks:
344 - admin
345 ens4:
346 networks:
347 - private
348 ens5:
349 networks:
350 - tenant
351 ens6:
352 networks:
353 - external
354
355 - name: {{ HOSTNAME_CMP02 }}
356 role: salt_minion
357 params:
358 vcpu: !os_env SLAVE_NODE_CPU, 4
359 memory: !os_env SLAVE_NODE_MEMORY, 4096
360 boot:
361 - hd
362 cloud_init_volume_name: iso
363 cloud_init_iface_up: ens3
364 volumes:
365 - name: system
366 capacity: !os_env NODE_VOLUME_SIZE, 150
367 backing_store: cloudimage1604
368 format: qcow2
369 - name: iso # Volume with name 'iso' will be used
370 # for store image with cloud-init metadata.
371 capacity: 1
372 format: raw
373 device: cdrom
374 bus: ide
375 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
376 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
377
378 interfaces: *all_interfaces
379 network_config: *all_network_config
380
381 - name: {{ HOSTNAME_GTW01 }}
382 role: salt_minion
383 params:
384 vcpu: !os_env SLAVE_NODE_CPU, 1
385 memory: !os_env SLAVE_NODE_MEMORY, 2048
386 boot:
387 - hd
388 cloud_init_volume_name: iso
389 cloud_init_iface_up: ens3
390 volumes:
391 - name: system
392 capacity: !os_env NODE_VOLUME_SIZE, 150
393 backing_store: cloudimage1604
394 format: qcow2
395 - name: iso # Volume with name 'iso' will be used
396 # for store image with cloud-init metadata.
397 capacity: 1
398 format: raw
399 device: cdrom
400 bus: ide
401 cloudinit_meta_data: !include virtual-mcp-ocata-ovs--meta-data.yaml
402 cloudinit_user_data: !include virtual-mcp-ocata-ovs--user-data1604.yaml
403
404 interfaces: *all_interfaces
405 network_config: *all_network_config