blob: e1c3eadb59755c6a5254b6c8f46504af74aeec7f [file] [log] [blame]
Tatyana Leontovich56005da2017-12-11 13:16: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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02004{% import 'virtual-mcp-pike-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-pike-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-pike-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02007
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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-pike-ovs') %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020016{% 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', 'cmp01.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020023{% 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:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020029
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020043 default_{{ HOSTNAME_GTW01 }}: +110
44 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020046 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020047
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020060 default_{{ HOSTNAME_GTW01 }}: +110
61 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020063 dhcp: [+90, -10]
Tatyana Leontovich56005da2017-12-11 13:16:51 +020064
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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020077 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
Tatyana Leontovich56005da2017-12-11 13:16:51 +020094 default_{{ HOSTNAME_GTW01 }}: +110
95 default_{{ HOSTNAME_PRX01 }}: +121
96 ip_ranges:
97 dhcp: [+10, -10]
98
99
100 groups:
101 - name: default
102 driver:
103 name: devops.driver.libvirt
104 params:
105 connection_string: !os_env CONNECTION_STRING, qemu:///system
106 storage_pool_name: !os_env STORAGE_POOL_NAME, default
107 stp: False
108 hpet: False
109 enable_acpi: true
110 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
112
113 network_pools:
114 admin: admin-pool01
115 private: private-pool01
116 tenant: tenant-pool01
117 external: external-pool01
118
119 l2_network_devices:
120 private:
121 address_pool: private-pool01
122 dhcp: true
Dennis Dmitrieva5978eb2018-02-21 10:12:33 +0200123 forward:
124 mode: route
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200125
126 admin:
127 address_pool: admin-pool01
128 dhcp: true
129 forward:
130 mode: nat
131
132 tenant:
133 address_pool: tenant-pool01
134 dhcp: true
135
136 external:
137 address_pool: external-pool01
138 dhcp: true
139 forward:
140 mode: nat
141
142
143 group_volumes:
144 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200145 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
146 format: qcow2
147 - name: cfg01_day01_image # Pre-configured day01 image
148 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200149 format: qcow2
Tatyana Leontovichded29902018-01-30 09:53:34 +0200150 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
151 source_image: !os_env MCP_IMAGE_PATH1604
152 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200153
154 nodes:
155 - name: {{ HOSTNAME_CFG01 }}
156 role: salt_master
157 params:
158 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200159 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200160 boot:
161 - hd
162 cloud_init_volume_name: iso
163 cloud_init_iface_up: ens3
164 volumes:
165 - name: system
166 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200167 backing_store: cfg01_day01_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200168 format: qcow2
169 - name: iso # Volume with name 'iso' will be used
170 # for store image with cloud-init metadata.
171 capacity: 1
172 format: raw
173 device: cdrom
174 bus: ide
175 cloudinit_meta_data: *cloudinit_meta_data
176 cloudinit_user_data: *cloudinit_user_data_cfg01
177
178 interfaces:
179 - label: ens3
180 l2_network_device: admin
181 interface_model: *interface_model
182 - label: ens4
183 l2_network_device: private
184 interface_model: *interface_model
185 network_config:
186 ens3:
187 networks:
188 - admin
189 ens4:
190 networks:
191 - private
192
193 - name: {{ HOSTNAME_CTL01 }}
194 role: salt_minion
195 params:
196 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200197 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200198 boot:
199 - hd
200 cloud_init_volume_name: iso
201 cloud_init_iface_up: ens3
202 volumes:
203 - name: system
204 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200205 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200206 format: qcow2
207 - name: cinder
208 capacity: 50
209 format: qcow2
210 - name: iso # Volume with name 'iso' will be used
211 # for store image with cloud-init metadata.
212 capacity: 1
213 format: raw
214 device: cdrom
215 bus: ide
216 cloudinit_meta_data: *cloudinit_meta_data
217 cloudinit_user_data: *cloudinit_user_data_1604
218
219 interfaces: &interfaces
220 - label: ens3
221 l2_network_device: admin
222 interface_model: *interface_model
223 - label: ens4
224 l2_network_device: private
225 interface_model: *interface_model
226 network_config: &network_config
227 ens3:
228 networks:
229 - admin
230 ens4:
231 networks:
232 - private
233
234 - name: {{ HOSTNAME_CTL02 }}
235 role: salt_minion
236 params:
237 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200238 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200239 boot:
240 - hd
241 cloud_init_volume_name: iso
242 cloud_init_iface_up: ens3
243 volumes:
244 - name: system
245 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200246 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200247 format: qcow2
248 - name: cinder
249 capacity: 50
250 format: qcow2
251 - name: iso # Volume with name 'iso' will be used
252 # for store image with cloud-init metadata.
253 capacity: 1
254 format: raw
255 device: cdrom
256 bus: ide
257 cloudinit_meta_data: *cloudinit_meta_data
258 cloudinit_user_data: *cloudinit_user_data_1604
259
260 interfaces: *interfaces
261 network_config: *network_config
262
263 - name: {{ HOSTNAME_CTL03 }}
264 role: salt_minion
265 params:
266 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200267 memory: !os_env SLAVE_NODE_MEMORY, 16384
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200268 boot:
269 - hd
270 cloud_init_volume_name: iso
271 cloud_init_iface_up: ens3
272 volumes:
273 - name: system
274 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200275 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200276 format: qcow2
277 - name: cinder
278 capacity: 50
279 format: qcow2
280 - name: iso # Volume with name 'iso' will be used
281 # for store image with cloud-init metadata.
282 capacity: 1
283 format: raw
284 device: cdrom
285 bus: ide
286 cloudinit_meta_data: *cloudinit_meta_data
287 cloudinit_user_data: *cloudinit_user_data_1604
288
289 interfaces: *interfaces
290 network_config: *network_config
291
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200292 - name: {{ HOSTNAME_PRX01 }}
293 role: salt_minion
294 params:
295 vcpu: !os_env SLAVE_NODE_CPU, 1
296 memory: !os_env SLAVE_NODE_MEMORY, 2048
297 boot:
298 - hd
299 cloud_init_volume_name: iso
300 cloud_init_iface_up: ens3
301 volumes:
302 - name: system
303 capacity: !os_env NODE_VOLUME_SIZE, 150
Tatyana Leontovichded29902018-01-30 09:53:34 +0200304 backing_store: mcp_ubuntu_1604_image
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200305 format: qcow2
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200306 - name: cinder
307 capacity: 50
308 format: qcow2
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200309 - name: iso # Volume with name 'iso' will be used
310 # for store image with cloud-init metadata.
311 capacity: 1
312 format: raw
313 device: cdrom
314 bus: ide
315 cloudinit_meta_data: *cloudinit_meta_data
316 cloudinit_user_data: *cloudinit_user_data_1604
317
318 interfaces: *interfaces
319 network_config: *network_config
320
321 - name: {{ HOSTNAME_CMP01 }}
322 role: salt_minion
323 params:
324 vcpu: !os_env SLAVE_NODE_CPU, 3
325 memory: !os_env SLAVE_NODE_MEMORY, 4096
326 boot:
327 - hd
328 cloud_init_volume_name: iso
329 cloud_init_iface_up: ens3
330 volumes:
331 - name: system
332 capacity: !os_env NODE_VOLUME_SIZE, 150
333 backing_store: cloudimage1604
334 format: qcow2
335 - name: iso # Volume with name 'iso' will be used
336 # for store image with cloud-init metadata.
337 capacity: 1
338 format: raw
339 device: cdrom
340 bus: ide
341 cloudinit_meta_data: *cloudinit_meta_data
342 cloudinit_user_data: *cloudinit_user_data_1604
343
344
345 interfaces: &all_interfaces
346 - label: ens3
347 l2_network_device: admin
348 interface_model: *interface_model
349 - label: ens4
350 l2_network_device: private
351 interface_model: *interface_model
352 - label: ens5
353 l2_network_device: tenant
354 interface_model: *interface_model
355 - label: ens6
356 l2_network_device: external
357 interface_model: *interface_model
358 network_config: &all_network_config
359 ens3:
360 networks:
361 - admin
362 ens4:
363 networks:
364 - private
365 ens5:
366 networks:
367 - tenant
368 ens6:
369 networks:
370 - external
371
372 - name: {{ HOSTNAME_CMP02 }}
373 role: salt_minion
374 params:
375 vcpu: !os_env SLAVE_NODE_CPU, 3
376 memory: !os_env SLAVE_NODE_MEMORY, 4096
377 boot:
378 - hd
379 cloud_init_volume_name: iso
380 cloud_init_iface_up: ens3
381 volumes:
382 - name: system
383 capacity: !os_env NODE_VOLUME_SIZE, 150
384 backing_store: cloudimage1604
385 format: qcow2
386 - name: iso # Volume with name 'iso' will be used
387 # for store image with cloud-init metadata.
388 capacity: 1
389 format: raw
390 device: cdrom
391 bus: ide
392 cloudinit_meta_data: *cloudinit_meta_data
393 cloudinit_user_data: *cloudinit_user_data_1604
394
395 interfaces: *all_interfaces
396 network_config: *all_network_config
397
398 - name: {{ HOSTNAME_GTW01 }}
399 role: salt_minion
400 params:
Dennis Dmitrievfd3370b2018-03-07 00:50:35 +0200401 vcpu: !os_env SLAVE_NODE_CPU, 4
402 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200403 boot:
404 - hd
405 cloud_init_volume_name: iso
406 cloud_init_iface_up: ens3
407 volumes:
408 - name: system
409 capacity: !os_env NODE_VOLUME_SIZE, 150
410 backing_store: cloudimage1604
411 format: qcow2
412 - name: iso # Volume with name 'iso' will be used
413 # for store image with cloud-init metadata.
414 capacity: 1
415 format: raw
416 device: cdrom
417 bus: ide
418 cloudinit_meta_data: *cloudinit_meta_data
419 cloudinit_user_data: *cloudinit_user_data_1604
420
421 interfaces: *all_interfaces
422 network_config: *all_network_config