blob: 66cd81c0bd60925b9770cce1d14f4519e720318a [file] [log] [blame]
Dennis Dmitriev411dd102017-09-15 16:04:47 +03001# 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{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-ocata-dop-sl2') %}
Dennis Dmitriev0048fcd2017-10-21 12:26:48 +03005{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Dennis Dmitriev411dd102017-09-15 16:04:47 +03006{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
7{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
8{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
11{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
12{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
13{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
14{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
15{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
16{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
18{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
20
21{% import 'cookied-mcp-ocata-dop-sl2/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
22{% import 'cookied-mcp-ocata-dop-sl2/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030023{% import 'cookied-mcp-ocata-dop-sl2/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
24
25---
26aliases:
27 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
28 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
29 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030030 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
31
32template:
33 devops_settings:
34 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
35
36 address_pools:
37 private-pool01:
38 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
39 params:
40 ip_reserved:
41 gateway: +1
42 l2_network_device: +1
43 default_{{ HOSTNAME_CFG01 }}: +15
44
45 default_{{ HOSTNAME_CID }}: +90
46 default_{{ HOSTNAME_CID01 }}: +91
47 default_{{ HOSTNAME_CID02 }}: +92
48 default_{{ HOSTNAME_CID03 }}: +93
49
50 default_{{ HOSTNAME_MON }}: +70
51 default_{{ HOSTNAME_MON01 }}: +71
52 default_{{ HOSTNAME_MON02 }}: +72
53 default_{{ HOSTNAME_MON03 }}: +73
54
55 default_{{ HOSTNAME_CTL }}: +10
56 default_{{ HOSTNAME_CTL01 }}: +11
57 default_{{ HOSTNAME_CTL02 }}: +12
58 default_{{ HOSTNAME_CTL03 }}: +13
59 default_{{ HOSTNAME_GTW01 }}: +224
60 default_{{ HOSTNAME_GTW02 }}: +225
61 default_{{ HOSTNAME_PRX }}: +80
62 default_{{ HOSTNAME_PRX01 }}: +81
63 default_{{ HOSTNAME_PRX02 }}: +82
64
65 default_{{ HOSTNAME_CMP01 }}: +101
66 default_{{ HOSTNAME_CMP02 }}: +102
67 ip_ranges:
68 dhcp: [+90, -10]
69
70 admin-pool01:
71 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
72 params:
73 ip_reserved:
74 gateway: +1
75 l2_network_device: +1
76 default_{{ HOSTNAME_CFG01 }}: +15
77
78 default_{{ HOSTNAME_CID }}: +90
79 default_{{ HOSTNAME_CID01 }}: +91
80 default_{{ HOSTNAME_CID02 }}: +92
81 default_{{ HOSTNAME_CID03 }}: +93
82
83 default_{{ HOSTNAME_MON }}: +70
84 default_{{ HOSTNAME_MON01 }}: +71
85 default_{{ HOSTNAME_MON02 }}: +72
86 default_{{ HOSTNAME_MON03 }}: +73
87
88 default_{{ HOSTNAME_CTL }}: +10
89 default_{{ HOSTNAME_CTL01 }}: +11
90 default_{{ HOSTNAME_CTL02 }}: +12
91 default_{{ HOSTNAME_CTL03 }}: +13
92 default_{{ HOSTNAME_GTW01 }}: +224
93 default_{{ HOSTNAME_GTW02 }}: +225
94 default_{{ HOSTNAME_PRX }}: +80
95 default_{{ HOSTNAME_PRX01 }}: +81
96 default_{{ HOSTNAME_PRX02 }}: +82
97
98 default_{{ HOSTNAME_CMP01 }}: +101
99 default_{{ HOSTNAME_CMP02 }}: +102
100 ip_ranges:
101 dhcp: [+90, -10]
102
103 tenant-pool01:
104 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
105 params:
106 ip_reserved:
107 gateway: +1
108 l2_network_device: +1
109 default_{{ HOSTNAME_CFG01 }}: +15
110
111 default_{{ HOSTNAME_CID }}: +90
112 default_{{ HOSTNAME_CID01 }}: +91
113 default_{{ HOSTNAME_CID02 }}: +92
114 default_{{ HOSTNAME_CID03 }}: +93
115
116 default_{{ HOSTNAME_MON }}: +70
117 default_{{ HOSTNAME_MON01 }}: +71
118 default_{{ HOSTNAME_MON02 }}: +72
119 default_{{ HOSTNAME_MON03 }}: +73
120
121 default_{{ HOSTNAME_CTL }}: +10
122 default_{{ HOSTNAME_CTL01 }}: +11
123 default_{{ HOSTNAME_CTL02 }}: +12
124 default_{{ HOSTNAME_CTL03 }}: +13
125 default_{{ HOSTNAME_GTW01 }}: +6
126 default_{{ HOSTNAME_GTW02 }}: +7
127 default_{{ HOSTNAME_PRX }}: +80
128 default_{{ HOSTNAME_PRX01 }}: +81
129 default_{{ HOSTNAME_PRX02 }}: +82
130
131 default_{{ HOSTNAME_CMP01 }}: +101
132 default_{{ HOSTNAME_CMP02 }}: +102
133 ip_ranges:
134 dhcp: [+10, -10]
135
136 external-pool01:
137 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
138 params:
139 ip_reserved:
140 gateway: +1
141 l2_network_device: +1
142 default_{{ HOSTNAME_CFG01 }}: +15
143
144 default_{{ HOSTNAME_CID }}: +90
145 default_{{ HOSTNAME_CID01 }}: +91
146 default_{{ HOSTNAME_CID02 }}: +92
147 default_{{ HOSTNAME_CID03 }}: +93
148
149 default_{{ HOSTNAME_MON }}: +70
150 default_{{ HOSTNAME_MON01 }}: +71
151 default_{{ HOSTNAME_MON02 }}: +72
152 default_{{ HOSTNAME_MON03 }}: +73
153
154 default_{{ HOSTNAME_CTL }}: +10
155 default_{{ HOSTNAME_CTL01 }}: +11
156 default_{{ HOSTNAME_CTL02 }}: +12
157 default_{{ HOSTNAME_CTL03 }}: +13
158 default_{{ HOSTNAME_GTW01 }}: +224
159 default_{{ HOSTNAME_GTW02 }}: +225
160 default_{{ HOSTNAME_PRX }}: +80
161 default_{{ HOSTNAME_PRX01 }}: +81
162 default_{{ HOSTNAME_PRX02 }}: +82
163
164 default_{{ HOSTNAME_CMP01 }}: +101
165 default_{{ HOSTNAME_CMP02 }}: +102
166 ip_ranges:
167 dhcp: [+10, -10]
168
169
170 groups:
171 - name: default
172 driver:
173 name: devops.driver.libvirt
174 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300175 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
176 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300177 stp: False
178 hpet: False
179 enable_acpi: true
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300180 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
181 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300182
183 network_pools:
184 admin: admin-pool01
185 private: private-pool01
186 tenant: tenant-pool01
187 external: external-pool01
188
189 l2_network_devices:
190 admin:
191 address_pool: admin-pool01
192 dhcp: true
193 forward:
194 mode: nat
195
196 private:
197 address_pool: private-pool01
198 dhcp: false
199
200 #tenant:
201 # address_pool: tenant-pool01
202 # dhcp: false
203
204 external:
205 address_pool: external-pool01
206 dhcp: false
207 forward:
208 mode: nat
209
210
211 group_volumes:
212 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200213 source_image: {{ os_env('IMAGE_PATH1604') }} # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
214 format: qcow2
215 - name: cfg01_day01_image # Pre-configured day01 image
216 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300217 format: qcow2
218
219 nodes:
220 - name: {{ HOSTNAME_CFG01 }}
221 role: salt_master
222 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300223 vcpu: {{ os_env('CFG_NODE_CPU', 2) }}
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300224 memory: {{ os_env('CFG_NODE_MEMORY', 4096) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300225 boot:
226 - hd
227 cloud_init_volume_name: iso
228 cloud_init_iface_up: ens3
229 volumes:
230 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300231 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200232 backing_store: cfg01_day01_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300233 format: qcow2
234 - name: iso # Volume with name 'iso' will be used
235 # for store image with cloud-init metadata.
236 capacity: 1
237 format: raw
238 device: cdrom
239 bus: ide
240 cloudinit_meta_data: *cloudinit_meta_data
241 cloudinit_user_data: *cloudinit_user_data_cfg01
242
243 interfaces:
244 - label: ens3
245 l2_network_device: admin
246 interface_model: *interface_model
247 - label: ens4
248 l2_network_device: private
249 interface_model: *interface_model
250 network_config:
251 ens3:
252 networks:
253 - admin
254 ens4:
255 networks:
256 - private
257
258 - name: {{ HOSTNAME_CID01 }}
259 role: salt_minion
260 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300261 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300262 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300263 boot:
264 - hd
265 cloud_init_volume_name: iso
266 cloud_init_iface_up: ens3
267 volumes:
268 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300269 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300270 backing_store: cloudimage1604
271 format: qcow2
272 - name: iso # Volume with name 'iso' will be used
273 # for store image with cloud-init metadata.
274 capacity: 1
275 format: raw
276 device: cdrom
277 bus: ide
278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
280
281 interfaces: &interfaces
282 - label: ens3
283 l2_network_device: admin
284 interface_model: *interface_model
285 - label: ens4
286 l2_network_device: private
287 interface_model: *interface_model
288 network_config: &network_config
289 ens3:
290 networks:
291 - admin
292 ens4:
293 networks:
294 - private
295
296 - name: {{ HOSTNAME_CID02 }}
297 role: salt_minion
298 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300299 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300300 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300301 boot:
302 - hd
303 cloud_init_volume_name: iso
304 cloud_init_iface_up: ens3
305 volumes:
306 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300307 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300308 backing_store: cloudimage1604
309 format: qcow2
310 - name: iso # Volume with name 'iso' will be used
311 # for store image with cloud-init metadata.
312 capacity: 1
313 format: raw
314 device: cdrom
315 bus: ide
316 cloudinit_meta_data: *cloudinit_meta_data
317 cloudinit_user_data: *cloudinit_user_data_1604
318
319 interfaces: *interfaces
320 network_config: *network_config
321
322 - name: {{ HOSTNAME_CID03 }}
323 role: salt_minion
324 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300325 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300326 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300327 boot:
328 - hd
329 cloud_init_volume_name: iso
330 cloud_init_iface_up: ens3
331 volumes:
332 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300333 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300334 backing_store: cloudimage1604
335 format: qcow2
336 - name: iso # Volume with name 'iso' will be used
337 # for store image with cloud-init metadata.
338 capacity: 1
339 format: raw
340 device: cdrom
341 bus: ide
342 cloudinit_meta_data: *cloudinit_meta_data
343 cloudinit_user_data: *cloudinit_user_data_1604
344
345 interfaces: *interfaces
346 network_config: *network_config
347
348 - name: {{ HOSTNAME_CTL01 }}
349 role: salt_minion
350 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300351 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300352 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300353 boot:
354 - hd
355 cloud_init_volume_name: iso
356 cloud_init_iface_up: ens3
357 volumes:
358 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300359 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300360 backing_store: cloudimage1604
361 format: qcow2
362 - name: cinder
363 capacity: 50
364 format: qcow2
365 - name: iso # Volume with name 'iso' will be used
366 # for store image with cloud-init metadata.
367 capacity: 1
368 format: raw
369 device: cdrom
370 bus: ide
371 cloudinit_meta_data: *cloudinit_meta_data
372 cloudinit_user_data: *cloudinit_user_data_1604
373
374 interfaces: *interfaces
375 network_config: *network_config
376
377 - name: {{ HOSTNAME_CTL02 }}
378 role: salt_minion
379 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300380 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300381 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300382 boot:
383 - hd
384 cloud_init_volume_name: iso
385 cloud_init_iface_up: ens3
386 volumes:
387 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300388 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300389 backing_store: cloudimage1604
390 format: qcow2
391 - name: cinder
392 capacity: 50
393 format: qcow2
394 - name: iso # Volume with name 'iso' will be used
395 # for store image with cloud-init metadata.
396 capacity: 1
397 format: raw
398 device: cdrom
399 bus: ide
400 cloudinit_meta_data: *cloudinit_meta_data
401 cloudinit_user_data: *cloudinit_user_data_1604
402
403 interfaces: *interfaces
404 network_config: *network_config
405
406 - name: {{ HOSTNAME_CTL03 }}
407 role: salt_minion
408 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300409 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300410 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300411 boot:
412 - hd
413 cloud_init_volume_name: iso
414 cloud_init_iface_up: ens3
415 volumes:
416 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300417 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300418 backing_store: cloudimage1604
419 format: qcow2
420 - name: cinder
421 capacity: 50
422 format: qcow2
423 - name: iso # Volume with name 'iso' will be used
424 # for store image with cloud-init metadata.
425 capacity: 1
426 format: raw
427 device: cdrom
428 bus: ide
429 cloudinit_meta_data: *cloudinit_meta_data
430 cloudinit_user_data: *cloudinit_user_data_1604
431
432 interfaces: *interfaces
433 network_config: *network_config
434
435 - name: {{ HOSTNAME_MON01 }}
436 role: salt_minion
437 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300438 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200439 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300440 boot:
441 - hd
442 cloud_init_volume_name: iso
443 cloud_init_iface_up: ens3
444 volumes:
445 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300446 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300447 backing_store: cloudimage1604
448 format: qcow2
449 - name: cinder
450 capacity: 50
451 format: qcow2
452 - name: iso # Volume with name 'iso' will be used
453 # for store image with cloud-init metadata.
454 capacity: 1
455 format: raw
456 device: cdrom
457 bus: ide
458 cloudinit_meta_data: *cloudinit_meta_data
459 cloudinit_user_data: *cloudinit_user_data_1604
460
461 interfaces: *interfaces
462 network_config: *network_config
463
464 - name: {{ HOSTNAME_MON02 }}
465 role: salt_minion
466 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300467 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200468 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300469 boot:
470 - hd
471 cloud_init_volume_name: iso
472 cloud_init_iface_up: ens3
473 volumes:
474 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300475 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300476 backing_store: cloudimage1604
477 format: qcow2
478 - name: cinder
479 capacity: 50
480 format: qcow2
481 - name: iso # Volume with name 'iso' will be used
482 # for store image with cloud-init metadata.
483 capacity: 1
484 format: raw
485 device: cdrom
486 bus: ide
487 cloudinit_meta_data: *cloudinit_meta_data
488 cloudinit_user_data: *cloudinit_user_data_1604
489
490 interfaces: *interfaces
491 network_config: *network_config
492
493 - name: {{ HOSTNAME_MON03 }}
494 role: salt_minion
495 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300496 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200497 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300498 boot:
499 - hd
500 cloud_init_volume_name: iso
501 cloud_init_iface_up: ens3
502 volumes:
503 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300504 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300505 backing_store: cloudimage1604
506 format: qcow2
507 - name: cinder
508 capacity: 50
509 format: qcow2
510 - name: iso # Volume with name 'iso' will be used
511 # for store image with cloud-init metadata.
512 capacity: 1
513 format: raw
514 device: cdrom
515 bus: ide
516 cloudinit_meta_data: *cloudinit_meta_data
517 cloudinit_user_data: *cloudinit_user_data_1604
518
519 interfaces: *interfaces
520 network_config: *network_config
521
522 - name: {{ HOSTNAME_PRX01 }}
523 role: salt_minion
524 params:
Dennis Dmitrievce5ed8b2017-11-09 00:44:19 +0200525 vcpu: {{ os_env('PRX_NODE_CPU', 1) }}
526 memory: {{ os_env('PRX_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300527 boot:
528 - hd
529 cloud_init_volume_name: iso
530 cloud_init_iface_up: ens3
531 volumes:
532 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300533 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300534 backing_store: cloudimage1604
535 format: qcow2
536 - name: cinder
537 capacity: 50
538 format: qcow2
539 - name: iso # Volume with name 'iso' will be used
540 # for store image with cloud-init metadata.
541 capacity: 1
542 format: raw
543 device: cdrom
544 bus: ide
545 cloudinit_meta_data: *cloudinit_meta_data
546 cloudinit_user_data: *cloudinit_user_data_1604
547
548 interfaces: *interfaces
549 network_config: *network_config
550
551 - name: {{ HOSTNAME_CMP01 }}
552 role: salt_minion
553 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300554 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
555 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300556 boot:
557 - hd
558 cloud_init_volume_name: iso
559 cloud_init_iface_up: ens3
560 volumes:
561 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300562 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300563 backing_store: cloudimage1604
564 format: qcow2
565 - name: iso # Volume with name 'iso' will be used
566 # for store image with cloud-init metadata.
567 capacity: 1
568 format: raw
569 device: cdrom
570 bus: ide
571 cloudinit_meta_data: *cloudinit_meta_data
572 cloudinit_user_data: *cloudinit_user_data_1604
573
574
575 interfaces: &all_interfaces
576 - label: ens3
577 l2_network_device: admin
578 interface_model: *interface_model
579 - label: ens4
580 l2_network_device: private
581 interface_model: *interface_model
582 - label: ens5
583 l2_network_device: private
584 interface_model: *interface_model
585 - label: ens6
586 l2_network_device: external
587 interface_model: *interface_model
588 network_config: &all_network_config
589 ens3:
590 networks:
591 - admin
592 ens4:
593 networks:
594 - private
595 ens5:
596 networks:
597 - private
598 ens6:
599 networks:
600 - external
601
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300602 - name: {{ HOSTNAME_CMP02 }}
603 role: salt_minion
604 params:
605 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
606 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
607 boot:
608 - hd
609 cloud_init_volume_name: iso
610 cloud_init_iface_up: ens3
611 volumes:
612 - name: system
613 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
614 backing_store: cloudimage1604
615 format: qcow2
616 - name: iso # Volume with name 'iso' will be used
617 # for store image with cloud-init metadata.
618 capacity: 1
619 format: raw
620 device: cdrom
621 bus: ide
622 cloudinit_meta_data: *cloudinit_meta_data
623 cloudinit_user_data: *cloudinit_user_data_1604
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300624
625 interfaces: *all_interfaces
626 network_config: *all_network_config
627
628 - name: {{ HOSTNAME_GTW01 }}
629 role: salt_minion
630 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300631 vcpu: {{ os_env('GTW_NODE_CPU', 1) }}
632 memory: {{ os_env('GTW_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300633 boot:
634 - hd
635 cloud_init_volume_name: iso
636 cloud_init_iface_up: ens3
637 volumes:
638 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300639 capacity: {{ os_env('GTW_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300640 backing_store: cloudimage1604
641 format: qcow2
642 - name: iso # Volume with name 'iso' will be used
643 # for store image with cloud-init metadata.
644 capacity: 1
645 format: raw
646 device: cdrom
647 bus: ide
648 cloudinit_meta_data: *cloudinit_meta_data
649 cloudinit_user_data: *cloudinit_user_data_1604
650
651 interfaces: *all_interfaces
652 network_config: *all_network_config