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