blob: 899dba04b66831e517183b5ed271637b0e2c0ffa [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 Dmitrieva4de4972017-10-12 19:36:30 +0300213 source_image: {{ os_env('IMAGE_PATH1604') }} # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300214 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
215 format: qcow2
216
217 nodes:
218 - name: {{ HOSTNAME_CFG01 }}
219 role: salt_master
220 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300221 vcpu: {{ os_env('CFG_NODE_CPU', 2) }}
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300222 memory: {{ os_env('CFG_NODE_MEMORY', 4096) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300223 boot:
224 - hd
225 cloud_init_volume_name: iso
226 cloud_init_iface_up: ens3
227 volumes:
228 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300229 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300230 backing_store: cloudimage1604
231 format: qcow2
232 - name: iso # Volume with name 'iso' will be used
233 # for store image with cloud-init metadata.
234 capacity: 1
235 format: raw
236 device: cdrom
237 bus: ide
238 cloudinit_meta_data: *cloudinit_meta_data
239 cloudinit_user_data: *cloudinit_user_data_cfg01
240
241 interfaces:
242 - label: ens3
243 l2_network_device: admin
244 interface_model: *interface_model
245 - label: ens4
246 l2_network_device: private
247 interface_model: *interface_model
248 network_config:
249 ens3:
250 networks:
251 - admin
252 ens4:
253 networks:
254 - private
255
256 - name: {{ HOSTNAME_CID01 }}
257 role: salt_minion
258 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300259 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300260 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300261 boot:
262 - hd
263 cloud_init_volume_name: iso
264 cloud_init_iface_up: ens3
265 volumes:
266 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300267 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300268 backing_store: cloudimage1604
269 format: qcow2
270 - name: iso # Volume with name 'iso' will be used
271 # for store image with cloud-init metadata.
272 capacity: 1
273 format: raw
274 device: cdrom
275 bus: ide
276 cloudinit_meta_data: *cloudinit_meta_data
277 cloudinit_user_data: *cloudinit_user_data_1604
278
279 interfaces: &interfaces
280 - label: ens3
281 l2_network_device: admin
282 interface_model: *interface_model
283 - label: ens4
284 l2_network_device: private
285 interface_model: *interface_model
286 network_config: &network_config
287 ens3:
288 networks:
289 - admin
290 ens4:
291 networks:
292 - private
293
294 - name: {{ HOSTNAME_CID02 }}
295 role: salt_minion
296 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300297 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300298 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300299 boot:
300 - hd
301 cloud_init_volume_name: iso
302 cloud_init_iface_up: ens3
303 volumes:
304 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300305 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300306 backing_store: cloudimage1604
307 format: qcow2
308 - name: iso # Volume with name 'iso' will be used
309 # for store image with cloud-init metadata.
310 capacity: 1
311 format: raw
312 device: cdrom
313 bus: ide
314 cloudinit_meta_data: *cloudinit_meta_data
315 cloudinit_user_data: *cloudinit_user_data_1604
316
317 interfaces: *interfaces
318 network_config: *network_config
319
320 - name: {{ HOSTNAME_CID03 }}
321 role: salt_minion
322 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300323 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300324 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300325 boot:
326 - hd
327 cloud_init_volume_name: iso
328 cloud_init_iface_up: ens3
329 volumes:
330 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300331 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300332 backing_store: cloudimage1604
333 format: qcow2
334 - name: iso # Volume with name 'iso' will be used
335 # for store image with cloud-init metadata.
336 capacity: 1
337 format: raw
338 device: cdrom
339 bus: ide
340 cloudinit_meta_data: *cloudinit_meta_data
341 cloudinit_user_data: *cloudinit_user_data_1604
342
343 interfaces: *interfaces
344 network_config: *network_config
345
346 - name: {{ HOSTNAME_CTL01 }}
347 role: salt_minion
348 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300349 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300350 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300351 boot:
352 - hd
353 cloud_init_volume_name: iso
354 cloud_init_iface_up: ens3
355 volumes:
356 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300357 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300358 backing_store: cloudimage1604
359 format: qcow2
360 - name: cinder
361 capacity: 50
362 format: qcow2
363 - name: iso # Volume with name 'iso' will be used
364 # for store image with cloud-init metadata.
365 capacity: 1
366 format: raw
367 device: cdrom
368 bus: ide
369 cloudinit_meta_data: *cloudinit_meta_data
370 cloudinit_user_data: *cloudinit_user_data_1604
371
372 interfaces: *interfaces
373 network_config: *network_config
374
375 - name: {{ HOSTNAME_CTL02 }}
376 role: salt_minion
377 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300378 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300379 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300380 boot:
381 - hd
382 cloud_init_volume_name: iso
383 cloud_init_iface_up: ens3
384 volumes:
385 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300386 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300387 backing_store: cloudimage1604
388 format: qcow2
389 - name: cinder
390 capacity: 50
391 format: qcow2
392 - name: iso # Volume with name 'iso' will be used
393 # for store image with cloud-init metadata.
394 capacity: 1
395 format: raw
396 device: cdrom
397 bus: ide
398 cloudinit_meta_data: *cloudinit_meta_data
399 cloudinit_user_data: *cloudinit_user_data_1604
400
401 interfaces: *interfaces
402 network_config: *network_config
403
404 - name: {{ HOSTNAME_CTL03 }}
405 role: salt_minion
406 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300407 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300408 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300409 boot:
410 - hd
411 cloud_init_volume_name: iso
412 cloud_init_iface_up: ens3
413 volumes:
414 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300415 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300416 backing_store: cloudimage1604
417 format: qcow2
418 - name: cinder
419 capacity: 50
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
427 cloudinit_meta_data: *cloudinit_meta_data
428 cloudinit_user_data: *cloudinit_user_data_1604
429
430 interfaces: *interfaces
431 network_config: *network_config
432
433 - name: {{ HOSTNAME_MON01 }}
434 role: salt_minion
435 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300436 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300437 memory: {{ os_env('MON_NODE_MEMORY', 16384) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300438 boot:
439 - hd
440 cloud_init_volume_name: iso
441 cloud_init_iface_up: ens3
442 volumes:
443 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300444 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300445 backing_store: cloudimage1604
446 format: qcow2
447 - name: cinder
448 capacity: 50
449 format: qcow2
450 - name: iso # Volume with name 'iso' will be used
451 # for store image with cloud-init metadata.
452 capacity: 1
453 format: raw
454 device: cdrom
455 bus: ide
456 cloudinit_meta_data: *cloudinit_meta_data
457 cloudinit_user_data: *cloudinit_user_data_1604
458
459 interfaces: *interfaces
460 network_config: *network_config
461
462 - name: {{ HOSTNAME_MON02 }}
463 role: salt_minion
464 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300465 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300466 memory: {{ os_env('MON_NODE_MEMORY', 16384) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300467 boot:
468 - hd
469 cloud_init_volume_name: iso
470 cloud_init_iface_up: ens3
471 volumes:
472 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300473 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300474 backing_store: cloudimage1604
475 format: qcow2
476 - name: cinder
477 capacity: 50
478 format: qcow2
479 - name: iso # Volume with name 'iso' will be used
480 # for store image with cloud-init metadata.
481 capacity: 1
482 format: raw
483 device: cdrom
484 bus: ide
485 cloudinit_meta_data: *cloudinit_meta_data
486 cloudinit_user_data: *cloudinit_user_data_1604
487
488 interfaces: *interfaces
489 network_config: *network_config
490
491 - name: {{ HOSTNAME_MON03 }}
492 role: salt_minion
493 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300494 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300495 memory: {{ os_env('MON_NODE_MEMORY', 16384) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300496 boot:
497 - hd
498 cloud_init_volume_name: iso
499 cloud_init_iface_up: ens3
500 volumes:
501 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300502 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300503 backing_store: cloudimage1604
504 format: qcow2
505 - name: cinder
506 capacity: 50
507 format: qcow2
508 - name: iso # Volume with name 'iso' will be used
509 # for store image with cloud-init metadata.
510 capacity: 1
511 format: raw
512 device: cdrom
513 bus: ide
514 cloudinit_meta_data: *cloudinit_meta_data
515 cloudinit_user_data: *cloudinit_user_data_1604
516
517 interfaces: *interfaces
518 network_config: *network_config
519
520 - name: {{ HOSTNAME_PRX01 }}
521 role: salt_minion
522 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300523 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300524 memory: {{ os_env('MON_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300525 boot:
526 - hd
527 cloud_init_volume_name: iso
528 cloud_init_iface_up: ens3
529 volumes:
530 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300531 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300532 backing_store: cloudimage1604
533 format: qcow2
534 - name: cinder
535 capacity: 50
536 format: qcow2
537 - name: iso # Volume with name 'iso' will be used
538 # for store image with cloud-init metadata.
539 capacity: 1
540 format: raw
541 device: cdrom
542 bus: ide
543 cloudinit_meta_data: *cloudinit_meta_data
544 cloudinit_user_data: *cloudinit_user_data_1604
545
546 interfaces: *interfaces
547 network_config: *network_config
548
549 - name: {{ HOSTNAME_CMP01 }}
550 role: salt_minion
551 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300552 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
553 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300554 boot:
555 - hd
556 cloud_init_volume_name: iso
557 cloud_init_iface_up: ens3
558 volumes:
559 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300560 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300561 backing_store: cloudimage1604
562 format: qcow2
563 - name: iso # Volume with name 'iso' will be used
564 # for store image with cloud-init metadata.
565 capacity: 1
566 format: raw
567 device: cdrom
568 bus: ide
569 cloudinit_meta_data: *cloudinit_meta_data
570 cloudinit_user_data: *cloudinit_user_data_1604
571
572
573 interfaces: &all_interfaces
574 - label: ens3
575 l2_network_device: admin
576 interface_model: *interface_model
577 - label: ens4
578 l2_network_device: private
579 interface_model: *interface_model
580 - label: ens5
581 l2_network_device: private
582 interface_model: *interface_model
583 - label: ens6
584 l2_network_device: external
585 interface_model: *interface_model
586 network_config: &all_network_config
587 ens3:
588 networks:
589 - admin
590 ens4:
591 networks:
592 - private
593 ens5:
594 networks:
595 - private
596 ens6:
597 networks:
598 - external
599
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300600 - name: {{ HOSTNAME_CMP02 }}
601 role: salt_minion
602 params:
603 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
604 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
605 boot:
606 - hd
607 cloud_init_volume_name: iso
608 cloud_init_iface_up: ens3
609 volumes:
610 - name: system
611 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
612 backing_store: cloudimage1604
613 format: qcow2
614 - name: iso # Volume with name 'iso' will be used
615 # for store image with cloud-init metadata.
616 capacity: 1
617 format: raw
618 device: cdrom
619 bus: ide
620 cloudinit_meta_data: *cloudinit_meta_data
621 cloudinit_user_data: *cloudinit_user_data_1604
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300622
623 interfaces: *all_interfaces
624 network_config: *all_network_config
625
626 - name: {{ HOSTNAME_GTW01 }}
627 role: salt_minion
628 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300629 vcpu: {{ os_env('GTW_NODE_CPU', 1) }}
630 memory: {{ os_env('GTW_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300631 boot:
632 - hd
633 cloud_init_volume_name: iso
634 cloud_init_iface_up: ens3
635 volumes:
636 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300637 capacity: {{ os_env('GTW_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300638 backing_store: cloudimage1604
639 format: qcow2
640 - name: iso # Volume with name 'iso' will be used
641 # for store image with cloud-init metadata.
642 capacity: 1
643 format: raw
644 device: cdrom
645 bus: ide
646 cloudinit_meta_data: *cloudinit_meta_data
647 cloudinit_user_data: *cloudinit_user_data_1604
648
649 interfaces: *all_interfaces
650 network_config: *all_network_config