blob: 52348acf4654ae54fb724a67d5986ac6582bd224 [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-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-dvr/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-dvr') %}
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 Dmitrievb4b5c102017-05-10 17:09:06 +030028 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-dvr_' + 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 Leontovich6c56e362017-10-04 18:53:21 +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 Leontovich6c56e362017-10-04 18:53:21 +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.
143 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
144 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
145 format: qcow2
146
147 nodes:
148 - name: {{ HOSTNAME_CFG01 }}
149 role: salt_master
150 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300151 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300152 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300153 boot:
154 - hd
155 cloud_init_volume_name: iso
156 cloud_init_iface_up: ens3
157 volumes:
158 - name: system
159 capacity: !os_env NODE_VOLUME_SIZE, 150
160 backing_store: cloudimage1604
161 format: qcow2
162 - name: iso # Volume with name 'iso' will be used
163 # for store image with cloud-init metadata.
164 capacity: 1
165 format: raw
166 device: cdrom
167 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300168 cloudinit_meta_data: *cloudinit_meta_data
169 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300170
171 interfaces:
172 - label: ens3
173 l2_network_device: admin
174 interface_model: *interface_model
175 - label: ens4
176 l2_network_device: private
177 interface_model: *interface_model
178 network_config:
179 ens3:
180 networks:
181 - admin
182 ens4:
183 networks:
184 - private
185
186 - name: {{ HOSTNAME_CTL01 }}
187 role: salt_minion
188 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300189 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300190 memory: !os_env SLAVE_NODE_MEMORY, 8192
191 boot:
192 - hd
193 cloud_init_volume_name: iso
194 cloud_init_iface_up: ens3
195 volumes:
196 - name: system
197 capacity: !os_env NODE_VOLUME_SIZE, 150
198 backing_store: cloudimage1604
199 format: qcow2
200 - name: cinder
201 capacity: 50
202 format: qcow2
203 - name: iso # Volume with name 'iso' will be used
204 # for store image with cloud-init metadata.
205 capacity: 1
206 format: raw
207 device: cdrom
208 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300209 cloudinit_meta_data: *cloudinit_meta_data
210 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300211
212 interfaces: &interfaces
213 - label: ens3
214 l2_network_device: admin
215 interface_model: *interface_model
216 - label: ens4
217 l2_network_device: private
218 interface_model: *interface_model
219 network_config: &network_config
220 ens3:
221 networks:
222 - admin
223 ens4:
224 networks:
225 - private
226
227 - name: {{ HOSTNAME_CTL02 }}
228 role: salt_minion
229 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300230 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300231 memory: !os_env SLAVE_NODE_MEMORY, 8192
232 boot:
233 - hd
234 cloud_init_volume_name: iso
235 cloud_init_iface_up: ens3
236 volumes:
237 - name: system
238 capacity: !os_env NODE_VOLUME_SIZE, 150
239 backing_store: cloudimage1604
240 format: qcow2
241 - name: cinder
242 capacity: 50
243 format: qcow2
244 - name: iso # Volume with name 'iso' will be used
245 # for store image with cloud-init metadata.
246 capacity: 1
247 format: raw
248 device: cdrom
249 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300250 cloudinit_meta_data: *cloudinit_meta_data
251 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300252
253 interfaces: *interfaces
254 network_config: *network_config
255
256 - name: {{ HOSTNAME_CTL03 }}
257 role: salt_minion
258 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300259 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300260 memory: !os_env SLAVE_NODE_MEMORY, 8192
261 boot:
262 - hd
263 cloud_init_volume_name: iso
264 cloud_init_iface_up: ens3
265 volumes:
266 - name: system
267 capacity: !os_env NODE_VOLUME_SIZE, 150
268 backing_store: cloudimage1604
269 format: qcow2
270 - name: cinder
271 capacity: 50
272 format: qcow2
273 - name: iso # Volume with name 'iso' will be used
274 # for store image with cloud-init metadata.
275 capacity: 1
276 format: raw
277 device: cdrom
278 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300279 cloudinit_meta_data: *cloudinit_meta_data
280 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300281
282 interfaces: *interfaces
283 network_config: *network_config
284
285 - name: {{ HOSTNAME_PRX01 }}
286 role: salt_minion
287 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300288 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300289 memory: !os_env SLAVE_NODE_MEMORY, 8192
290 boot:
291 - hd
292 cloud_init_volume_name: iso
293 cloud_init_iface_up: ens3
294 volumes:
295 - name: system
296 capacity: !os_env NODE_VOLUME_SIZE, 150
297 backing_store: cloudimage1604
298 format: qcow2
299 - name: cinder
300 capacity: 50
301 format: qcow2
302 - name: iso # Volume with name 'iso' will be used
303 # for store image with cloud-init metadata.
304 capacity: 1
305 format: raw
306 device: cdrom
307 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300308 cloudinit_meta_data: *cloudinit_meta_data
309 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300310
311 interfaces: *interfaces
312 network_config: *network_config
313
314
315 - name: {{ HOSTNAME_CMP01 }}
316 role: salt_minion
317 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300318 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300319 memory: !os_env SLAVE_NODE_MEMORY, 4096
320 boot:
321 - hd
322 cloud_init_volume_name: iso
323 cloud_init_iface_up: ens3
324 volumes:
325 - name: system
326 capacity: !os_env NODE_VOLUME_SIZE, 150
327 backing_store: cloudimage1604
328 format: qcow2
329 - name: iso # Volume with name 'iso' will be used
330 # for store image with cloud-init metadata.
331 capacity: 1
332 format: raw
333 device: cdrom
334 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300335 cloudinit_meta_data: *cloudinit_meta_data
336 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300337
338
339 interfaces: &all_interfaces
340 - label: ens3
341 l2_network_device: admin
342 interface_model: *interface_model
343 - label: ens4
344 l2_network_device: private
345 interface_model: *interface_model
346 - label: ens5
347 l2_network_device: tenant
348 interface_model: *interface_model
349 - label: ens6
350 l2_network_device: external
351 interface_model: *interface_model
352 network_config: &all_network_config
353 ens3:
354 networks:
355 - admin
356 ens4:
357 networks:
358 - private
359 ens5:
360 networks:
361 - tenant
362 ens6:
363 networks:
364 - external
365
366 - name: {{ HOSTNAME_CMP02 }}
367 role: salt_minion
368 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300369 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300370 memory: !os_env SLAVE_NODE_MEMORY, 4096
371 boot:
372 - hd
373 cloud_init_volume_name: iso
374 cloud_init_iface_up: ens3
375 volumes:
376 - name: system
377 capacity: !os_env NODE_VOLUME_SIZE, 150
378 backing_store: cloudimage1604
379 format: qcow2
380 - name: iso # Volume with name 'iso' will be used
381 # for store image with cloud-init metadata.
382 capacity: 1
383 format: raw
384 device: cdrom
385 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300386 cloudinit_meta_data: *cloudinit_meta_data
387 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300388
389 interfaces: *all_interfaces
390 network_config: *all_network_config
391
392 - name: {{ HOSTNAME_GTW01 }}
393 role: salt_minion
394 params:
395 vcpu: !os_env SLAVE_NODE_CPU, 1
396 memory: !os_env SLAVE_NODE_MEMORY, 2048
397 boot:
398 - hd
399 cloud_init_volume_name: iso
400 cloud_init_iface_up: ens3
401 volumes:
402 - name: system
403 capacity: !os_env NODE_VOLUME_SIZE, 150
404 backing_store: cloudimage1604
405 format: qcow2
406 - name: iso # Volume with name 'iso' will be used
407 # for store image with cloud-init metadata.
408 capacity: 1
409 format: raw
410 device: cdrom
411 bus: ide
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300412 cloudinit_meta_data: *cloudinit_meta_data
413 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300414
415 interfaces: *all_interfaces
416 network_config: *all_network_config