blob: 07e1099ec19e415e57ea193747d2a6cec47a747e [file] [log] [blame]
Oleksii Butenkoba680de2018-08-23 14:15:19 +03001{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
2
Tatyana Leontovich6603e902018-12-04 15:11:19 +02003{% import 'cookied-cicd-pike-dvr-ceph/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
4{% import 'cookied-cicd-pike-dvr-ceph/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +03005
6---
7aliases:
8 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
9 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030010 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
11
Tatyana Leontovich6603e902018-12-04 15:11:19 +020012{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-pike-dvr-ceph') %}
Oleksii Butenko236db652018-10-10 14:45:31 +030013{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030014{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
15{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
16{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
Tatyana Leontovich6603e902018-12-04 15:11:19 +020018{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030021{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp1.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030023{% set HOSTNAME_CMN01 = os_env('HOSTNAME_CMN01', 'cmn01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMN02 = os_env('HOSTNAME_CMN02', 'cmn02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_CMN03 = os_env('HOSTNAME_CMN03', 'cmn03.' + DOMAIN_NAME) %}
Tatyana Leontovich6603e902018-12-04 15:11:19 +020026{% set HOSTNAME_RGW01 = os_env('HOSTNAME_RGW01', 'rgw01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_RGW02 = os_env('HOSTNAME_RGW02', 'rgw02.' + DOMAIN_NAME) %}
28{% set HOSTNAME_RGW03 = os_env('HOSTNAME_RGW03', 'rgw03.' + DOMAIN_NAME) %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030029{% set HOSTNAME_OSD01 = os_env('HOSTNAME_OSD01', 'osd1.' + DOMAIN_NAME) %}
30{% set HOSTNAME_OSD02 = os_env('HOSTNAME_OSD02', 'osd2.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030031{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
32{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Tatyana Leontovich6603e902018-12-04 15:11:19 +020033{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
34{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
35{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
36{% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %}
37{% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %}
38{% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %}
39{% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %}
40{% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %}
41{% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030042
43template:
44 devops_settings:
Tatyana Leontovich6603e902018-12-04 15:11:19 +020045 env_name: {{ os_env('ENV_NAME', 'cookied-cicd-pike-dvr-ceph_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030046
47 address_pools:
48 private-pool01:
49 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
50 params:
51 ip_reserved:
52 gateway: +1
53 l2_network_device: +1
54 default_{{ HOSTNAME_CFG01 }}: +15
55 default_{{ HOSTNAME_CTL01 }}: +11
56 default_{{ HOSTNAME_CTL02 }}: +12
57 default_{{ HOSTNAME_CTL03 }}: +13
58 default_{{ HOSTNAME_CMP01 }}: +105
59 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich6603e902018-12-04 15:11:19 +020060 default_{{ HOSTNAME_CID }}: +90
61 default_{{ HOSTNAME_CID01 }}: +91
62 default_{{ HOSTNAME_CID02 }}: +92
63 default_{{ HOSTNAME_CID03 }}: +93
Oleksii Butenkof5c86102018-09-10 13:29:53 +030064 default_{{ HOSTNAME_OSD01 }}: +94
65 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +030066 default_{{ HOSTNAME_CMN01 }}: +96
67 default_{{ HOSTNAME_CMN02 }}: +97
68 default_{{ HOSTNAME_CMN03 }}: +98
69 default_{{ HOSTNAME_RGW01 }}: +76
70 default_{{ HOSTNAME_RGW02 }}: +77
71 default_{{ HOSTNAME_RGW03 }}: +78
72 default_{{ HOSTNAME_GTW01 }}: +110
73 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich6603e902018-12-04 15:11:19 +020074 default_{{ HOSTNAME_MON01 }}: +71
75 default_{{ HOSTNAME_MON02 }}: +72
76 default_{{ HOSTNAME_MON03 }}: +73
77 default_{{ HOSTNAME_LOG01 }}: +61
78 default_{{ HOSTNAME_LOG02 }}: +62
79 default_{{ HOSTNAME_LOG03 }}: +63
80 default_{{ HOSTNAME_MTR01 }}: +51
81 default_{{ HOSTNAME_MTR02 }}: +52
82 default_{{ HOSTNAME_MTR03 }}: +53
Oleksii Butenkoba680de2018-08-23 14:15:19 +030083 ip_ranges:
Tatyana Leontovich6603e902018-12-04 15:11:19 +020084 dhcp: [+10, -10]
Oleksii Butenkoba680de2018-08-23 14:15:19 +030085
86 admin-pool01:
87 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
88 params:
89 ip_reserved:
90 gateway: +1
91 l2_network_device: +1
92 default_{{ HOSTNAME_CFG01 }}: +15
93 default_{{ HOSTNAME_CTL01 }}: +11
94 default_{{ HOSTNAME_CTL02 }}: +12
95 default_{{ HOSTNAME_CTL03 }}: +13
96 default_{{ HOSTNAME_CMP01 }}: +105
97 default_{{ HOSTNAME_CMP02 }}: +106
Tatyana Leontovich6603e902018-12-04 15:11:19 +020098 default_{{ HOSTNAME_CID }}: +90
99 default_{{ HOSTNAME_CID01 }}: +91
100 default_{{ HOSTNAME_CID02 }}: +92
101 default_{{ HOSTNAME_CID03 }}: +93
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300102 default_{{ HOSTNAME_OSD01 }}: +94
103 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300104 default_{{ HOSTNAME_CMN01 }}: +96
105 default_{{ HOSTNAME_CMN02 }}: +97
106 default_{{ HOSTNAME_CMN03 }}: +98
107 default_{{ HOSTNAME_RGW01 }}: +76
108 default_{{ HOSTNAME_RGW02 }}: +77
109 default_{{ HOSTNAME_RGW03 }}: +78
110 default_{{ HOSTNAME_GTW01 }}: +110
111 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200112 default_{{ HOSTNAME_MON01 }}: +71
113 default_{{ HOSTNAME_MON02 }}: +72
114 default_{{ HOSTNAME_MON03 }}: +73
115 default_{{ HOSTNAME_LOG01 }}: +61
116 default_{{ HOSTNAME_LOG02 }}: +62
117 default_{{ HOSTNAME_LOG03 }}: +63
118 default_{{ HOSTNAME_MTR01 }}: +51
119 default_{{ HOSTNAME_MTR02 }}: +52
120 default_{{ HOSTNAME_MTR03 }}: +53
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300121 ip_ranges:
122 dhcp: [+70, -10]
123
124 tenant-pool01:
125 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
126 params:
127 ip_reserved:
128 gateway: +1
129 l2_network_device: +1
130 default_{{ HOSTNAME_CFG01 }}: +15
131 default_{{ HOSTNAME_CTL01 }}: +11
132 default_{{ HOSTNAME_CTL02 }}: +12
133 default_{{ HOSTNAME_CTL03 }}: +13
134 default_{{ HOSTNAME_CMP01 }}: +105
135 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300136 default_{{ HOSTNAME_OSD01 }}: +94
137 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300138 default_{{ HOSTNAME_CMN01 }}: +96
139 default_{{ HOSTNAME_CMN02 }}: +97
140 default_{{ HOSTNAME_CMN03 }}: +98
141 default_{{ HOSTNAME_RGW01 }}: +76
142 default_{{ HOSTNAME_RGW02 }}: +77
143 default_{{ HOSTNAME_RGW03 }}: +78
144 default_{{ HOSTNAME_GTW01 }}: +110
145 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200146 default_{{ HOSTNAME_MON01 }}: +71
147 default_{{ HOSTNAME_MON02 }}: +72
148 default_{{ HOSTNAME_MON03 }}: +73
149 default_{{ HOSTNAME_LOG01 }}: +61
150 default_{{ HOSTNAME_LOG02 }}: +62
151 default_{{ HOSTNAME_LOG03 }}: +63
152 default_{{ HOSTNAME_MTR01 }}: +51
153 default_{{ HOSTNAME_MTR02 }}: +52
154 default_{{ HOSTNAME_MTR03 }}: +53
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300155 ip_ranges:
156 dhcp: [+10, -10]
157
158 external-pool01:
159 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
160 params:
161 ip_reserved:
162 gateway: +1
163 l2_network_device: +1
164 default_{{ HOSTNAME_CFG01 }}: +15
165 default_{{ HOSTNAME_CTL01 }}: +11
166 default_{{ HOSTNAME_CTL02 }}: +12
167 default_{{ HOSTNAME_CTL03 }}: +13
168 default_{{ HOSTNAME_CMP01 }}: +105
169 default_{{ HOSTNAME_CMP02 }}: +106
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300170 default_{{ HOSTNAME_OSD01 }}: +94
171 default_{{ HOSTNAME_OSD02 }}: +95
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300172 default_{{ HOSTNAME_CMN01 }}: +96
173 default_{{ HOSTNAME_CMN02 }}: +97
174 default_{{ HOSTNAME_CMN03 }}: +98
175 default_{{ HOSTNAME_RGW01 }}: +76
176 default_{{ HOSTNAME_RGW02 }}: +77
177 default_{{ HOSTNAME_RGW03 }}: +78
178 default_{{ HOSTNAME_GTW01 }}: +110
179 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200180 default_{{ HOSTNAME_MON01 }}: +71
181 default_{{ HOSTNAME_MON02 }}: +72
182 default_{{ HOSTNAME_MON03 }}: +73
183 default_{{ HOSTNAME_LOG01 }}: +61
184 default_{{ HOSTNAME_LOG02 }}: +62
185 default_{{ HOSTNAME_LOG03 }}: +63
186 default_{{ HOSTNAME_MTR01 }}: +51
187 default_{{ HOSTNAME_MTR02 }}: +52
188 default_{{ HOSTNAME_MTR03 }}: +53
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300189 ip_ranges:
Oleksii Butenko7c2c55b2018-09-20 15:22:13 +0300190 dhcp: [+130, +230]
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300191
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300192 groups:
193 - name: default
194 driver:
195 name: devops.driver.libvirt
196 params:
197 connection_string: !os_env CONNECTION_STRING, qemu:///system
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200198 storage_pool_name: !os_env STORAGE_POOL_NAME, default
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300199 stp: False
200 hpet: False
201 enable_acpi: true
202 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
203 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
204
205 network_pools:
206 admin: admin-pool01
207 private: private-pool01
208 tenant: tenant-pool01
209 external: external-pool01
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300210
211 l2_network_devices:
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300212 admin:
213 address_pool: admin-pool01
214 dhcp: true
215 forward:
216 mode: nat
217
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200218 private:
219 address_pool: private-pool01
220 dhcp: false
221 forward:
222 mode: route
223
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300224 tenant:
225 address_pool: tenant-pool01
226 dhcp: false
227
228 external:
229 address_pool: external-pool01
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200230 dhcp: false
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300231 forward:
232 mode: route
233
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300234 group_volumes:
235 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200236 source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300237 format: qcow2
238 - name: cfg01_day01_image # Pre-configured day01 image
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200239 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300240 format: qcow2
241 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
242 source_image: !os_env MCP_IMAGE_PATH1604
243 format: qcow2
244
245 nodes:
246 - name: {{ HOSTNAME_CFG01 }}
247 role: salt_master
248 params:
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200249 vcpu: {{ os_env('CFG_NODE_CPU', 3) }}
Dennis Dmitriev19afa872018-12-21 15:18:51 +0200250 memory: {{ os_env('CFG_NODE_MEMORY', 12288) }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300251 boot:
252 - hd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300253 volumes:
254 - name: system
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200255 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300256 backing_store: cfg01_day01_image
257 format: qcow2
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200258 - name: config
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300259 capacity: 1
260 format: raw
261 device: cdrom
262 bus: ide
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300263
264 interfaces:
265 - label: ens3
266 l2_network_device: admin
267 interface_model: *interface_model
268 - label: ens4
269 l2_network_device: private
270 interface_model: *interface_model
271 network_config:
272 ens3:
273 networks:
274 - admin
275 ens4:
276 networks:
277 - private
278
279 - name: {{ HOSTNAME_CTL01 }}
280 role: salt_minion
281 params:
282 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200283 memory: !os_env SLAVE_NODE_MEMORY, 6144
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300284 boot:
285 - hd
286 cloud_init_volume_name: iso
287 cloud_init_iface_up: ens3
288 volumes:
289 - name: system
290 capacity: !os_env NODE_VOLUME_SIZE, 150
291 backing_store: mcp_ubuntu_1604_image
292 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300293 - name: iso # Volume with name 'iso' will be used
294 # for store image with cloud-init metadata.
295 capacity: 1
296 format: raw
297 device: cdrom
298 bus: ide
299 cloudinit_meta_data: *cloudinit_meta_data
300 cloudinit_user_data: *cloudinit_user_data_1604
301
302 interfaces: &interfaces
303 - label: ens3
304 l2_network_device: admin
305 interface_model: *interface_model
306 - label: ens4
307 l2_network_device: private
308 interface_model: *interface_model
309 network_config: &network_config
310 ens3:
311 networks:
312 - admin
313 ens4:
314 networks:
315 - private
316
317 - name: {{ HOSTNAME_CTL02 }}
318 role: salt_minion
319 params:
320 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200321 memory: !os_env SLAVE_NODE_MEMORY, 6144
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300322 boot:
323 - hd
324 cloud_init_volume_name: iso
325 cloud_init_iface_up: ens3
326 volumes:
327 - name: system
328 capacity: !os_env NODE_VOLUME_SIZE, 150
329 backing_store: mcp_ubuntu_1604_image
330 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300331 - name: iso # Volume with name 'iso' will be used
332 # for store image with cloud-init metadata.
333 capacity: 1
334 format: raw
335 device: cdrom
336 bus: ide
337 cloudinit_meta_data: *cloudinit_meta_data
338 cloudinit_user_data: *cloudinit_user_data_1604
339
340 interfaces: *interfaces
341 network_config: *network_config
342
343 - name: {{ HOSTNAME_CTL03 }}
344 role: salt_minion
345 params:
346 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200347 memory: !os_env SLAVE_NODE_MEMORY, 6144
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300348 boot:
349 - hd
350 cloud_init_volume_name: iso
351 cloud_init_iface_up: ens3
352 volumes:
353 - name: system
354 capacity: !os_env NODE_VOLUME_SIZE, 150
355 backing_store: mcp_ubuntu_1604_image
356 format: qcow2
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300357 - name: iso # Volume with name 'iso' will be used
358 # for store image with cloud-init metadata.
359 capacity: 1
360 format: raw
361 device: cdrom
362 bus: ide
363 cloudinit_meta_data: *cloudinit_meta_data
364 cloudinit_user_data: *cloudinit_user_data_1604
365
366 interfaces: *interfaces
367 network_config: *network_config
368
369 - name: {{ HOSTNAME_CMN01 }}
370 role: salt_minion
371 params:
372 vcpu: !os_env SLAVE_NODE_CPU, 2
373 memory: !os_env SLAVE_NODE_MEMORY, 2048
374 boot:
375 - hd
376 cloud_init_volume_name: iso
377 cloud_init_iface_up: ens3
378 volumes:
379 - name: system
380 capacity: !os_env NODE_VOLUME_SIZE, 150
381 backing_store: cloudimage1604
382 format: qcow2
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385 capacity: 1
386 format: raw
387 device: cdrom
388 bus: ide
389 cloudinit_meta_data: *cloudinit_meta_data
390 cloudinit_user_data: *cloudinit_user_data_1604
391
392 interfaces: *interfaces
393 network_config: *network_config
394
395 - name: {{ HOSTNAME_CMN02 }}
396 role: salt_minion
397 params:
398 vcpu: !os_env SLAVE_NODE_CPU, 2
399 memory: !os_env SLAVE_NODE_MEMORY, 2048
400 boot:
401 - hd
402 cloud_init_volume_name: iso
403 cloud_init_iface_up: ens3
404 volumes:
405 - name: system
406 capacity: !os_env NODE_VOLUME_SIZE, 150
407 backing_store: cloudimage1604
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
421 - name: {{ HOSTNAME_CMN03 }}
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
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300447 - name: {{ HOSTNAME_OSD01 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300448 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
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300461 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300462 capacity: 50
463 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300464 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300465 capacity: 50
466 format: qcow2
467 - name: iso # Volume with name 'iso' will be used
468 # for store image with cloud-init metadata.
469 capacity: 1
470 format: raw
471 device: cdrom
472 bus: ide
473 cloudinit_meta_data: *cloudinit_meta_data
474 cloudinit_user_data: *cloudinit_user_data_1604
475
476 interfaces: *interfaces
477 network_config: *network_config
478
Oleksii Butenkof5c86102018-09-10 13:29:53 +0300479 - name: {{ HOSTNAME_OSD02 }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300480 role: salt_minion
481 params:
482 vcpu: !os_env SLAVE_NODE_CPU, 2
483 memory: !os_env SLAVE_NODE_MEMORY, 2048
484 boot:
485 - hd
486 cloud_init_volume_name: iso
487 cloud_init_iface_up: ens3
488 volumes:
489 - name: system
490 capacity: !os_env NODE_VOLUME_SIZE, 150
491 backing_store: cloudimage1604
492 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300493 - name: ceph_osd
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300494 capacity: 50
495 format: qcow2
Dennis Dmitriev1b8979d2018-10-19 19:53:02 +0300496 - name: ceph_journal
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300497 capacity: 50
498 format: qcow2
499 - name: iso # Volume with name 'iso' will be used
500 # for store image with cloud-init metadata.
501 capacity: 1
502 format: raw
503 device: cdrom
504 bus: ide
505 cloudinit_meta_data: *cloudinit_meta_data
506 cloudinit_user_data: *cloudinit_user_data_1604
507
508 interfaces: *interfaces
509 network_config: *network_config
510
511 - name: {{ HOSTNAME_RGW01 }}
512 role: salt_minion
513 params:
514 vcpu: !os_env SLAVE_NODE_CPU, 2
515 memory: !os_env SLAVE_NODE_MEMORY, 2048
516 boot:
517 - hd
518 cloud_init_volume_name: iso
519 cloud_init_iface_up: ens3
520 volumes:
521 - name: system
522 capacity: !os_env NODE_VOLUME_SIZE, 150
523 backing_store: cloudimage1604
524 format: qcow2
525 - name: iso # Volume with name 'iso' will be used
526 # for store image with cloud-init metadata.
527 capacity: 1
528 format: raw
529 device: cdrom
530 bus: ide
531 cloudinit_meta_data: *cloudinit_meta_data
532 cloudinit_user_data: *cloudinit_user_data_1604
533
534 interfaces: *interfaces
535 network_config: *network_config
536
537 - name: {{ HOSTNAME_RGW02 }}
538 role: salt_minion
539 params:
540 vcpu: !os_env SLAVE_NODE_CPU, 2
541 memory: !os_env SLAVE_NODE_MEMORY, 2048
542 boot:
543 - hd
544 cloud_init_volume_name: iso
545 cloud_init_iface_up: ens3
546 volumes:
547 - name: system
548 capacity: !os_env NODE_VOLUME_SIZE, 150
549 backing_store: cloudimage1604
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 - name: {{ HOSTNAME_RGW03 }}
563 role: salt_minion
564 params:
565 vcpu: !os_env SLAVE_NODE_CPU, 2
566 memory: !os_env SLAVE_NODE_MEMORY, 2048
567 boot:
568 - hd
569 cloud_init_volume_name: iso
570 cloud_init_iface_up: ens3
571 volumes:
572 - name: system
573 capacity: !os_env NODE_VOLUME_SIZE, 150
574 backing_store: cloudimage1604
575 format: qcow2
576 - name: iso # Volume with name 'iso' will be used
577 # for store image with cloud-init metadata.
578 capacity: 1
579 format: raw
580 device: cdrom
581 bus: ide
582 cloudinit_meta_data: *cloudinit_meta_data
583 cloudinit_user_data: *cloudinit_user_data_1604
584
585 interfaces: *interfaces
586 network_config: *network_config
587
588 - name: {{ HOSTNAME_PRX01 }}
589 role: salt_minion
590 params:
591 vcpu: !os_env SLAVE_NODE_CPU, 1
592 memory: !os_env SLAVE_NODE_MEMORY, 2048
593 boot:
594 - hd
595 cloud_init_volume_name: iso
596 cloud_init_iface_up: ens3
597 volumes:
598 - name: system
599 capacity: !os_env NODE_VOLUME_SIZE, 150
600 backing_store: mcp_ubuntu_1604_image
601 format: qcow2
602 - name: iso # Volume with name 'iso' will be used
603 # for store image with cloud-init metadata.
604 capacity: 1
605 format: raw
606 device: cdrom
607 bus: ide
608 cloudinit_meta_data: *cloudinit_meta_data
609 cloudinit_user_data: *cloudinit_user_data_1604
610
611 interfaces: *interfaces
612 network_config: *network_config
613
614 - name: {{ HOSTNAME_CMP01 }}
615 role: salt_minion
616 params:
617 vcpu: !os_env SLAVE_NODE_CPU, 3
618 memory: !os_env SLAVE_NODE_MEMORY, 4096
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
638 interfaces: &all_interfaces
639 - label: ens3
640 l2_network_device: admin
641 interface_model: *interface_model
642 - label: ens4
643 l2_network_device: private
644 interface_model: *interface_model
645 - label: ens5
646 l2_network_device: tenant
647 interface_model: *interface_model
648 - label: ens6
649 l2_network_device: external
650 interface_model: *interface_model
651 network_config: &all_network_config
652 ens3:
653 networks:
654 - admin
655 ens4:
656 networks:
657 - private
658 ens5:
659 networks:
660 - tenant
661 ens6:
662 networks:
663 - external
664
665 - name: {{ HOSTNAME_CMP02 }}
666 role: salt_minion
667 params:
668 vcpu: !os_env SLAVE_NODE_CPU, 3
669 memory: !os_env SLAVE_NODE_MEMORY, 4096
670 boot:
671 - hd
672 cloud_init_volume_name: iso
673 cloud_init_iface_up: ens3
674 volumes:
675 - name: system
676 capacity: !os_env NODE_VOLUME_SIZE, 150
677 backing_store: cloudimage1604
678 format: qcow2
679 - name: iso # Volume with name 'iso' will be used
680 # for store image with cloud-init metadata.
681 capacity: 1
682 format: raw
683 device: cdrom
684 bus: ide
685 cloudinit_meta_data: *cloudinit_meta_data
686 cloudinit_user_data: *cloudinit_user_data_1604
687
688 interfaces: *all_interfaces
689 network_config: *all_network_config
690
691 - name: {{ HOSTNAME_GTW01 }}
692 role: salt_minion
693 params:
694 vcpu: !os_env SLAVE_NODE_CPU, 4
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200695 memory: !os_env SLAVE_NODE_MEMORY, 2048
Oleksii Butenkoba680de2018-08-23 14:15:19 +0300696 boot:
697 - hd
698 cloud_init_volume_name: iso
699 cloud_init_iface_up: ens3
700 volumes:
701 - name: system
702 capacity: !os_env NODE_VOLUME_SIZE, 150
703 backing_store: cloudimage1604
704 format: qcow2
705 - name: iso # Volume with name 'iso' will be used
706 # for store image with cloud-init metadata.
707 capacity: 1
708 format: raw
709 device: cdrom
710 bus: ide
711 cloudinit_meta_data: *cloudinit_meta_data
712 cloudinit_user_data: *cloudinit_user_data_1604
713
714 interfaces: *all_interfaces
715 network_config: *all_network_config
Tatyana Leontovich6603e902018-12-04 15:11:19 +0200716
717 - name: {{ HOSTNAME_CID01 }}
718 role: salt_minion
719 params:
720 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
721 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
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('CID_NODE_VOLUME_SIZE', 150) }}
729 backing_store: mcp_ubuntu_1604_image
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: *interfaces
741 network_config: *network_config
742
743 - name: {{ HOSTNAME_CID02 }}
744 role: salt_minion
745 params:
746 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
747 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
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('CID_NODE_VOLUME_SIZE', 150) }}
755 backing_store: mcp_ubuntu_1604_image
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: *interfaces
767 network_config: *network_config
768
769 - name: {{ HOSTNAME_CID03 }}
770 role: salt_minion
771 params:
772 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
773 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
774 boot:
775 - hd
776 cloud_init_volume_name: iso
777 cloud_init_iface_up: ens3
778 volumes:
779 - name: system
780 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
781 backing_store: mcp_ubuntu_1604_image
782 format: qcow2
783 - name: iso # Volume with name 'iso' will be used
784 # for store image with cloud-init metadata.
785 capacity: 1
786 format: raw
787 device: cdrom
788 bus: ide
789 cloudinit_meta_data: *cloudinit_meta_data
790 cloudinit_user_data: *cloudinit_user_data_1604
791
792 interfaces: *interfaces
793 network_config: *network_config
794
795 - name: {{ HOSTNAME_MON01 }}
796 role: salt_minion
797 params:
798 vcpu: !os_env SLAVE_NODE_CPU, 2
799 memory: !os_env SLAVE_NODE_MEMORY, 2048
800 boot:
801 - hd
802 cloud_init_volume_name: iso
803 cloud_init_iface_up: ens3
804 volumes:
805 - name: system
806 capacity: !os_env NODE_VOLUME_SIZE, 150
807 backing_store: mcp_ubuntu_1604_image
808 format: qcow2
809 - name: iso # Volume with name 'iso' will be used
810 # for store image with cloud-init metadata.
811 capacity: 1
812 format: raw
813 device: cdrom
814 bus: ide
815 cloudinit_meta_data: *cloudinit_meta_data
816 cloudinit_user_data: *cloudinit_user_data_1604
817
818 interfaces: *interfaces
819 network_config: *network_config
820
821 - name: {{ HOSTNAME_MON02 }}
822 role: salt_minion
823 params:
824 vcpu: !os_env SLAVE_NODE_CPU, 2
825 memory: !os_env SLAVE_NODE_MEMORY, 2048
826 boot:
827 - hd
828 cloud_init_volume_name: iso
829 cloud_init_iface_up: ens3
830 volumes:
831 - name: system
832 capacity: !os_env NODE_VOLUME_SIZE, 150
833 backing_store: mcp_ubuntu_1604_image
834 format: qcow2
835 - name: iso # Volume with name 'iso' will be used
836 # for store image with cloud-init metadata.
837 capacity: 1
838 format: raw
839 device: cdrom
840 bus: ide
841 cloudinit_meta_data: *cloudinit_meta_data
842 cloudinit_user_data: *cloudinit_user_data_1604
843
844 interfaces: *interfaces
845 network_config: *network_config
846
847 - name: {{ HOSTNAME_MON03 }}
848 role: salt_minion
849 params:
850 vcpu: !os_env SLAVE_NODE_CPU, 2
851 memory: !os_env SLAVE_NODE_MEMORY, 2048
852 boot:
853 - hd
854 cloud_init_volume_name: iso
855 cloud_init_iface_up: ens3
856 volumes:
857 - name: system
858 capacity: !os_env NODE_VOLUME_SIZE, 150
859 backing_store: mcp_ubuntu_1604_image
860 format: qcow2
861 - name: iso # Volume with name 'iso' will be used
862 # for store image with cloud-init metadata.
863 capacity: 1
864 format: raw
865 device: cdrom
866 bus: ide
867 cloudinit_meta_data: *cloudinit_meta_data
868 cloudinit_user_data: *cloudinit_user_data_1604
869
870 interfaces: *interfaces
871 network_config: *network_config
872
873 - name: {{ HOSTNAME_LOG01 }}
874 role: salt_minion
875 params:
876 vcpu: !os_env SLAVE_NODE_CPU, 2
877 memory: !os_env SLAVE_NODE_MEMORY, 2048
878 boot:
879 - hd
880 cloud_init_volume_name: iso
881 cloud_init_iface_up: ens3
882 volumes:
883 - name: system
884 capacity: !os_env NODE_VOLUME_SIZE, 150
885 backing_store: mcp_ubuntu_1604_image
886 format: qcow2
887 - name: iso # Volume with name 'iso' will be used
888 # for store image with cloud-init metadata.
889 capacity: 1
890 format: raw
891 device: cdrom
892 bus: ide
893 cloudinit_meta_data: *cloudinit_meta_data
894 cloudinit_user_data: *cloudinit_user_data_1604
895
896 interfaces: *interfaces
897 network_config: *network_config
898
899 - name: {{ HOSTNAME_LOG02 }}
900 role: salt_minion
901 params:
902 vcpu: !os_env SLAVE_NODE_CPU, 2
903 memory: !os_env SLAVE_NODE_MEMORY, 2048
904 boot:
905 - hd
906 cloud_init_volume_name: iso
907 cloud_init_iface_up: ens3
908 volumes:
909 - name: system
910 capacity: !os_env NODE_VOLUME_SIZE, 150
911 backing_store: mcp_ubuntu_1604_image
912 format: qcow2
913 - name: iso # Volume with name 'iso' will be used
914 # for store image with cloud-init metadata.
915 capacity: 1
916 format: raw
917 device: cdrom
918 bus: ide
919 cloudinit_meta_data: *cloudinit_meta_data
920 cloudinit_user_data: *cloudinit_user_data_1604
921
922 interfaces: *interfaces
923 network_config: *network_config
924
925 - name: {{ HOSTNAME_LOG03 }}
926 role: salt_minion
927 params:
928 vcpu: !os_env SLAVE_NODE_CPU, 2
929 memory: !os_env SLAVE_NODE_MEMORY, 2048
930 boot:
931 - hd
932 cloud_init_volume_name: iso
933 cloud_init_iface_up: ens3
934 volumes:
935 - name: system
936 capacity: !os_env NODE_VOLUME_SIZE, 150
937 backing_store: mcp_ubuntu_1604_image
938 format: qcow2
939 - name: iso # Volume with name 'iso' will be used
940 # for store image with cloud-init metadata.
941 capacity: 1
942 format: raw
943 device: cdrom
944 bus: ide
945 cloudinit_meta_data: *cloudinit_meta_data
946 cloudinit_user_data: *cloudinit_user_data_1604
947
948 interfaces: *interfaces
949 network_config: *network_config
950
951 - name: {{ HOSTNAME_MTR01 }}
952 role: salt_minion
953 params:
954 vcpu: !os_env SLAVE_NODE_CPU, 2
955 memory: !os_env SLAVE_NODE_MEMORY, 2048
956 boot:
957 - hd
958 cloud_init_volume_name: iso
959 cloud_init_iface_up: ens3
960 volumes:
961 - name: system
962 capacity: !os_env NODE_VOLUME_SIZE, 150
963 backing_store: mcp_ubuntu_1604_image
964 format: qcow2
965 - name: iso # Volume with name 'iso' will be used
966 # for store image with cloud-init metadata.
967 capacity: 1
968 format: raw
969 device: cdrom
970 bus: ide
971 cloudinit_meta_data: *cloudinit_meta_data
972 cloudinit_user_data: *cloudinit_user_data_1604
973
974 interfaces: *interfaces
975 network_config: *network_config
976
977 - name: {{ HOSTNAME_MTR02 }}
978 role: salt_minion
979 params:
980 vcpu: !os_env SLAVE_NODE_CPU, 2
981 memory: !os_env SLAVE_NODE_MEMORY, 2048
982 boot:
983 - hd
984 cloud_init_volume_name: iso
985 cloud_init_iface_up: ens3
986 volumes:
987 - name: system
988 capacity: !os_env NODE_VOLUME_SIZE, 150
989 backing_store: mcp_ubuntu_1604_image
990 format: qcow2
991 - name: iso # Volume with name 'iso' will be used
992 # for store image with cloud-init metadata.
993 capacity: 1
994 format: raw
995 device: cdrom
996 bus: ide
997 cloudinit_meta_data: *cloudinit_meta_data
998 cloudinit_user_data: *cloudinit_user_data_1604
999
1000 interfaces: *interfaces
1001 network_config: *network_config
1002
1003 - name: {{ HOSTNAME_MTR03 }}
1004 role: salt_minion
1005 params:
1006 vcpu: !os_env SLAVE_NODE_CPU, 2
1007 memory: !os_env SLAVE_NODE_MEMORY, 2048
1008 boot:
1009 - hd
1010 cloud_init_volume_name: iso
1011 cloud_init_iface_up: ens3
1012 volumes:
1013 - name: system
1014 capacity: !os_env NODE_VOLUME_SIZE, 150
1015 backing_store: mcp_ubuntu_1604_image
1016 format: qcow2
1017 - name: iso # Volume with name 'iso' will be used
1018 # for store image with cloud-init metadata.
1019 capacity: 1
1020 format: raw
1021 device: cdrom
1022 bus: ide
1023 cloudinit_meta_data: *cloudinit_meta_data
1024 cloudinit_user_data: *cloudinit_user_data_1604
1025
1026 interfaces: *interfaces
1027 network_config: *network_config