blob: 74ef5289df999efe0b530a2d8c2afcfff7c553e0 [file] [log] [blame]
dis2b2d8632016-12-08 17:56:57 +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-dvr') + '.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-dvr') }}
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
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300156 cloudinit_meta_data: !include underlay--meta-data.yaml
157 cloudinit_user_data: !include underlay--user-data-cfg01.yaml
dis2b2d8632016-12-08 17:56:57 +0200158
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
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200188 - name: cinder
189 capacity: 50
190 format: qcow2
dis2b2d8632016-12-08 17:56:57 +0200191 - name: iso # Volume with name 'iso' will be used
192 # for store image with cloud-init metadata.
193 capacity: 1
194 format: raw
195 device: cdrom
196 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300197 cloudinit_meta_data: !include underlay--meta-data.yaml
198 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200199
200 interfaces: &interfaces
201 - label: eth0
202 l2_network_device: private
203 interface_model: *interface_model
204 - label: eth1
205 l2_network_device: admin
206 interface_model: *interface_model
207 network_config: &network_config
208 eth0:
209 networks:
210 - private
211 eth1:
212 networks:
213 - admin
214
215 - name: {{ HOSTNAME_CTL02 }}
216 role: salt_minion
217 params:
218 vcpu: !os_env SLAVE_NODE_CPU, 4
219 memory: !os_env SLAVE_NODE_MEMORY, 8192
220 boot:
221 - hd
222 cloud_init_volume_name: iso
223 cloud_init_iface_up: eth0
224 volumes:
225 - name: system
226 capacity: !os_env NODE_VOLUME_SIZE, 150
227 backing_store: cloudimage1404
228 format: qcow2
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200229 - name: cinder
230 capacity: 50
231 format: qcow2
dis2b2d8632016-12-08 17:56:57 +0200232 - name: iso # Volume with name 'iso' will be used
233 # for store image with cloud-init metadata.
234 capacity: 1
235 format: raw
236 device: cdrom
237 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300238 cloudinit_meta_data: !include underlay--meta-data.yaml
239 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200240
241 interfaces: *interfaces
242 network_config: *network_config
243
244 - name: {{ HOSTNAME_CTL03 }}
245 role: salt_minion
246 params:
247 vcpu: !os_env SLAVE_NODE_CPU, 4
248 memory: !os_env SLAVE_NODE_MEMORY, 8192
249 boot:
250 - hd
251 cloud_init_volume_name: iso
252 cloud_init_iface_up: eth0
253 volumes:
254 - name: system
255 capacity: !os_env NODE_VOLUME_SIZE, 150
256 backing_store: cloudimage1404
257 format: qcow2
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200258 - name: cinder
259 capacity: 50
260 format: qcow2
dis2b2d8632016-12-08 17:56:57 +0200261 - name: iso # Volume with name 'iso' will be used
262 # for store image with cloud-init metadata.
263 capacity: 1
264 format: raw
265 device: cdrom
266 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300267 cloudinit_meta_data: !include underlay--meta-data.yaml
268 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200269
270 interfaces: *interfaces
271 network_config: *network_config
272
273 - name: {{ HOSTNAME_CMP01 }}
274 role: salt_minion
275 params:
276 vcpu: !os_env SLAVE_NODE_CPU, 4
277 memory: !os_env SLAVE_NODE_MEMORY, 4096
278 boot:
279 - hd
280 cloud_init_volume_name: iso
281 cloud_init_iface_up: eth0
282 volumes:
283 - name: system
284 capacity: !os_env NODE_VOLUME_SIZE, 150
285 backing_store: cloudimage1404
286 format: qcow2
287 - name: iso # Volume with name 'iso' will be used
288 # for store image with cloud-init metadata.
289 capacity: 1
290 format: raw
291 device: cdrom
292 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300293 cloudinit_meta_data: !include underlay--meta-data.yaml
294 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200295
296 interfaces: &all_interfaces
297 - label: eth0
298 l2_network_device: private
299 interface_model: *interface_model
300 - label: eth1
301 l2_network_device: admin
302 interface_model: *interface_model
303 - label: eth2
304 l2_network_device: tenant
305 interface_model: *interface_model
306 - label: eth3
307 l2_network_device: external
308 interface_model: *interface_model
309 network_config: &all_network_config
310 eth0:
311 networks:
312 - private
313 eth1:
314 networks:
315 - admin
316 eth2:
317 networks:
318 - tenant
319 eth3:
320 networks:
321 - external
322
323 - name: {{ HOSTNAME_CMP02 }}
324 role: salt_minion
325 params:
326 vcpu: !os_env SLAVE_NODE_CPU, 4
327 memory: !os_env SLAVE_NODE_MEMORY, 4096
328 boot:
329 - hd
330 cloud_init_volume_name: iso
331 cloud_init_iface_up: eth0
332 volumes:
333 - name: system
334 capacity: !os_env NODE_VOLUME_SIZE, 150
335 backing_store: cloudimage1404
336 format: qcow2
337 - name: iso # Volume with name 'iso' will be used
338 # for store image with cloud-init metadata.
339 capacity: 1
340 format: raw
341 device: cdrom
342 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300343 cloudinit_meta_data: !include underlay--meta-data.yaml
344 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200345
346 interfaces: *all_interfaces
347 network_config: *all_network_config
348
349 - name: {{ HOSTNAME_GTW01 }}
350 role: salt_minion
351 params:
352 vcpu: !os_env SLAVE_NODE_CPU, 1
353 memory: !os_env SLAVE_NODE_MEMORY, 2048
354 boot:
355 - hd
356 cloud_init_volume_name: iso
357 cloud_init_iface_up: eth0
358 volumes:
359 - name: system
360 capacity: !os_env NODE_VOLUME_SIZE, 150
361 backing_store: cloudimage1404
362 format: qcow2
363 - name: iso # Volume with name 'iso' will be used
364 # for store image with cloud-init metadata.
365 capacity: 1
366 format: raw
367 device: cdrom
368 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300369 cloudinit_meta_data: !include underlay--meta-data.yaml
370 cloudinit_user_data: !include underlay--user-data1404.yaml
dis2b2d8632016-12-08 17:56:57 +0200371
372 interfaces: *all_interfaces
373 network_config: *all_network_config