blob: 995f85577645d7de70d345993f5edf61f01011b6 [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 %}
Dennis Dmitriev8ed27882018-01-31 23:23:19 +020024{% import 'cookied-mcp-ocata-dop-sl2/underlay--user-data1604-hwe.yaml' as CLOUDINIT_USER_DATA_1604_HWE with context %}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030025
26---
27aliases:
28 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
29 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
30 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030031 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Dennis Dmitriev8ed27882018-01-31 23:23:19 +020032 - &cloudinit_user_data_1604_hwe {{ CLOUDINIT_USER_DATA_1604_HWE }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030033
34template:
35 devops_settings:
36 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
37
38 address_pools:
39 private-pool01:
40 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
41 params:
42 ip_reserved:
43 gateway: +1
44 l2_network_device: +1
45 default_{{ HOSTNAME_CFG01 }}: +15
46
47 default_{{ HOSTNAME_CID }}: +90
48 default_{{ HOSTNAME_CID01 }}: +91
49 default_{{ HOSTNAME_CID02 }}: +92
50 default_{{ HOSTNAME_CID03 }}: +93
51
52 default_{{ HOSTNAME_MON }}: +70
53 default_{{ HOSTNAME_MON01 }}: +71
54 default_{{ HOSTNAME_MON02 }}: +72
55 default_{{ HOSTNAME_MON03 }}: +73
56
57 default_{{ HOSTNAME_CTL }}: +10
58 default_{{ HOSTNAME_CTL01 }}: +11
59 default_{{ HOSTNAME_CTL02 }}: +12
60 default_{{ HOSTNAME_CTL03 }}: +13
61 default_{{ HOSTNAME_GTW01 }}: +224
62 default_{{ HOSTNAME_GTW02 }}: +225
63 default_{{ HOSTNAME_PRX }}: +80
64 default_{{ HOSTNAME_PRX01 }}: +81
65 default_{{ HOSTNAME_PRX02 }}: +82
66
67 default_{{ HOSTNAME_CMP01 }}: +101
68 default_{{ HOSTNAME_CMP02 }}: +102
69 ip_ranges:
70 dhcp: [+90, -10]
71
72 admin-pool01:
73 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
74 params:
75 ip_reserved:
76 gateway: +1
77 l2_network_device: +1
78 default_{{ HOSTNAME_CFG01 }}: +15
79
80 default_{{ HOSTNAME_CID }}: +90
81 default_{{ HOSTNAME_CID01 }}: +91
82 default_{{ HOSTNAME_CID02 }}: +92
83 default_{{ HOSTNAME_CID03 }}: +93
84
85 default_{{ HOSTNAME_MON }}: +70
86 default_{{ HOSTNAME_MON01 }}: +71
87 default_{{ HOSTNAME_MON02 }}: +72
88 default_{{ HOSTNAME_MON03 }}: +73
89
90 default_{{ HOSTNAME_CTL }}: +10
91 default_{{ HOSTNAME_CTL01 }}: +11
92 default_{{ HOSTNAME_CTL02 }}: +12
93 default_{{ HOSTNAME_CTL03 }}: +13
94 default_{{ HOSTNAME_GTW01 }}: +224
95 default_{{ HOSTNAME_GTW02 }}: +225
96 default_{{ HOSTNAME_PRX }}: +80
97 default_{{ HOSTNAME_PRX01 }}: +81
98 default_{{ HOSTNAME_PRX02 }}: +82
99
100 default_{{ HOSTNAME_CMP01 }}: +101
101 default_{{ HOSTNAME_CMP02 }}: +102
102 ip_ranges:
103 dhcp: [+90, -10]
104
105 tenant-pool01:
106 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
107 params:
108 ip_reserved:
109 gateway: +1
110 l2_network_device: +1
111 default_{{ HOSTNAME_CFG01 }}: +15
112
113 default_{{ HOSTNAME_CID }}: +90
114 default_{{ HOSTNAME_CID01 }}: +91
115 default_{{ HOSTNAME_CID02 }}: +92
116 default_{{ HOSTNAME_CID03 }}: +93
117
118 default_{{ HOSTNAME_MON }}: +70
119 default_{{ HOSTNAME_MON01 }}: +71
120 default_{{ HOSTNAME_MON02 }}: +72
121 default_{{ HOSTNAME_MON03 }}: +73
122
123 default_{{ HOSTNAME_CTL }}: +10
124 default_{{ HOSTNAME_CTL01 }}: +11
125 default_{{ HOSTNAME_CTL02 }}: +12
126 default_{{ HOSTNAME_CTL03 }}: +13
127 default_{{ HOSTNAME_GTW01 }}: +6
128 default_{{ HOSTNAME_GTW02 }}: +7
129 default_{{ HOSTNAME_PRX }}: +80
130 default_{{ HOSTNAME_PRX01 }}: +81
131 default_{{ HOSTNAME_PRX02 }}: +82
132
133 default_{{ HOSTNAME_CMP01 }}: +101
134 default_{{ HOSTNAME_CMP02 }}: +102
135 ip_ranges:
136 dhcp: [+10, -10]
137
138 external-pool01:
139 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
140 params:
141 ip_reserved:
142 gateway: +1
143 l2_network_device: +1
144 default_{{ HOSTNAME_CFG01 }}: +15
145
146 default_{{ HOSTNAME_CID }}: +90
147 default_{{ HOSTNAME_CID01 }}: +91
148 default_{{ HOSTNAME_CID02 }}: +92
149 default_{{ HOSTNAME_CID03 }}: +93
150
151 default_{{ HOSTNAME_MON }}: +70
152 default_{{ HOSTNAME_MON01 }}: +71
153 default_{{ HOSTNAME_MON02 }}: +72
154 default_{{ HOSTNAME_MON03 }}: +73
155
156 default_{{ HOSTNAME_CTL }}: +10
157 default_{{ HOSTNAME_CTL01 }}: +11
158 default_{{ HOSTNAME_CTL02 }}: +12
159 default_{{ HOSTNAME_CTL03 }}: +13
160 default_{{ HOSTNAME_GTW01 }}: +224
161 default_{{ HOSTNAME_GTW02 }}: +225
162 default_{{ HOSTNAME_PRX }}: +80
163 default_{{ HOSTNAME_PRX01 }}: +81
164 default_{{ HOSTNAME_PRX02 }}: +82
165
166 default_{{ HOSTNAME_CMP01 }}: +101
167 default_{{ HOSTNAME_CMP02 }}: +102
168 ip_ranges:
169 dhcp: [+10, -10]
170
171
172 groups:
173 - name: default
174 driver:
175 name: devops.driver.libvirt
176 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300177 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
178 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300179 stp: False
180 hpet: False
181 enable_acpi: true
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300182 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
183 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300184
185 network_pools:
186 admin: admin-pool01
187 private: private-pool01
188 tenant: tenant-pool01
189 external: external-pool01
190
191 l2_network_devices:
192 admin:
193 address_pool: admin-pool01
194 dhcp: true
195 forward:
196 mode: nat
197
198 private:
199 address_pool: private-pool01
200 dhcp: false
201
202 #tenant:
203 # address_pool: tenant-pool01
204 # dhcp: false
205
206 external:
207 address_pool: external-pool01
208 dhcp: false
209 forward:
210 mode: nat
211
212
213 group_volumes:
214 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200215 source_image: {{ os_env('IMAGE_PATH1604') }} # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
216 format: qcow2
217 - name: cfg01_day01_image # Pre-configured day01 image
218 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 +0300219 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200220 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
221 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
222 # or
223 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
224 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
225 format: qcow2
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300226
227 nodes:
228 - name: {{ HOSTNAME_CFG01 }}
229 role: salt_master
230 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300231 vcpu: {{ os_env('CFG_NODE_CPU', 2) }}
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300232 memory: {{ os_env('CFG_NODE_MEMORY', 4096) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300233 boot:
234 - hd
235 cloud_init_volume_name: iso
236 cloud_init_iface_up: ens3
237 volumes:
238 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300239 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200240 backing_store: cfg01_day01_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300241 format: qcow2
242 - name: iso # Volume with name 'iso' will be used
243 # for store image with cloud-init metadata.
244 capacity: 1
245 format: raw
246 device: cdrom
247 bus: ide
248 cloudinit_meta_data: *cloudinit_meta_data
249 cloudinit_user_data: *cloudinit_user_data_cfg01
250
251 interfaces:
252 - label: ens3
253 l2_network_device: admin
254 interface_model: *interface_model
255 - label: ens4
256 l2_network_device: private
257 interface_model: *interface_model
258 network_config:
259 ens3:
260 networks:
261 - admin
262 ens4:
263 networks:
264 - private
265
266 - name: {{ HOSTNAME_CID01 }}
267 role: salt_minion
268 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300269 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300270 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300271 boot:
272 - hd
273 cloud_init_volume_name: iso
274 cloud_init_iface_up: ens3
275 volumes:
276 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300277 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200278 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300279 format: qcow2
280 - name: iso # Volume with name 'iso' will be used
281 # for store image with cloud-init metadata.
282 capacity: 1
283 format: raw
284 device: cdrom
285 bus: ide
286 cloudinit_meta_data: *cloudinit_meta_data
287 cloudinit_user_data: *cloudinit_user_data_1604
288
289 interfaces: &interfaces
290 - label: ens3
291 l2_network_device: admin
292 interface_model: *interface_model
293 - label: ens4
294 l2_network_device: private
295 interface_model: *interface_model
296 network_config: &network_config
297 ens3:
298 networks:
299 - admin
300 ens4:
301 networks:
302 - private
303
304 - name: {{ HOSTNAME_CID02 }}
305 role: salt_minion
306 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300307 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300308 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300309 boot:
310 - hd
311 cloud_init_volume_name: iso
312 cloud_init_iface_up: ens3
313 volumes:
314 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300315 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200316 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300317 format: qcow2
318 - name: iso # Volume with name 'iso' will be used
319 # for store image with cloud-init metadata.
320 capacity: 1
321 format: raw
322 device: cdrom
323 bus: ide
324 cloudinit_meta_data: *cloudinit_meta_data
325 cloudinit_user_data: *cloudinit_user_data_1604
326
327 interfaces: *interfaces
328 network_config: *network_config
329
330 - name: {{ HOSTNAME_CID03 }}
331 role: salt_minion
332 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300333 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300334 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300335 boot:
336 - hd
337 cloud_init_volume_name: iso
338 cloud_init_iface_up: ens3
339 volumes:
340 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300341 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200342 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300343 format: qcow2
344 - name: iso # Volume with name 'iso' will be used
345 # for store image with cloud-init metadata.
346 capacity: 1
347 format: raw
348 device: cdrom
349 bus: ide
350 cloudinit_meta_data: *cloudinit_meta_data
351 cloudinit_user_data: *cloudinit_user_data_1604
352
353 interfaces: *interfaces
354 network_config: *network_config
355
356 - name: {{ HOSTNAME_CTL01 }}
357 role: salt_minion
358 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300359 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300360 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300361 boot:
362 - hd
363 cloud_init_volume_name: iso
364 cloud_init_iface_up: ens3
365 volumes:
366 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300367 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200368 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300369 format: qcow2
370 - name: cinder
371 capacity: 50
372 format: qcow2
373 - name: iso # Volume with name 'iso' will be used
374 # for store image with cloud-init metadata.
375 capacity: 1
376 format: raw
377 device: cdrom
378 bus: ide
379 cloudinit_meta_data: *cloudinit_meta_data
380 cloudinit_user_data: *cloudinit_user_data_1604
381
382 interfaces: *interfaces
383 network_config: *network_config
384
385 - name: {{ HOSTNAME_CTL02 }}
386 role: salt_minion
387 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300388 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300389 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300390 boot:
391 - hd
392 cloud_init_volume_name: iso
393 cloud_init_iface_up: ens3
394 volumes:
395 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300396 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200397 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300398 format: qcow2
399 - name: cinder
400 capacity: 50
401 format: qcow2
402 - name: iso # Volume with name 'iso' will be used
403 # for store image with cloud-init metadata.
404 capacity: 1
405 format: raw
406 device: cdrom
407 bus: ide
408 cloudinit_meta_data: *cloudinit_meta_data
409 cloudinit_user_data: *cloudinit_user_data_1604
410
411 interfaces: *interfaces
412 network_config: *network_config
413
414 - name: {{ HOSTNAME_CTL03 }}
415 role: salt_minion
416 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300417 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300418 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300419 boot:
420 - hd
421 cloud_init_volume_name: iso
422 cloud_init_iface_up: ens3
423 volumes:
424 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300425 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200426 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300427 format: qcow2
428 - name: cinder
429 capacity: 50
430 format: qcow2
431 - name: iso # Volume with name 'iso' will be used
432 # for store image with cloud-init metadata.
433 capacity: 1
434 format: raw
435 device: cdrom
436 bus: ide
437 cloudinit_meta_data: *cloudinit_meta_data
438 cloudinit_user_data: *cloudinit_user_data_1604
439
440 interfaces: *interfaces
441 network_config: *network_config
442
443 - name: {{ HOSTNAME_MON01 }}
444 role: salt_minion
445 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300446 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200447 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300448 boot:
449 - hd
450 cloud_init_volume_name: iso
451 cloud_init_iface_up: ens3
452 volumes:
453 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300454 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200455 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300456 format: qcow2
457 - name: cinder
458 capacity: 50
459 format: qcow2
460 - name: iso # Volume with name 'iso' will be used
461 # for store image with cloud-init metadata.
462 capacity: 1
463 format: raw
464 device: cdrom
465 bus: ide
466 cloudinit_meta_data: *cloudinit_meta_data
467 cloudinit_user_data: *cloudinit_user_data_1604
468
469 interfaces: *interfaces
470 network_config: *network_config
471
472 - name: {{ HOSTNAME_MON02 }}
473 role: salt_minion
474 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300475 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200476 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300477 boot:
478 - hd
479 cloud_init_volume_name: iso
480 cloud_init_iface_up: ens3
481 volumes:
482 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300483 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200484 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300485 format: qcow2
486 - name: cinder
487 capacity: 50
488 format: qcow2
489 - name: iso # Volume with name 'iso' will be used
490 # for store image with cloud-init metadata.
491 capacity: 1
492 format: raw
493 device: cdrom
494 bus: ide
495 cloudinit_meta_data: *cloudinit_meta_data
496 cloudinit_user_data: *cloudinit_user_data_1604
497
498 interfaces: *interfaces
499 network_config: *network_config
500
501 - name: {{ HOSTNAME_MON03 }}
502 role: salt_minion
503 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300504 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200505 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300506 boot:
507 - hd
508 cloud_init_volume_name: iso
509 cloud_init_iface_up: ens3
510 volumes:
511 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300512 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200513 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300514 format: qcow2
515 - name: cinder
516 capacity: 50
517 format: qcow2
518 - name: iso # Volume with name 'iso' will be used
519 # for store image with cloud-init metadata.
520 capacity: 1
521 format: raw
522 device: cdrom
523 bus: ide
524 cloudinit_meta_data: *cloudinit_meta_data
525 cloudinit_user_data: *cloudinit_user_data_1604
526
527 interfaces: *interfaces
528 network_config: *network_config
529
530 - name: {{ HOSTNAME_PRX01 }}
531 role: salt_minion
532 params:
Dennis Dmitrievce5ed8b2017-11-09 00:44:19 +0200533 vcpu: {{ os_env('PRX_NODE_CPU', 1) }}
534 memory: {{ os_env('PRX_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300535 boot:
536 - hd
537 cloud_init_volume_name: iso
538 cloud_init_iface_up: ens3
539 volumes:
540 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300541 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200542 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300543 format: qcow2
544 - name: cinder
545 capacity: 50
546 format: qcow2
547 - name: iso # Volume with name 'iso' will be used
548 # for store image with cloud-init metadata.
549 capacity: 1
550 format: raw
551 device: cdrom
552 bus: ide
553 cloudinit_meta_data: *cloudinit_meta_data
554 cloudinit_user_data: *cloudinit_user_data_1604
555
556 interfaces: *interfaces
557 network_config: *network_config
558
559 - name: {{ HOSTNAME_CMP01 }}
560 role: salt_minion
561 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300562 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
563 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300564 boot:
565 - hd
566 cloud_init_volume_name: iso
567 cloud_init_iface_up: ens3
568 volumes:
569 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300570 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300571 backing_store: cloudimage1604
572 format: qcow2
573 - name: iso # Volume with name 'iso' will be used
574 # for store image with cloud-init metadata.
575 capacity: 1
576 format: raw
577 device: cdrom
578 bus: ide
579 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200580 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300581
582
583 interfaces: &all_interfaces
584 - label: ens3
585 l2_network_device: admin
586 interface_model: *interface_model
587 - label: ens4
588 l2_network_device: private
589 interface_model: *interface_model
590 - label: ens5
591 l2_network_device: private
592 interface_model: *interface_model
593 - label: ens6
594 l2_network_device: external
595 interface_model: *interface_model
596 network_config: &all_network_config
597 ens3:
598 networks:
599 - admin
600 ens4:
601 networks:
602 - private
603 ens5:
604 networks:
605 - private
606 ens6:
607 networks:
608 - external
609
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300610 - name: {{ HOSTNAME_CMP02 }}
611 role: salt_minion
612 params:
613 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
614 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
615 boot:
616 - hd
617 cloud_init_volume_name: iso
618 cloud_init_iface_up: ens3
619 volumes:
620 - name: system
621 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
622 backing_store: cloudimage1604
623 format: qcow2
624 - name: iso # Volume with name 'iso' will be used
625 # for store image with cloud-init metadata.
626 capacity: 1
627 format: raw
628 device: cdrom
629 bus: ide
630 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200631 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300632
633 interfaces: *all_interfaces
634 network_config: *all_network_config
635
636 - name: {{ HOSTNAME_GTW01 }}
637 role: salt_minion
638 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300639 vcpu: {{ os_env('GTW_NODE_CPU', 1) }}
640 memory: {{ os_env('GTW_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300641 boot:
642 - hd
643 cloud_init_volume_name: iso
644 cloud_init_iface_up: ens3
645 volumes:
646 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300647 capacity: {{ os_env('GTW_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300648 backing_store: cloudimage1604
649 format: qcow2
650 - name: iso # Volume with name 'iso' will be used
651 # for store image with cloud-init metadata.
652 capacity: 1
653 format: raw
654 device: cdrom
655 bus: ide
656 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200657 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300658
659 interfaces: *all_interfaces
660 network_config: *all_network_config