blob: 91c7a8b75ff2ce48f61c4b28efd8ae8c64f73442 [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-mcp-ocata-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-ocata-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-ocata-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +03007
Tatyana Leontovich38be41b2017-04-12 14:45:23 +03008---
9aliases:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +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 Leontovich38be41b2017-04-12 14:45:23 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-ovs') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +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) %}
Tatyana Leontovich126b0032017-08-30 20:51:20 +030023{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030026{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
28
29template:
30 devops_settings:
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030031 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030032
33 address_pools:
34 private-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030035 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030036 params:
37 ip_reserved:
38 gateway: +1
39 l2_network_device: +1
40 default_{{ HOSTNAME_CFG01 }}: +100
41 default_{{ HOSTNAME_CTL01 }}: +101
42 default_{{ HOSTNAME_CTL02 }}: +102
43 default_{{ HOSTNAME_CTL03 }}: +103
44 default_{{ HOSTNAME_CMP01 }}: +105
45 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +030046 default_{{ HOSTNAME_MON01 }}: +107
47 default_{{ HOSTNAME_MON02 }}: +108
48 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030049 default_{{ HOSTNAME_GTW01 }}: +110
50 default_{{ HOSTNAME_PRX01 }}: +121
51 ip_ranges:
52 dhcp: [+90, -10]
53
54 admin-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030055 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030056 params:
57 ip_reserved:
58 gateway: +1
59 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030060 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030061 default_{{ HOSTNAME_CTL01 }}: +101
62 default_{{ HOSTNAME_CTL02 }}: +102
63 default_{{ HOSTNAME_CTL03 }}: +103
64 default_{{ HOSTNAME_CMP01 }}: +105
65 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +030066 default_{{ HOSTNAME_MON01 }}: +107
67 default_{{ HOSTNAME_MON02 }}: +108
68 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030069 default_{{ HOSTNAME_GTW01 }}: +110
70 default_{{ HOSTNAME_PRX01 }}: +121
71 ip_ranges:
72 dhcp: [+90, -10]
73
74 tenant-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030075 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030076 params:
77 ip_reserved:
78 gateway: +1
79 l2_network_device: +1
80 default_{{ HOSTNAME_CFG01 }}: +100
81 default_{{ HOSTNAME_CTL01 }}: +101
82 default_{{ HOSTNAME_CTL02 }}: +102
83 default_{{ HOSTNAME_CTL03 }}: +103
84 default_{{ HOSTNAME_CMP01 }}: +105
85 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +030086 default_{{ HOSTNAME_MON01 }}: +107
87 default_{{ HOSTNAME_MON02 }}: +108
88 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030089 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
91 ip_ranges:
92 dhcp: [+10, -10]
93
94 external-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030095 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030096 params:
97 ip_reserved:
98 gateway: +1
99 l2_network_device: +1
100 default_{{ HOSTNAME_CFG01 }}: +100
101 default_{{ HOSTNAME_CTL01 }}: +101
102 default_{{ HOSTNAME_CTL02 }}: +102
103 default_{{ HOSTNAME_CTL03 }}: +103
104 default_{{ HOSTNAME_CMP01 }}: +105
105 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300106 default_{{ HOSTNAME_MON01 }}: +107
107 default_{{ HOSTNAME_MON02 }}: +108
108 default_{{ HOSTNAME_MON03 }}: +109
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300109 default_{{ HOSTNAME_GTW01 }}: +110
110 default_{{ HOSTNAME_PRX01 }}: +121
111 ip_ranges:
112 dhcp: [+10, -10]
113
114
115 groups:
116 - name: default
117 driver:
118 name: devops.driver.libvirt
119 params:
120 connection_string: !os_env CONNECTION_STRING, qemu:///system
121 storage_pool_name: !os_env STORAGE_POOL_NAME, default
122 stp: False
123 hpet: False
124 enable_acpi: true
125 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300126 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300127
128 network_pools:
129 admin: admin-pool01
130 private: private-pool01
131 tenant: tenant-pool01
132 external: external-pool01
133
134 l2_network_devices:
135 private:
136 address_pool: private-pool01
137 dhcp: true
138
139 admin:
140 address_pool: admin-pool01
141 dhcp: true
142 forward:
143 mode: nat
144
145 tenant:
146 address_pool: tenant-pool01
147 dhcp: true
148
149 external:
150 address_pool: external-pool01
151 dhcp: true
152 forward:
153 mode: nat
154
155
156 group_volumes:
157 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
158 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
159 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
160 format: qcow2
161
162 nodes:
163 - name: {{ HOSTNAME_CFG01 }}
164 role: salt_master
165 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300166 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300167 memory: !os_env SLAVE_NODE_MEMORY, 2048
168 boot:
169 - hd
170 cloud_init_volume_name: iso
171 cloud_init_iface_up: ens3
172 volumes:
173 - name: system
174 capacity: !os_env NODE_VOLUME_SIZE, 150
175 backing_store: cloudimage1604
176 format: qcow2
177 - name: iso # Volume with name 'iso' will be used
178 # for store image with cloud-init metadata.
179 capacity: 1
180 format: raw
181 device: cdrom
182 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300183 cloudinit_meta_data: *cloudinit_meta_data
184 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300185
186 interfaces:
187 - label: ens3
188 l2_network_device: admin
189 interface_model: *interface_model
190 - label: ens4
191 l2_network_device: private
192 interface_model: *interface_model
193 network_config:
194 ens3:
195 networks:
196 - admin
197 ens4:
198 networks:
199 - private
200
201 - name: {{ HOSTNAME_CTL01 }}
202 role: salt_minion
203 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300204 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300205 memory: !os_env SLAVE_NODE_MEMORY, 8192
206 boot:
207 - hd
208 cloud_init_volume_name: iso
209 cloud_init_iface_up: ens3
210 volumes:
211 - name: system
212 capacity: !os_env NODE_VOLUME_SIZE, 150
213 backing_store: cloudimage1604
214 format: qcow2
215 - name: cinder
216 capacity: 50
217 format: qcow2
218 - name: iso # Volume with name 'iso' will be used
219 # for store image with cloud-init metadata.
220 capacity: 1
221 format: raw
222 device: cdrom
223 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300224 cloudinit_meta_data: *cloudinit_meta_data
225 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300226
227 interfaces: &interfaces
228 - label: ens3
229 l2_network_device: admin
230 interface_model: *interface_model
231 - label: ens4
232 l2_network_device: private
233 interface_model: *interface_model
234 network_config: &network_config
235 ens3:
236 networks:
237 - admin
238 ens4:
239 networks:
240 - private
241
242 - name: {{ HOSTNAME_CTL02 }}
243 role: salt_minion
244 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300245 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300246 memory: !os_env SLAVE_NODE_MEMORY, 8192
247 boot:
248 - hd
249 cloud_init_volume_name: iso
250 cloud_init_iface_up: ens3
251 volumes:
252 - name: system
253 capacity: !os_env NODE_VOLUME_SIZE, 150
254 backing_store: cloudimage1604
255 format: qcow2
256 - name: cinder
257 capacity: 50
258 format: qcow2
259 - name: iso # Volume with name 'iso' will be used
260 # for store image with cloud-init metadata.
261 capacity: 1
262 format: raw
263 device: cdrom
264 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300265 cloudinit_meta_data: *cloudinit_meta_data
266 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300267
268 interfaces: *interfaces
269 network_config: *network_config
270
271 - name: {{ HOSTNAME_CTL03 }}
272 role: salt_minion
273 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300274 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300275 memory: !os_env SLAVE_NODE_MEMORY, 8192
276 boot:
277 - hd
278 cloud_init_volume_name: iso
279 cloud_init_iface_up: ens3
280 volumes:
281 - name: system
282 capacity: !os_env NODE_VOLUME_SIZE, 150
283 backing_store: cloudimage1604
284 format: qcow2
285 - name: cinder
286 capacity: 50
287 format: qcow2
288 - name: iso # Volume with name 'iso' will be used
289 # for store image with cloud-init metadata.
290 capacity: 1
291 format: raw
292 device: cdrom
293 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300294 cloudinit_meta_data: *cloudinit_meta_data
295 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300296
297 interfaces: *interfaces
298 network_config: *network_config
Tatyana Leontovich6faca6c2017-09-06 15:57:16 +0300299
300 - name: {{ HOSTNAME_MON01 }}
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300301 role: salt_minion
302 params:
303 vcpu: !os_env SLAVE_NODE_CPU, 3
304 memory: !os_env SLAVE_NODE_MEMORY, 2048
305 boot:
306 - hd
307 cloud_init_volume_name: iso
308 cloud_init_iface_up: ens3
309 volumes:
310 - name: system
311 capacity: !os_env NODE_VOLUME_SIZE, 150
312 backing_store: cloudimage1604
313 format: qcow2
314 - name: iso # Volume with name 'iso' will be used
315 # for store image with cloud-init metadata.
316 capacity: 1
317 format: raw
318 device: cdrom
319 bus: ide
320 cloudinit_meta_data: !include underlay--meta-data.yaml
321 cloudinit_user_data: !include underlay--user-data1604.yaml
322
323 interfaces: *interfaces
324 network_config: *network_config
325
326 - name: {{ HOSTNAME_MON02 }}
327 role: salt_minion
328 params:
329 vcpu: !os_env SLAVE_NODE_CPU, 3
330 memory: !os_env SLAVE_NODE_MEMORY, 2048
331 boot:
332 - hd
333 cloud_init_volume_name: iso
334 cloud_init_iface_up: ens3
335 volumes:
336 - name: system
337 capacity: !os_env NODE_VOLUME_SIZE, 150
338 backing_store: cloudimage1604
339 format: qcow2
340 - name: iso # Volume with name 'iso' will be used
341 # for store image with cloud-init metadata.
342 capacity: 1
343 format: raw
344 device: cdrom
345 bus: ide
346 cloudinit_meta_data: !include underlay--meta-data.yaml
347 cloudinit_user_data: !include underlay--user-data1604.yaml
348
349 interfaces: *interfaces
350 network_config: *network_config
351
352 - name: {{ HOSTNAME_MON03 }}
353 role: salt_minion
354 params:
355 vcpu: !os_env SLAVE_NODE_CPU, 3
356 memory: !os_env SLAVE_NODE_MEMORY, 2048
357 boot:
358 - hd
359 cloud_init_volume_name: iso
360 cloud_init_iface_up: ens3
361 volumes:
362 - name: system
363 capacity: !os_env NODE_VOLUME_SIZE, 150
364 backing_store: cloudimage1604
365 format: qcow2
366 - name: iso # Volume with name 'iso' will be used
367 # for store image with cloud-init metadata.
368 capacity: 1
369 format: raw
370 device: cdrom
371 bus: ide
372 cloudinit_meta_data: !include underlay--meta-data.yaml
373 cloudinit_user_data: !include underlay--user-data1604.yaml
374
375 interfaces: *interfaces
376 network_config: *network_config
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300377
378 - name: {{ HOSTNAME_PRX01 }}
379 role: salt_minion
380 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300381 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich126b0032017-08-30 20:51:20 +0300382 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300383 boot:
384 - hd
385 cloud_init_volume_name: iso
386 cloud_init_iface_up: ens3
387 volumes:
388 - name: system
389 capacity: !os_env NODE_VOLUME_SIZE, 150
390 backing_store: cloudimage1604
391 format: qcow2
392 - name: cinder
393 capacity: 50
394 format: qcow2
395 - name: iso # Volume with name 'iso' will be used
396 # for store image with cloud-init metadata.
397 capacity: 1
398 format: raw
399 device: cdrom
400 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300401 cloudinit_meta_data: *cloudinit_meta_data
402 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300403
404 interfaces: *interfaces
405 network_config: *network_config
406
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300407 - name: {{ HOSTNAME_CMP01 }}
408 role: salt_minion
409 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300410 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300411 memory: !os_env SLAVE_NODE_MEMORY, 4096
412 boot:
413 - hd
414 cloud_init_volume_name: iso
415 cloud_init_iface_up: ens3
416 volumes:
417 - name: system
418 capacity: !os_env NODE_VOLUME_SIZE, 150
419 backing_store: cloudimage1604
420 format: qcow2
421 - name: iso # Volume with name 'iso' will be used
422 # for store image with cloud-init metadata.
423 capacity: 1
424 format: raw
425 device: cdrom
426 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300427 cloudinit_meta_data: *cloudinit_meta_data
428 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300429
430
431 interfaces: &all_interfaces
432 - label: ens3
433 l2_network_device: admin
434 interface_model: *interface_model
435 - label: ens4
436 l2_network_device: private
437 interface_model: *interface_model
438 - label: ens5
439 l2_network_device: tenant
440 interface_model: *interface_model
441 - label: ens6
442 l2_network_device: external
443 interface_model: *interface_model
444 network_config: &all_network_config
445 ens3:
446 networks:
447 - admin
448 ens4:
449 networks:
450 - private
451 ens5:
452 networks:
453 - tenant
454 ens6:
455 networks:
456 - external
457
458 - name: {{ HOSTNAME_CMP02 }}
459 role: salt_minion
460 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300461 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300462 memory: !os_env SLAVE_NODE_MEMORY, 4096
463 boot:
464 - hd
465 cloud_init_volume_name: iso
466 cloud_init_iface_up: ens3
467 volumes:
468 - name: system
469 capacity: !os_env NODE_VOLUME_SIZE, 150
470 backing_store: cloudimage1604
471 format: qcow2
472 - name: iso # Volume with name 'iso' will be used
473 # for store image with cloud-init metadata.
474 capacity: 1
475 format: raw
476 device: cdrom
477 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300478 cloudinit_meta_data: *cloudinit_meta_data
479 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300480
481 interfaces: *all_interfaces
482 network_config: *all_network_config
483
484 - name: {{ HOSTNAME_GTW01 }}
485 role: salt_minion
486 params:
487 vcpu: !os_env SLAVE_NODE_CPU, 1
488 memory: !os_env SLAVE_NODE_MEMORY, 2048
489 boot:
490 - hd
491 cloud_init_volume_name: iso
492 cloud_init_iface_up: ens3
493 volumes:
494 - name: system
495 capacity: !os_env NODE_VOLUME_SIZE, 150
496 backing_store: cloudimage1604
497 format: qcow2
498 - name: iso # Volume with name 'iso' will be used
499 # for store image with cloud-init metadata.
500 capacity: 1
501 format: raw
502 device: cdrom
503 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300504 cloudinit_meta_data: *cloudinit_meta_data
505 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300506
507 interfaces: *all_interfaces
508 network_config: *all_network_config