blob: b36f8be37f71957bf1162c87d2c813a737ffbe6d [file] [log] [blame]
Oleksii Butenkoba680de2018-08-23 14:15:19 +03001{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
2
3{% import 'cookied-mcp-pike-dvr-ceph/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
4{% import 'cookied-mcp-pike-dvr-ceph/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
5{% import 'cookied-mcp-pike-dvr-ceph/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
6
7---
8aliases:
9 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
10 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
11 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
12 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
13
14{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-pike-dvr-ceph') %}
Oleksii Butenko236db652018-10-10 14:45:31 +030015{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030016{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030020{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030022{% set HOSTNAME_CMN01 = os_env('HOSTNAME_CMN01', 'cmn01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CMN02 = os_env('HOSTNAME_CMN02', 'cmn02.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMN03 = os_env('HOSTNAME_CMN03', 'cmn03.' + DOMAIN_NAME) %}
25{% set HOSTNAME_RGW01 = os_env('HOSTNAME_CMN01', 'rgw01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_RGW02 = os_env('HOSTNAME_CMN02', 'rgw02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_RGW03 = os_env('HOSTNAME_CMN03', 'rgw03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030028{% set HOSTNAME_OSD01 = os_env('HOSTNAME_OSD01', 'osd1.' + DOMAIN_NAME) %}
29{% set HOSTNAME_OSD02 = os_env('HOSTNAME_OSD02', 'osd2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030030{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
31{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
obutenko9d195be2018-11-08 18:14:57 +020032{% set HOSTNAME_MDB01 = os_env('HOSTNAME_MDB01', 'mdb01.' + DOMAIN_NAME) %}
33{% set HOSTNAME_MDB02 = os_env('HOSTNAME_MDB02', 'mdb02.' + DOMAIN_NAME) %}
34{% set HOSTNAME_MDB03 = os_env('HOSTNAME_MDB03', 'mdb03.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030035
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', 'cookied-mcp-pike-dvr-ceph_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
39
40 address_pools:
41 private-pool01:
42 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
43 params:
44 ip_reserved:
45 gateway: +1
46 l2_network_device: +1
47 default_{{ HOSTNAME_CFG01 }}: +15
48 default_{{ HOSTNAME_CTL01 }}: +11
49 default_{{ HOSTNAME_CTL02 }}: +12
50 default_{{ HOSTNAME_CTL03 }}: +13
51 default_{{ HOSTNAME_CMP01 }}: +105
52 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +030053 default_{{ HOSTNAME_OSD01 }}: +94
54 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +030055 default_{{ HOSTNAME_CMN01 }}: +96
56 default_{{ HOSTNAME_CMN02 }}: +97
57 default_{{ HOSTNAME_CMN03 }}: +98
58 default_{{ HOSTNAME_RGW01 }}: +76
59 default_{{ HOSTNAME_RGW02 }}: +77
60 default_{{ HOSTNAME_RGW03 }}: +78
61 default_{{ HOSTNAME_GTW01 }}: +110
62 default_{{ HOSTNAME_PRX01 }}: +121
obutenko9d195be2018-11-08 18:14:57 +020063 default_{{ HOSTNAME_MDB01 }}: +84
64 default_{{ HOSTNAME_MDB02 }}: +85
65 default_{{ HOSTNAME_MDB03 }}: +86
Oleksii Butenkoba680de2018-08-23 14:15:19 +030066 ip_ranges:
67 dhcp: [+70, -10]
68
69 admin-pool01:
70 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
71 params:
72 ip_reserved:
73 gateway: +1
74 l2_network_device: +1
75 default_{{ HOSTNAME_CFG01 }}: +15
76 default_{{ HOSTNAME_CTL01 }}: +11
77 default_{{ HOSTNAME_CTL02 }}: +12
78 default_{{ HOSTNAME_CTL03 }}: +13
79 default_{{ HOSTNAME_CMP01 }}: +105
80 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +030081 default_{{ HOSTNAME_OSD01 }}: +94
82 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +030083 default_{{ HOSTNAME_CMN01 }}: +96
84 default_{{ HOSTNAME_CMN02 }}: +97
85 default_{{ HOSTNAME_CMN03 }}: +98
86 default_{{ HOSTNAME_RGW01 }}: +76
87 default_{{ HOSTNAME_RGW02 }}: +77
88 default_{{ HOSTNAME_RGW03 }}: +78
89 default_{{ HOSTNAME_GTW01 }}: +110
90 default_{{ HOSTNAME_PRX01 }}: +121
obutenko9d195be2018-11-08 18:14:57 +020091 default_{{ HOSTNAME_MDB01 }}: +84
92 default_{{ HOSTNAME_MDB02 }}: +85
93 default_{{ HOSTNAME_MDB03 }}: +86
Oleksii Butenkoba680de2018-08-23 14:15:19 +030094 ip_ranges:
95 dhcp: [+70, -10]
96
97 tenant-pool01:
98 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
99 params:
100 ip_reserved:
101 gateway: +1
102 l2_network_device: +1
103 default_{{ HOSTNAME_CFG01 }}: +15
104 default_{{ HOSTNAME_CTL01 }}: +11
105 default_{{ HOSTNAME_CTL02 }}: +12
106 default_{{ HOSTNAME_CTL03 }}: +13
107 default_{{ HOSTNAME_CMP01 }}: +105
108 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300109 default_{{ HOSTNAME_OSD01 }}: +94
110 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300111 default_{{ HOSTNAME_CMN01 }}: +96
112 default_{{ HOSTNAME_CMN02 }}: +97
113 default_{{ HOSTNAME_CMN03 }}: +98
114 default_{{ HOSTNAME_RGW01 }}: +76
115 default_{{ HOSTNAME_RGW02 }}: +77
116 default_{{ HOSTNAME_RGW03 }}: +78
117 default_{{ HOSTNAME_GTW01 }}: +110
118 default_{{ HOSTNAME_PRX01 }}: +121
obutenko9d195be2018-11-08 18:14:57 +0200119 default_{{ HOSTNAME_MDB01 }}: +84
120 default_{{ HOSTNAME_MDB02 }}: +85
121 default_{{ HOSTNAME_MDB03 }}: +86
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300122 ip_ranges:
123 dhcp: [+10, -10]
124
125 external-pool01:
126 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
127 params:
128 ip_reserved:
129 gateway: +1
130 l2_network_device: +1
131 default_{{ HOSTNAME_CFG01 }}: +15
132 default_{{ HOSTNAME_CTL01 }}: +11
133 default_{{ HOSTNAME_CTL02 }}: +12
134 default_{{ HOSTNAME_CTL03 }}: +13
135 default_{{ HOSTNAME_CMP01 }}: +105
136 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300137 default_{{ HOSTNAME_OSD01 }}: +94
138 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300139 default_{{ HOSTNAME_CMN01 }}: +96
140 default_{{ HOSTNAME_CMN02 }}: +97
141 default_{{ HOSTNAME_CMN03 }}: +98
142 default_{{ HOSTNAME_RGW01 }}: +76
143 default_{{ HOSTNAME_RGW02 }}: +77
144 default_{{ HOSTNAME_RGW03 }}: +78
145 default_{{ HOSTNAME_GTW01 }}: +110
146 default_{{ HOSTNAME_PRX01 }}: +121
obutenko9d195be2018-11-08 18:14:57 +0200147 default_{{ HOSTNAME_MDB01 }}: +84
148 default_{{ HOSTNAME_MDB02 }}: +85
149 default_{{ HOSTNAME_MDB03 }}: +86
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300150 ip_ranges:
Oleksii Butenko7c2c55b2018-09-20 15:22:13 +0300151 dhcp: [+130, +230]
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300152
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300153 groups:
154 - name: default
155 driver:
156 name: devops.driver.libvirt
157 params:
158 connection_string: !os_env CONNECTION_STRING, qemu:///system
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300159 stp: False
160 hpet: False
161 enable_acpi: true
162 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
163 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
164
165 network_pools:
166 admin: admin-pool01
167 private: private-pool01
168 tenant: tenant-pool01
169 external: external-pool01
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300170
171 l2_network_devices:
172 private:
173 address_pool: private-pool01
174 dhcp: false
175 forward:
176 mode: route
177
178 admin:
179 address_pool: admin-pool01
180 dhcp: true
181 forward:
182 mode: nat
183
184 tenant:
185 address_pool: tenant-pool01
186 dhcp: false
187
188 external:
189 address_pool: external-pool01
190 dhcp: true
191 forward:
192 mode: route
193
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300194 group_volumes:
195 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
196 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
197 format: qcow2
198 - name: cfg01_day01_image # Pre-configured day01 image
199 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
200 format: qcow2
201 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
202 source_image: !os_env MCP_IMAGE_PATH1604
203 format: qcow2
204
205 nodes:
206 - name: {{ HOSTNAME_CFG01 }}
207 role: salt_master
208 params:
209 vcpu: !os_env SLAVE_NODE_CPU, 2
210 memory: !os_env SLAVE_NODE_MEMORY, 8192
211 boot:
212 - hd
213 cloud_init_volume_name: iso
214 cloud_init_iface_up: ens3
215 volumes:
216 - name: system
217 capacity: !os_env NODE_VOLUME_SIZE, 150
218 backing_store: cfg01_day01_image
219 format: qcow2
220 - name: iso # Volume with name 'iso' will be used
221 # for store image with cloud-init metadata.
222 capacity: 1
223 format: raw
224 device: cdrom
225 bus: ide
226 cloudinit_meta_data: *cloudinit_meta_data
227 cloudinit_user_data: *cloudinit_user_data_cfg01
228
229 interfaces:
230 - label: ens3
231 l2_network_device: admin
232 interface_model: *interface_model
233 - label: ens4
234 l2_network_device: private
235 interface_model: *interface_model
236 network_config:
237 ens3:
238 networks:
239 - admin
240 ens4:
241 networks:
242 - private
243
244 - name: {{ HOSTNAME_CTL01 }}
245 role: salt_minion
246 params:
247 vcpu: !os_env SLAVE_NODE_CPU, 2
248 memory: !os_env SLAVE_NODE_MEMORY, 16384
249 boot:
250 - hd
251 cloud_init_volume_name: iso
252 cloud_init_iface_up: ens3
253 volumes:
254 - name: system
255 capacity: !os_env NODE_VOLUME_SIZE, 150
256 backing_store: mcp_ubuntu_1604_image
257 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300258 - name: iso # Volume with name 'iso' will be used
259 # for store image with cloud-init metadata.
260 capacity: 1
261 format: raw
262 device: cdrom
263 bus: ide
264 cloudinit_meta_data: *cloudinit_meta_data
265 cloudinit_user_data: *cloudinit_user_data_1604
266
267 interfaces: &interfaces
268 - label: ens3
269 l2_network_device: admin
270 interface_model: *interface_model
271 - label: ens4
272 l2_network_device: private
273 interface_model: *interface_model
274 network_config: &network_config
275 ens3:
276 networks:
277 - admin
278 ens4:
279 networks:
280 - private
281
282 - name: {{ HOSTNAME_CTL02 }}
283 role: salt_minion
284 params:
285 vcpu: !os_env SLAVE_NODE_CPU, 2
286 memory: !os_env SLAVE_NODE_MEMORY, 16384
287 boot:
288 - hd
289 cloud_init_volume_name: iso
290 cloud_init_iface_up: ens3
291 volumes:
292 - name: system
293 capacity: !os_env NODE_VOLUME_SIZE, 150
294 backing_store: mcp_ubuntu_1604_image
295 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300296 - name: iso # Volume with name 'iso' will be used
297 # for store image with cloud-init metadata.
298 capacity: 1
299 format: raw
300 device: cdrom
301 bus: ide
302 cloudinit_meta_data: *cloudinit_meta_data
303 cloudinit_user_data: *cloudinit_user_data_1604
304
305 interfaces: *interfaces
306 network_config: *network_config
307
308 - name: {{ HOSTNAME_CTL03 }}
309 role: salt_minion
310 params:
311 vcpu: !os_env SLAVE_NODE_CPU, 2
312 memory: !os_env SLAVE_NODE_MEMORY, 16384
313 boot:
314 - hd
315 cloud_init_volume_name: iso
316 cloud_init_iface_up: ens3
317 volumes:
318 - name: system
319 capacity: !os_env NODE_VOLUME_SIZE, 150
320 backing_store: mcp_ubuntu_1604_image
321 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300322 - name: iso # Volume with name 'iso' will be used
323 # for store image with cloud-init metadata.
324 capacity: 1
325 format: raw
326 device: cdrom
327 bus: ide
328 cloudinit_meta_data: *cloudinit_meta_data
329 cloudinit_user_data: *cloudinit_user_data_1604
330
331 interfaces: *interfaces
332 network_config: *network_config
333
obutenko9d195be2018-11-08 18:14:57 +0200334 - name: {{ HOSTNAME_MDB01 }}
335 role: salt_minion
336 params:
337 vcpu: !os_env SLAVE_NODE_CPU, 2
338 memory: !os_env SLAVE_NODE_MEMORY, 8192
339 boot:
340 - hd
341 cloud_init_volume_name: iso
342 cloud_init_iface_up: ens3
343 volumes:
344 - name: system
345 capacity: !os_env NODE_VOLUME_SIZE, 150
346 backing_store: mcp_ubuntu_1604_image
347 format: qcow2
348 - name: cinder
349 capacity: 50
350 format: qcow2
351 - name: iso # Volume with name 'iso' will be used
352 # for store image with cloud-init metadata.
353 capacity: 1
354 format: raw
355 device: cdrom
356 bus: ide
357 cloudinit_meta_data: *cloudinit_meta_data
358 cloudinit_user_data: *cloudinit_user_data_1604
359
360 interfaces: *interfaces
361 network_config: *network_config
362
363 - name: {{ HOSTNAME_MDB02 }}
364 role: salt_minion
365 params:
366 vcpu: !os_env SLAVE_NODE_CPU, 2
367 memory: !os_env SLAVE_NODE_MEMORY, 8192
368 boot:
369 - hd
370 cloud_init_volume_name: iso
371 cloud_init_iface_up: ens3
372 volumes:
373 - name: system
374 capacity: !os_env NODE_VOLUME_SIZE, 150
375 backing_store: mcp_ubuntu_1604_image
376 format: qcow2
377 - name: cinder
378 capacity: 50
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
386 cloudinit_meta_data: *cloudinit_meta_data
387 cloudinit_user_data: *cloudinit_user_data_1604
388
389 interfaces: *interfaces
390 network_config: *network_config
391
392 - name: {{ HOSTNAME_MDB03 }}
393 role: salt_minion
394 params:
395 vcpu: !os_env SLAVE_NODE_CPU, 2
396 memory: !os_env SLAVE_NODE_MEMORY, 8192
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: mcp_ubuntu_1604_image
405 format: qcow2
406 - name: cinder
407 capacity: 50
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
415 cloudinit_meta_data: *cloudinit_meta_data
416 cloudinit_user_data: *cloudinit_user_data_1604
417
418 interfaces: *interfaces
419 network_config: *network_config
420
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300421 - name: {{ HOSTNAME_CMN01 }}
422 role: salt_minion
423 params:
424 vcpu: !os_env SLAVE_NODE_CPU, 2
425 memory: !os_env SLAVE_NODE_MEMORY, 2048
426 boot:
427 - hd
428 cloud_init_volume_name: iso
429 cloud_init_iface_up: ens3
430 volumes:
431 - name: system
432 capacity: !os_env NODE_VOLUME_SIZE, 150
433 backing_store: cloudimage1604
434 format: qcow2
435 - name: iso # Volume with name 'iso' will be used
436 # for store image with cloud-init metadata.
437 capacity: 1
438 format: raw
439 device: cdrom
440 bus: ide
441 cloudinit_meta_data: *cloudinit_meta_data
442 cloudinit_user_data: *cloudinit_user_data_1604
443
444 interfaces: *interfaces
445 network_config: *network_config
446
447 - name: {{ HOSTNAME_CMN02 }}
448 role: salt_minion
449 params:
450 vcpu: !os_env SLAVE_NODE_CPU, 2
451 memory: !os_env SLAVE_NODE_MEMORY, 2048
452 boot:
453 - hd
454 cloud_init_volume_name: iso
455 cloud_init_iface_up: ens3
456 volumes:
457 - name: system
458 capacity: !os_env NODE_VOLUME_SIZE, 150
459 backing_store: cloudimage1604
460 format: qcow2
461 - name: iso # Volume with name 'iso' will be used
462 # for store image with cloud-init metadata.
463 capacity: 1
464 format: raw
465 device: cdrom
466 bus: ide
467 cloudinit_meta_data: *cloudinit_meta_data
468 cloudinit_user_data: *cloudinit_user_data_1604
469
470 interfaces: *interfaces
471 network_config: *network_config
472
473 - name: {{ HOSTNAME_CMN03 }}
474 role: salt_minion
475 params:
476 vcpu: !os_env SLAVE_NODE_CPU, 2
477 memory: !os_env SLAVE_NODE_MEMORY, 2048
478 boot:
479 - hd
480 cloud_init_volume_name: iso
481 cloud_init_iface_up: ens3
482 volumes:
483 - name: system
484 capacity: !os_env NODE_VOLUME_SIZE, 150
485 backing_store: cloudimage1604
486 format: qcow2
487 - name: iso # Volume with name 'iso' will be used
488 # for store image with cloud-init metadata.
489 capacity: 1
490 format: raw
491 device: cdrom
492 bus: ide
493 cloudinit_meta_data: *cloudinit_meta_data
494 cloudinit_user_data: *cloudinit_user_data_1604
495
496 interfaces: *interfaces
497 network_config: *network_config
498
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300499 - name: {{ HOSTNAME_OSD01 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300500 role: salt_minion
501 params:
502 vcpu: !os_env SLAVE_NODE_CPU, 2
503 memory: !os_env SLAVE_NODE_MEMORY, 2048
504 boot:
505 - hd
506 cloud_init_volume_name: iso
507 cloud_init_iface_up: ens3
508 volumes:
509 - name: system
510 capacity: !os_env NODE_VOLUME_SIZE, 150
511 backing_store: cloudimage1604
512 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300513 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300514 capacity: 50
515 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300516 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300517 capacity: 50
518 format: qcow2
519 - name: iso # Volume with name 'iso' will be used
520 # for store image with cloud-init metadata.
521 capacity: 1
522 format: raw
523 device: cdrom
524 bus: ide
525 cloudinit_meta_data: *cloudinit_meta_data
526 cloudinit_user_data: *cloudinit_user_data_1604
527
528 interfaces: *interfaces
529 network_config: *network_config
530
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300531 - name: {{ HOSTNAME_OSD02 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300532 role: salt_minion
533 params:
534 vcpu: !os_env SLAVE_NODE_CPU, 2
535 memory: !os_env SLAVE_NODE_MEMORY, 2048
536 boot:
537 - hd
538 cloud_init_volume_name: iso
539 cloud_init_iface_up: ens3
540 volumes:
541 - name: system
542 capacity: !os_env NODE_VOLUME_SIZE, 150
543 backing_store: cloudimage1604
544 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300545 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300546 capacity: 50
547 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300548 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300549 capacity: 50
550 format: qcow2
551 - name: iso # Volume with name 'iso' will be used
552 # for store image with cloud-init metadata.
553 capacity: 1
554 format: raw
555 device: cdrom
556 bus: ide
557 cloudinit_meta_data: *cloudinit_meta_data
558 cloudinit_user_data: *cloudinit_user_data_1604
559
560 interfaces: *interfaces
561 network_config: *network_config
562
563 - name: {{ HOSTNAME_RGW01 }}
564 role: salt_minion
565 params:
566 vcpu: !os_env SLAVE_NODE_CPU, 2
567 memory: !os_env SLAVE_NODE_MEMORY, 2048
568 boot:
569 - hd
570 cloud_init_volume_name: iso
571 cloud_init_iface_up: ens3
572 volumes:
573 - name: system
574 capacity: !os_env NODE_VOLUME_SIZE, 150
575 backing_store: cloudimage1604
576 format: qcow2
577 - name: iso # Volume with name 'iso' will be used
578 # for store image with cloud-init metadata.
579 capacity: 1
580 format: raw
581 device: cdrom
582 bus: ide
583 cloudinit_meta_data: *cloudinit_meta_data
584 cloudinit_user_data: *cloudinit_user_data_1604
585
586 interfaces: *interfaces
587 network_config: *network_config
588
589 - name: {{ HOSTNAME_RGW02 }}
590 role: salt_minion
591 params:
592 vcpu: !os_env SLAVE_NODE_CPU, 2
593 memory: !os_env SLAVE_NODE_MEMORY, 2048
594 boot:
595 - hd
596 cloud_init_volume_name: iso
597 cloud_init_iface_up: ens3
598 volumes:
599 - name: system
600 capacity: !os_env NODE_VOLUME_SIZE, 150
601 backing_store: cloudimage1604
602 format: qcow2
603 - name: iso # Volume with name 'iso' will be used
604 # for store image with cloud-init metadata.
605 capacity: 1
606 format: raw
607 device: cdrom
608 bus: ide
609 cloudinit_meta_data: *cloudinit_meta_data
610 cloudinit_user_data: *cloudinit_user_data_1604
611
612 interfaces: *interfaces
613 network_config: *network_config
614 - name: {{ HOSTNAME_RGW03 }}
615 role: salt_minion
616 params:
617 vcpu: !os_env SLAVE_NODE_CPU, 2
618 memory: !os_env SLAVE_NODE_MEMORY, 2048
619 boot:
620 - hd
621 cloud_init_volume_name: iso
622 cloud_init_iface_up: ens3
623 volumes:
624 - name: system
625 capacity: !os_env NODE_VOLUME_SIZE, 150
626 backing_store: cloudimage1604
627 format: qcow2
628 - name: iso # Volume with name 'iso' will be used
629 # for store image with cloud-init metadata.
630 capacity: 1
631 format: raw
632 device: cdrom
633 bus: ide
634 cloudinit_meta_data: *cloudinit_meta_data
635 cloudinit_user_data: *cloudinit_user_data_1604
636
637 interfaces: *interfaces
638 network_config: *network_config
639
640 - name: {{ HOSTNAME_PRX01 }}
641 role: salt_minion
642 params:
643 vcpu: !os_env SLAVE_NODE_CPU, 1
644 memory: !os_env SLAVE_NODE_MEMORY, 2048
645 boot:
646 - hd
647 cloud_init_volume_name: iso
648 cloud_init_iface_up: ens3
649 volumes:
650 - name: system
651 capacity: !os_env NODE_VOLUME_SIZE, 150
652 backing_store: mcp_ubuntu_1604_image
653 format: qcow2
654 - name: iso # Volume with name 'iso' will be used
655 # for store image with cloud-init metadata.
656 capacity: 1
657 format: raw
658 device: cdrom
659 bus: ide
660 cloudinit_meta_data: *cloudinit_meta_data
661 cloudinit_user_data: *cloudinit_user_data_1604
662
663 interfaces: *interfaces
664 network_config: *network_config
665
666 - name: {{ HOSTNAME_CMP01 }}
667 role: salt_minion
668 params:
669 vcpu: !os_env SLAVE_NODE_CPU, 3
670 memory: !os_env SLAVE_NODE_MEMORY, 4096
671 boot:
672 - hd
673 cloud_init_volume_name: iso
674 cloud_init_iface_up: ens3
675 volumes:
676 - name: system
677 capacity: !os_env NODE_VOLUME_SIZE, 150
678 backing_store: cloudimage1604
679 format: qcow2
680 - name: iso # Volume with name 'iso' will be used
681 # for store image with cloud-init metadata.
682 capacity: 1
683 format: raw
684 device: cdrom
685 bus: ide
686 cloudinit_meta_data: *cloudinit_meta_data
687 cloudinit_user_data: *cloudinit_user_data_1604
688
689
690 interfaces: &all_interfaces
691 - label: ens3
692 l2_network_device: admin
693 interface_model: *interface_model
694 - label: ens4
695 l2_network_device: private
696 interface_model: *interface_model
697 - label: ens5
698 l2_network_device: tenant
699 interface_model: *interface_model
700 - label: ens6
701 l2_network_device: external
702 interface_model: *interface_model
703 network_config: &all_network_config
704 ens3:
705 networks:
706 - admin
707 ens4:
708 networks:
709 - private
710 ens5:
711 networks:
712 - tenant
713 ens6:
714 networks:
715 - external
716
717 - name: {{ HOSTNAME_CMP02 }}
718 role: salt_minion
719 params:
720 vcpu: !os_env SLAVE_NODE_CPU, 3
721 memory: !os_env SLAVE_NODE_MEMORY, 4096
722 boot:
723 - hd
724 cloud_init_volume_name: iso
725 cloud_init_iface_up: ens3
726 volumes:
727 - name: system
728 capacity: !os_env NODE_VOLUME_SIZE, 150
729 backing_store: cloudimage1604
730 format: qcow2
731 - name: iso # Volume with name 'iso' will be used
732 # for store image with cloud-init metadata.
733 capacity: 1
734 format: raw
735 device: cdrom
736 bus: ide
737 cloudinit_meta_data: *cloudinit_meta_data
738 cloudinit_user_data: *cloudinit_user_data_1604
739
740 interfaces: *all_interfaces
741 network_config: *all_network_config
742
743 - name: {{ HOSTNAME_GTW01 }}
744 role: salt_minion
745 params:
746 vcpu: !os_env SLAVE_NODE_CPU, 4
747 memory: !os_env SLAVE_NODE_MEMORY, 4096
748 boot:
749 - hd
750 cloud_init_volume_name: iso
751 cloud_init_iface_up: ens3
752 volumes:
753 - name: system
754 capacity: !os_env NODE_VOLUME_SIZE, 150
755 backing_store: cloudimage1604
756 format: qcow2
757 - name: iso # Volume with name 'iso' will be used
758 # for store image with cloud-init metadata.
759 capacity: 1
760 format: raw
761 device: cdrom
762 bus: ide
763 cloudinit_meta_data: *cloudinit_meta_data
764 cloudinit_user_data: *cloudinit_user_data_1604
765
766 interfaces: *all_interfaces
767 network_config: *all_network_config