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