blob: 3281b0601b1c9234b2fd044e89c9614c4b4c34fa [file] [log] [blame]
Dennis Dmitriev411dd102017-09-15 16:04:47 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
3
4{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-mcp-ocata-dop-sl2') %}
Dennis Dmitriev0048fcd2017-10-21 12:26:48 +03005{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Dennis Dmitriev411dd102017-09-15 16:04:47 +03006{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
7{% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %}
8{% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
11{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
12{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
13{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
14{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
15{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
16{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %}
18{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
20
21{% import 'cookied-mcp-ocata-dop-sl2/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
22{% import 'cookied-mcp-ocata-dop-sl2/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030023{% import 'cookied-mcp-ocata-dop-sl2/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
24
25---
26aliases:
27 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
28 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
29 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030030 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
31
32template:
33 devops_settings:
34 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
35
36 address_pools:
37 private-pool01:
38 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
39 params:
40 ip_reserved:
41 gateway: +1
42 l2_network_device: +1
43 default_{{ HOSTNAME_CFG01 }}: +15
44
45 default_{{ HOSTNAME_CID }}: +90
46 default_{{ HOSTNAME_CID01 }}: +91
47 default_{{ HOSTNAME_CID02 }}: +92
48 default_{{ HOSTNAME_CID03 }}: +93
49
50 default_{{ HOSTNAME_MON }}: +70
51 default_{{ HOSTNAME_MON01 }}: +71
52 default_{{ HOSTNAME_MON02 }}: +72
53 default_{{ HOSTNAME_MON03 }}: +73
54
55 default_{{ HOSTNAME_CTL }}: +10
56 default_{{ HOSTNAME_CTL01 }}: +11
57 default_{{ HOSTNAME_CTL02 }}: +12
58 default_{{ HOSTNAME_CTL03 }}: +13
59 default_{{ HOSTNAME_GTW01 }}: +224
60 default_{{ HOSTNAME_GTW02 }}: +225
61 default_{{ HOSTNAME_PRX }}: +80
62 default_{{ HOSTNAME_PRX01 }}: +81
63 default_{{ HOSTNAME_PRX02 }}: +82
64
65 default_{{ HOSTNAME_CMP01 }}: +101
66 default_{{ HOSTNAME_CMP02 }}: +102
67 ip_ranges:
68 dhcp: [+90, -10]
69
70 admin-pool01:
71 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
72 params:
73 ip_reserved:
74 gateway: +1
75 l2_network_device: +1
76 default_{{ HOSTNAME_CFG01 }}: +15
77
78 default_{{ HOSTNAME_CID }}: +90
79 default_{{ HOSTNAME_CID01 }}: +91
80 default_{{ HOSTNAME_CID02 }}: +92
81 default_{{ HOSTNAME_CID03 }}: +93
82
83 default_{{ HOSTNAME_MON }}: +70
84 default_{{ HOSTNAME_MON01 }}: +71
85 default_{{ HOSTNAME_MON02 }}: +72
86 default_{{ HOSTNAME_MON03 }}: +73
87
88 default_{{ HOSTNAME_CTL }}: +10
89 default_{{ HOSTNAME_CTL01 }}: +11
90 default_{{ HOSTNAME_CTL02 }}: +12
91 default_{{ HOSTNAME_CTL03 }}: +13
92 default_{{ HOSTNAME_GTW01 }}: +224
93 default_{{ HOSTNAME_GTW02 }}: +225
94 default_{{ HOSTNAME_PRX }}: +80
95 default_{{ HOSTNAME_PRX01 }}: +81
96 default_{{ HOSTNAME_PRX02 }}: +82
97
98 default_{{ HOSTNAME_CMP01 }}: +101
99 default_{{ HOSTNAME_CMP02 }}: +102
100 ip_ranges:
101 dhcp: [+90, -10]
102
103 tenant-pool01:
104 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
105 params:
106 ip_reserved:
107 gateway: +1
108 l2_network_device: +1
109 default_{{ HOSTNAME_CFG01 }}: +15
110
111 default_{{ HOSTNAME_CID }}: +90
112 default_{{ HOSTNAME_CID01 }}: +91
113 default_{{ HOSTNAME_CID02 }}: +92
114 default_{{ HOSTNAME_CID03 }}: +93
115
116 default_{{ HOSTNAME_MON }}: +70
117 default_{{ HOSTNAME_MON01 }}: +71
118 default_{{ HOSTNAME_MON02 }}: +72
119 default_{{ HOSTNAME_MON03 }}: +73
120
121 default_{{ HOSTNAME_CTL }}: +10
122 default_{{ HOSTNAME_CTL01 }}: +11
123 default_{{ HOSTNAME_CTL02 }}: +12
124 default_{{ HOSTNAME_CTL03 }}: +13
125 default_{{ HOSTNAME_GTW01 }}: +6
126 default_{{ HOSTNAME_GTW02 }}: +7
127 default_{{ HOSTNAME_PRX }}: +80
128 default_{{ HOSTNAME_PRX01 }}: +81
129 default_{{ HOSTNAME_PRX02 }}: +82
130
131 default_{{ HOSTNAME_CMP01 }}: +101
132 default_{{ HOSTNAME_CMP02 }}: +102
133 ip_ranges:
134 dhcp: [+10, -10]
135
136 external-pool01:
137 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
138 params:
139 ip_reserved:
140 gateway: +1
141 l2_network_device: +1
142 default_{{ HOSTNAME_CFG01 }}: +15
143
144 default_{{ HOSTNAME_CID }}: +90
145 default_{{ HOSTNAME_CID01 }}: +91
146 default_{{ HOSTNAME_CID02 }}: +92
147 default_{{ HOSTNAME_CID03 }}: +93
148
149 default_{{ HOSTNAME_MON }}: +70
150 default_{{ HOSTNAME_MON01 }}: +71
151 default_{{ HOSTNAME_MON02 }}: +72
152 default_{{ HOSTNAME_MON03 }}: +73
153
154 default_{{ HOSTNAME_CTL }}: +10
155 default_{{ HOSTNAME_CTL01 }}: +11
156 default_{{ HOSTNAME_CTL02 }}: +12
157 default_{{ HOSTNAME_CTL03 }}: +13
158 default_{{ HOSTNAME_GTW01 }}: +224
159 default_{{ HOSTNAME_GTW02 }}: +225
160 default_{{ HOSTNAME_PRX }}: +80
161 default_{{ HOSTNAME_PRX01 }}: +81
162 default_{{ HOSTNAME_PRX02 }}: +82
163
164 default_{{ HOSTNAME_CMP01 }}: +101
165 default_{{ HOSTNAME_CMP02 }}: +102
166 ip_ranges:
167 dhcp: [+10, -10]
168
169
170 groups:
171 - name: default
172 driver:
173 name: devops.driver.libvirt
174 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300175 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
176 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300177 stp: False
178 hpet: False
179 enable_acpi: true
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300180 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
181 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300182
183 network_pools:
184 admin: admin-pool01
185 private: private-pool01
186 tenant: tenant-pool01
187 external: external-pool01
188
189 l2_network_devices:
190 admin:
191 address_pool: admin-pool01
192 dhcp: true
193 forward:
194 mode: nat
195
196 private:
197 address_pool: private-pool01
198 dhcp: false
199
200 #tenant:
201 # address_pool: tenant-pool01
202 # dhcp: false
203
204 external:
205 address_pool: external-pool01
206 dhcp: false
207 forward:
208 mode: nat
209
210
211 group_volumes:
212 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200213 source_image: {{ os_env('IMAGE_PATH1604') }} # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
214 format: qcow2
215 - name: cfg01_day01_image # Pre-configured day01 image
216 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300217 format: qcow2
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200218 - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes.
219 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
220 # or
221 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
222 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
223 format: qcow2
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300224
225 nodes:
226 - name: {{ HOSTNAME_CFG01 }}
227 role: salt_master
228 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300229 vcpu: {{ os_env('CFG_NODE_CPU', 2) }}
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300230 memory: {{ os_env('CFG_NODE_MEMORY', 4096) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300231 boot:
232 - hd
233 cloud_init_volume_name: iso
234 cloud_init_iface_up: ens3
235 volumes:
236 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300237 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200238 backing_store: cfg01_day01_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300239 format: qcow2
240 - name: iso # Volume with name 'iso' will be used
241 # for store image with cloud-init metadata.
242 capacity: 1
243 format: raw
244 device: cdrom
245 bus: ide
246 cloudinit_meta_data: *cloudinit_meta_data
247 cloudinit_user_data: *cloudinit_user_data_cfg01
248
249 interfaces:
250 - label: ens3
251 l2_network_device: admin
252 interface_model: *interface_model
253 - label: ens4
254 l2_network_device: private
255 interface_model: *interface_model
256 network_config:
257 ens3:
258 networks:
259 - admin
260 ens4:
261 networks:
262 - private
263
264 - name: {{ HOSTNAME_CID01 }}
265 role: salt_minion
266 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300267 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300268 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300269 boot:
270 - hd
271 cloud_init_volume_name: iso
272 cloud_init_iface_up: ens3
273 volumes:
274 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300275 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200276 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300277 format: qcow2
278 - name: iso # Volume with name 'iso' will be used
279 # for store image with cloud-init metadata.
280 capacity: 1
281 format: raw
282 device: cdrom
283 bus: ide
284 cloudinit_meta_data: *cloudinit_meta_data
285 cloudinit_user_data: *cloudinit_user_data_1604
286
287 interfaces: &interfaces
288 - label: ens3
289 l2_network_device: admin
290 interface_model: *interface_model
291 - label: ens4
292 l2_network_device: private
293 interface_model: *interface_model
294 network_config: &network_config
295 ens3:
296 networks:
297 - admin
298 ens4:
299 networks:
300 - private
301
302 - name: {{ HOSTNAME_CID02 }}
303 role: salt_minion
304 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300305 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300306 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300307 boot:
308 - hd
309 cloud_init_volume_name: iso
310 cloud_init_iface_up: ens3
311 volumes:
312 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300313 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200314 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300315 format: qcow2
316 - name: iso # Volume with name 'iso' will be used
317 # for store image with cloud-init metadata.
318 capacity: 1
319 format: raw
320 device: cdrom
321 bus: ide
322 cloudinit_meta_data: *cloudinit_meta_data
323 cloudinit_user_data: *cloudinit_user_data_1604
324
325 interfaces: *interfaces
326 network_config: *network_config
327
328 - name: {{ HOSTNAME_CID03 }}
329 role: salt_minion
330 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300331 vcpu: {{ os_env('CID_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300332 memory: {{ os_env('CID_NODE_MEMORY', 6144) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300333 boot:
334 - hd
335 cloud_init_volume_name: iso
336 cloud_init_iface_up: ens3
337 volumes:
338 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300339 capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200340 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300341 format: qcow2
342 - name: iso # Volume with name 'iso' will be used
343 # for store image with cloud-init metadata.
344 capacity: 1
345 format: raw
346 device: cdrom
347 bus: ide
348 cloudinit_meta_data: *cloudinit_meta_data
349 cloudinit_user_data: *cloudinit_user_data_1604
350
351 interfaces: *interfaces
352 network_config: *network_config
353
354 - name: {{ HOSTNAME_CTL01 }}
355 role: salt_minion
356 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300357 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300358 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300359 boot:
360 - hd
361 cloud_init_volume_name: iso
362 cloud_init_iface_up: ens3
363 volumes:
364 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300365 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200366 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300367 format: qcow2
368 - name: cinder
369 capacity: 50
370 format: qcow2
371 - name: iso # Volume with name 'iso' will be used
372 # for store image with cloud-init metadata.
373 capacity: 1
374 format: raw
375 device: cdrom
376 bus: ide
377 cloudinit_meta_data: *cloudinit_meta_data
378 cloudinit_user_data: *cloudinit_user_data_1604
379
380 interfaces: *interfaces
381 network_config: *network_config
382
383 - name: {{ HOSTNAME_CTL02 }}
384 role: salt_minion
385 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300386 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300387 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300388 boot:
389 - hd
390 cloud_init_volume_name: iso
391 cloud_init_iface_up: ens3
392 volumes:
393 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300394 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200395 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300396 format: qcow2
397 - name: cinder
398 capacity: 50
399 format: qcow2
400 - name: iso # Volume with name 'iso' will be used
401 # for store image with cloud-init metadata.
402 capacity: 1
403 format: raw
404 device: cdrom
405 bus: ide
406 cloudinit_meta_data: *cloudinit_meta_data
407 cloudinit_user_data: *cloudinit_user_data_1604
408
409 interfaces: *interfaces
410 network_config: *network_config
411
412 - name: {{ HOSTNAME_CTL03 }}
413 role: salt_minion
414 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300415 vcpu: {{ os_env('CTL_NODE_CPU', 3) }}
Dennis Dmitriev0ec3cd12017-10-19 15:42:41 +0300416 memory: {{ os_env('CTL_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300417 boot:
418 - hd
419 cloud_init_volume_name: iso
420 cloud_init_iface_up: ens3
421 volumes:
422 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300423 capacity: {{ os_env('CTL_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200424 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300425 format: qcow2
426 - name: cinder
427 capacity: 50
428 format: qcow2
429 - name: iso # Volume with name 'iso' will be used
430 # for store image with cloud-init metadata.
431 capacity: 1
432 format: raw
433 device: cdrom
434 bus: ide
435 cloudinit_meta_data: *cloudinit_meta_data
436 cloudinit_user_data: *cloudinit_user_data_1604
437
438 interfaces: *interfaces
439 network_config: *network_config
440
441 - name: {{ HOSTNAME_MON01 }}
442 role: salt_minion
443 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300444 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200445 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300446 boot:
447 - hd
448 cloud_init_volume_name: iso
449 cloud_init_iface_up: ens3
450 volumes:
451 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300452 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200453 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300454 format: qcow2
455 - name: cinder
456 capacity: 50
457 format: qcow2
458 - name: iso # Volume with name 'iso' will be used
459 # for store image with cloud-init metadata.
460 capacity: 1
461 format: raw
462 device: cdrom
463 bus: ide
464 cloudinit_meta_data: *cloudinit_meta_data
465 cloudinit_user_data: *cloudinit_user_data_1604
466
467 interfaces: *interfaces
468 network_config: *network_config
469
470 - name: {{ HOSTNAME_MON02 }}
471 role: salt_minion
472 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300473 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200474 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300475 boot:
476 - hd
477 cloud_init_volume_name: iso
478 cloud_init_iface_up: ens3
479 volumes:
480 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300481 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200482 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300483 format: qcow2
484 - name: cinder
485 capacity: 50
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
499 - name: {{ HOSTNAME_MON03 }}
500 role: salt_minion
501 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300502 vcpu: {{ os_env('MON_NODE_CPU', 2) }}
Dennis Dmitriev86f63e82017-11-09 00:07:45 +0200503 memory: {{ os_env('MON_NODE_MEMORY', 14000) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300504 boot:
505 - hd
506 cloud_init_volume_name: iso
507 cloud_init_iface_up: ens3
508 volumes:
509 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300510 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200511 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300512 format: qcow2
513 - name: cinder
514 capacity: 50
515 format: qcow2
516 - name: iso # Volume with name 'iso' will be used
517 # for store image with cloud-init metadata.
518 capacity: 1
519 format: raw
520 device: cdrom
521 bus: ide
522 cloudinit_meta_data: *cloudinit_meta_data
523 cloudinit_user_data: *cloudinit_user_data_1604
524
525 interfaces: *interfaces
526 network_config: *network_config
527
528 - name: {{ HOSTNAME_PRX01 }}
529 role: salt_minion
530 params:
Dennis Dmitrievce5ed8b2017-11-09 00:44:19 +0200531 vcpu: {{ os_env('PRX_NODE_CPU', 1) }}
532 memory: {{ os_env('PRX_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300533 boot:
534 - hd
535 cloud_init_volume_name: iso
536 cloud_init_iface_up: ens3
537 volumes:
538 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300539 capacity: {{ os_env('MON_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200540 backing_store: mcp_ubuntu_1604_image
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300541 format: qcow2
542 - name: cinder
543 capacity: 50
544 format: qcow2
545 - name: iso # Volume with name 'iso' will be used
546 # for store image with cloud-init metadata.
547 capacity: 1
548 format: raw
549 device: cdrom
550 bus: ide
551 cloudinit_meta_data: *cloudinit_meta_data
552 cloudinit_user_data: *cloudinit_user_data_1604
553
554 interfaces: *interfaces
555 network_config: *network_config
556
557 - name: {{ HOSTNAME_CMP01 }}
558 role: salt_minion
559 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300560 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
561 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300562 boot:
563 - hd
564 cloud_init_volume_name: iso
565 cloud_init_iface_up: ens3
566 volumes:
567 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300568 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300569 backing_store: cloudimage1604
570 format: qcow2
571 - name: iso # Volume with name 'iso' will be used
572 # for store image with cloud-init metadata.
573 capacity: 1
574 format: raw
575 device: cdrom
576 bus: ide
577 cloudinit_meta_data: *cloudinit_meta_data
578 cloudinit_user_data: *cloudinit_user_data_1604
579
580
581 interfaces: &all_interfaces
582 - label: ens3
583 l2_network_device: admin
584 interface_model: *interface_model
585 - label: ens4
586 l2_network_device: private
587 interface_model: *interface_model
588 - label: ens5
589 l2_network_device: private
590 interface_model: *interface_model
591 - label: ens6
592 l2_network_device: external
593 interface_model: *interface_model
594 network_config: &all_network_config
595 ens3:
596 networks:
597 - admin
598 ens4:
599 networks:
600 - private
601 ens5:
602 networks:
603 - private
604 ens6:
605 networks:
606 - external
607
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300608 - name: {{ HOSTNAME_CMP02 }}
609 role: salt_minion
610 params:
611 vcpu: {{ os_env('CMP_NODE_CPU', 2) }}
612 memory: {{ os_env('CMP_NODE_MEMORY', 3072) }}
613 boot:
614 - hd
615 cloud_init_volume_name: iso
616 cloud_init_iface_up: ens3
617 volumes:
618 - name: system
619 capacity: {{ os_env('CMP_NODE_VOLUME_SIZE', 150) }}
620 backing_store: cloudimage1604
621 format: qcow2
622 - name: iso # Volume with name 'iso' will be used
623 # for store image with cloud-init metadata.
624 capacity: 1
625 format: raw
626 device: cdrom
627 bus: ide
628 cloudinit_meta_data: *cloudinit_meta_data
629 cloudinit_user_data: *cloudinit_user_data_1604
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300630
631 interfaces: *all_interfaces
632 network_config: *all_network_config
633
634 - name: {{ HOSTNAME_GTW01 }}
635 role: salt_minion
636 params:
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300637 vcpu: {{ os_env('GTW_NODE_CPU', 1) }}
638 memory: {{ os_env('GTW_NODE_MEMORY', 2048) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300639 boot:
640 - hd
641 cloud_init_volume_name: iso
642 cloud_init_iface_up: ens3
643 volumes:
644 - name: system
Dennis Dmitrieva4de4972017-10-12 19:36:30 +0300645 capacity: {{ os_env('GTW_NODE_VOLUME_SIZE', 150) }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +0300646 backing_store: cloudimage1604
647 format: qcow2
648 - name: iso # Volume with name 'iso' will be used
649 # for store image with cloud-init metadata.
650 capacity: 1
651 format: raw
652 device: cdrom
653 bus: ide
654 cloudinit_meta_data: *cloudinit_meta_data
655 cloudinit_user_data: *cloudinit_user_data_1604
656
657 interfaces: *all_interfaces
658 network_config: *all_network_config