blob: 1291dae0302f98d3c357fa8e84de039d8291f147 [file] [log] [blame]
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03003
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03004{% import 'virtual-mcp11-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03008---
9aliases:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030010 - &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 }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-ovs') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030017{% 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) %}
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:
Dennis Dmitrievab83ea42017-05-12 16:52:45 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030029
30 address_pools:
31 private-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030032 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030033 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
Tatyana Leontovich1328b3d2017-10-04 18:48:52 +030037 default_{{ HOSTNAME_CFG01 }}: +90
38 default_{{ HOSTNAME_CTL01 }}: +91
39 default_{{ HOSTNAME_CTL02 }}: +92
40 default_{{ HOSTNAME_CTL03 }}: +93
41 default_{{ HOSTNAME_CMP01 }}: +95
42 default_{{ HOSTNAME_CMP02 }}: +96
43 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030044 default_{{ HOSTNAME_PRX01 }}: +121
45 ip_ranges:
46 dhcp: [+90, -10]
47
48 admin-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030049 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030050 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030054 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovichcc864bd2017-10-04 18:35:44 +030055 default_{{ HOSTNAME_CTL01 }}: +91
56 default_{{ HOSTNAME_CTL02 }}: +92
57 default_{{ HOSTNAME_CTL03 }}: +93
58 default_{{ HOSTNAME_CMP01 }}: +95
59 default_{{ HOSTNAME_CMP02 }}: +96
60 default_{{ HOSTNAME_GTW01 }}: +94
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030061 default_{{ HOSTNAME_PRX01 }}: +121
62 ip_ranges:
63 dhcp: [+90, -10]
64
65 tenant-pool01:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030066 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030067 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:
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030083 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030084 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: [+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
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300111 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300112
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
123
124 admin:
125 address_pool: admin-pool01
126 dhcp: true
127 forward:
128 mode: nat
129
130 tenant:
131 address_pool: tenant-pool01
132 dhcp: true
133
134 external:
135 address_pool: external-pool01
136 dhcp: true
137 forward:
138 mode: nat
139
140
141 group_volumes:
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300142 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200143 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
144 format: qcow2
145
146 - name: cfg01_day01_image # Pre-configured day01 image
147 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 Leontovichd8bf14f2017-04-19 12:20:50 +0300148 format: qcow2
149
150 nodes:
151 - name: {{ HOSTNAME_CFG01 }}
152 role: salt_master
153 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300154 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300155 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300156 boot:
157 - hd
158 cloud_init_volume_name: iso
159 cloud_init_iface_up: ens3
160 volumes:
161 - name: system
162 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200163 backing_store: cfg01_day01_image
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300164 format: qcow2
165 - name: iso # Volume with name 'iso' will be used
166 # for store image with cloud-init metadata.
167 capacity: 1
168 format: raw
169 device: cdrom
170 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300171 cloudinit_meta_data: *cloudinit_meta_data
172 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300173
174 interfaces:
175 - label: ens3
176 l2_network_device: admin
177 interface_model: *interface_model
178 - label: ens4
179 l2_network_device: private
180 interface_model: *interface_model
181 network_config:
182 ens3:
183 networks:
184 - admin
185 ens4:
186 networks:
187 - private
188
189 - name: {{ HOSTNAME_CTL01 }}
190 role: salt_minion
191 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200192 vcpu: !os_env SLAVE_NODE_CPU, 3
193 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300194 boot:
195 - hd
196 cloud_init_volume_name: iso
197 cloud_init_iface_up: ens3
198 volumes:
199 - name: system
200 capacity: !os_env NODE_VOLUME_SIZE, 150
201 backing_store: cloudimage1604
202 format: qcow2
203 - name: cinder
204 capacity: 50
205 format: qcow2
206 - name: iso # Volume with name 'iso' will be used
207 # for store image with cloud-init metadata.
208 capacity: 1
209 format: raw
210 device: cdrom
211 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300212 cloudinit_meta_data: *cloudinit_meta_data
213 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300214
215 interfaces: &interfaces
216 - label: ens3
217 l2_network_device: admin
218 interface_model: *interface_model
219 - label: ens4
220 l2_network_device: private
221 interface_model: *interface_model
222 network_config: &network_config
223 ens3:
224 networks:
225 - admin
226 ens4:
227 networks:
228 - private
229
230 - name: {{ HOSTNAME_CTL02 }}
231 role: salt_minion
232 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200233 vcpu: !os_env SLAVE_NODE_CPU, 3
234 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300235 boot:
236 - hd
237 cloud_init_volume_name: iso
238 cloud_init_iface_up: ens3
239 volumes:
240 - name: system
241 capacity: !os_env NODE_VOLUME_SIZE, 150
242 backing_store: cloudimage1604
243 format: qcow2
244 - name: cinder
245 capacity: 50
246 format: qcow2
247 - name: iso # Volume with name 'iso' will be used
248 # for store image with cloud-init metadata.
249 capacity: 1
250 format: raw
251 device: cdrom
252 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300253 cloudinit_meta_data: *cloudinit_meta_data
254 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300255
256 interfaces: *interfaces
257 network_config: *network_config
258
259 - name: {{ HOSTNAME_CTL03 }}
260 role: salt_minion
261 params:
Dennis Dmitriev4a43e9a2017-11-10 13:08:40 +0200262 vcpu: !os_env SLAVE_NODE_CPU, 3
263 memory: !os_env SLAVE_NODE_MEMORY, 12288
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300264 boot:
265 - hd
266 cloud_init_volume_name: iso
267 cloud_init_iface_up: ens3
268 volumes:
269 - name: system
270 capacity: !os_env NODE_VOLUME_SIZE, 150
271 backing_store: cloudimage1604
272 format: qcow2
273 - name: cinder
274 capacity: 50
275 format: qcow2
276 - name: iso # Volume with name 'iso' will be used
277 # for store image with cloud-init metadata.
278 capacity: 1
279 format: raw
280 device: cdrom
281 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300282 cloudinit_meta_data: *cloudinit_meta_data
283 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300284
285 interfaces: *interfaces
286 network_config: *network_config
287
288 - name: {{ HOSTNAME_PRX01 }}
289 role: salt_minion
290 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300291 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300292 memory: !os_env SLAVE_NODE_MEMORY, 8192
293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: !os_env NODE_VOLUME_SIZE, 150
300 backing_store: cloudimage1604
301 format: qcow2
302 - name: cinder
303 capacity: 50
304 format: qcow2
305 - name: iso # Volume with name 'iso' will be used
306 # for store image with cloud-init metadata.
307 capacity: 1
308 format: raw
309 device: cdrom
310 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300311 cloudinit_meta_data: *cloudinit_meta_data
312 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300313
314 interfaces: *interfaces
315 network_config: *network_config
316
317
318 - name: {{ HOSTNAME_CMP01 }}
319 role: salt_minion
320 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300321 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300322 memory: !os_env SLAVE_NODE_MEMORY, 4096
323 boot:
324 - hd
325 cloud_init_volume_name: iso
326 cloud_init_iface_up: ens3
327 volumes:
328 - name: system
329 capacity: !os_env NODE_VOLUME_SIZE, 150
330 backing_store: cloudimage1604
331 format: qcow2
332 - name: iso # Volume with name 'iso' will be used
333 # for store image with cloud-init metadata.
334 capacity: 1
335 format: raw
336 device: cdrom
337 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300338 cloudinit_meta_data: *cloudinit_meta_data
339 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300340
341
342 interfaces: &all_interfaces
343 - label: ens3
344 l2_network_device: admin
345 interface_model: *interface_model
346 - label: ens4
347 l2_network_device: private
348 interface_model: *interface_model
349 - label: ens5
350 l2_network_device: tenant
351 interface_model: *interface_model
352 - label: ens6
353 l2_network_device: external
354 interface_model: *interface_model
355 network_config: &all_network_config
356 ens3:
357 networks:
358 - admin
359 ens4:
360 networks:
361 - private
362 ens5:
363 networks:
364 - tenant
365 ens6:
366 networks:
367 - external
368
369 - name: {{ HOSTNAME_CMP02 }}
370 role: salt_minion
371 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300372 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300373 memory: !os_env SLAVE_NODE_MEMORY, 4096
374 boot:
375 - hd
376 cloud_init_volume_name: iso
377 cloud_init_iface_up: ens3
378 volumes:
379 - name: system
380 capacity: !os_env NODE_VOLUME_SIZE, 150
381 backing_store: cloudimage1604
382 format: qcow2
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385 capacity: 1
386 format: raw
387 device: cdrom
388 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300389 cloudinit_meta_data: *cloudinit_meta_data
390 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300391
392 interfaces: *all_interfaces
393 network_config: *all_network_config
394
395 - name: {{ HOSTNAME_GTW01 }}
396 role: salt_minion
397 params:
398 vcpu: !os_env SLAVE_NODE_CPU, 1
399 memory: !os_env SLAVE_NODE_MEMORY, 2048
400 boot:
401 - hd
402 cloud_init_volume_name: iso
403 cloud_init_iface_up: ens3
404 volumes:
405 - name: system
406 capacity: !os_env NODE_VOLUME_SIZE, 150
407 backing_store: cloudimage1604
408 format: qcow2
409 - name: iso # Volume with name 'iso' will be used
410 # for store image with cloud-init metadata.
411 capacity: 1
412 format: raw
413 device: cdrom
414 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300415 cloudinit_meta_data: *cloudinit_meta_data
416 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300417
418 interfaces: *all_interfaces
419 network_config: *all_network_config