blob: ab28e9b1e991273287936b3dd98f27dddfef17aa [file] [log] [blame]
Oleksii Butenko7c48def2017-10-03 12:41:05 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Oleksii Butenko7d9671c2017-11-01 17:27:23 +02003{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-bm-mcp-dvr-vxlan') %}
Dennis Dmitriev0048fcd2017-10-21 12:26:48 +03004{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +03005{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
6{% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %}
7{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %}
8{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + DOMAIN_NAME) %}
11{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Oleksii Butenko7d9671c2017-11-01 17:27:23 +020012{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
Oleksii Butenko6e375932018-01-10 17:13:20 +020013{% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW02', 'gtw02.' + DOMAIN_NAME) %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030014{% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.49.2') %}
15{% set ETH0_IP_ADDRESS_KVM01 = os_env('ETH0_IP_ADDRESS_KVM01', '172.16.49.11') %}
16{% set ETH0_IP_ADDRESS_KVM02 = os_env('ETH0_IP_ADDRESS_KVM02', '172.16.49.12') %}
17{% set ETH0_IP_ADDRESS_KVM03 = os_env('ETH0_IP_ADDRESS_KVM03', '172.16.49.13') %}
18{% set ETH0_IP_ADDRESS_CMP001 = os_env('ETH0_IP_ADDRESS_CMP001', '172.16.49.3') %}
19{% set ETH0_IP_ADDRESS_CMP002 = os_env('ETH0_IP_ADDRESS_CMP002', '172.16.49.31') %}
20{% set ETH0_IP_ADDRESS_GTW01 = os_env('ETH0_IP_ADDRESS_GTW01', '172.16.49.5') %}
Oleksii Butenko6e375932018-01-10 17:13:20 +020021{% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '172.16.49.4') %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030022
Oleksii Butenko7d9671c2017-11-01 17:27:23 +020023{% import 'cookied-bm-mcp-dvr-vxlan/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
24{% import 'cookied-bm-mcp-dvr-vxlan/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
25{% import 'cookied-bm-mcp-dvr-vxlan/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev8ed27882018-01-31 23:23:19 +020026{% import 'cookied-bm-mcp-dvr-vxlan/underlay--user-data1604-hwe.yaml' as CLOUDINIT_USER_DATA_1604_HWE with context %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030027
28---
29aliases:
30 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
31 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
32 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
33 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Dennis Dmitriev8ed27882018-01-31 23:23:19 +020034 - &cloudinit_user_data_1604_hwe {{ CLOUDINIT_USER_DATA_1604_HWE }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030035
36template:
37 devops_settings:
38 env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
39
40 address_pools:
41 admin-pool01:
42 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.49.0/26:26') }}
43 params:
44 ip_reserved:
45 gateway: +62
46 l2_network_device: +61
47 virtual_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }}
48 default_{{ HOSTNAME_KVM01 }}: {{ ETH0_IP_ADDRESS_KVM01 }}
49 default_{{ HOSTNAME_KVM02 }}: {{ ETH0_IP_ADDRESS_KVM02 }}
50 default_{{ HOSTNAME_KVM03 }}: {{ ETH0_IP_ADDRESS_KVM03 }}
51 default_{{ HOSTNAME_CMP001 }}: {{ ETH0_IP_ADDRESS_CMP001 }}
52 default_{{ HOSTNAME_CMP002 }}: {{ ETH0_IP_ADDRESS_CMP002 }}
53 default_{{ HOSTNAME_GTW01 }}: {{ ETH0_IP_ADDRESS_GTW01 }}
Oleksii Butenko6e375932018-01-10 17:13:20 +020054 default_{{ HOSTNAME_GTW02 }}: {{ ETH0_IP_ADDRESS_GTW02 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030055 ip_ranges:
56 dhcp: [+2, -4]
57 private-pool01:
58 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.167.4.0/24:24') }}
59 params:
60 ip_reserved:
61 gateway: +1
62 l2_network_device: +1
63
64 tenant-pool01:
65 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.167.6.0/24:24') }}
66 params:
67 ip_reserved:
68 gateway: +1
69 l2_network_device: +1
70
71 external-pool01:
72 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '172.17.42.128/26:26') }}
73 params:
74 ip_reserved:
75 gateway: +1
76 l2_network_device: -2
77
78
79 groups:
80 - name: virtual
81 driver:
82 name: devops.driver.libvirt
83 params:
84 connection_string: !os_env CONNECTION_STRING, qemu:///system
85 storage_pool_name: !os_env STORAGE_POOL_NAME, default
86 stp: False
87 hpet: False
88 enable_acpi: true
89 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
90 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
91
92 network_pools:
93 admin: admin-pool01
94
95 l2_network_devices:
96 # Ironic management interface
97 admin:
98 address_pool: admin-pool01
99 dhcp: false
100 parent_iface:
101 phys_dev: !os_env IRONIC_LAB_PXE_IFACE_0
102
103 group_volumes:
104 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200105 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
106 format: qcow2
107 - name: cfg01_day01_image # Pre-configured day01 image
108 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300109 format: qcow2
110
111 nodes:
112 - name: {{ HOSTNAME_CFG01 }}
113 role: salt_master
114 params:
115 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200116 memory: !os_env SLAVE_NODE_MEMORY, 8192
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300117 boot:
118 - hd
119 cloud_init_volume_name: iso
120 cloud_init_iface_up: ens3
121 volumes:
122 - name: system
123 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200124 backing_store: cfg01_day01_image
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300125 format: qcow2
126 - name: iso # Volume with name 'iso' will be used
127 # for store image with cloud-init metadata.
128 capacity: 1
129 format: raw
130 device: cdrom
131 bus: ide
132 cloudinit_meta_data: *cloudinit_meta_data
133 cloudinit_user_data: *cloudinit_user_data_cfg01
134
135 interfaces:
136 - label: ens3
137 l2_network_device: admin
138 interface_model: *interface_model
139 mac_address: !os_env ETH1_MAC_ADDRESS_CFG01
140 #- label: ens4
141 # l2_network_device: private
142 # interface_model: *interface_model
143 network_config:
144 ens3:
145 networks:
146 - admin
147 #ens4:
148 # networks:
149 # - private
150
151
152 - name: default
153 driver:
154 name: devops_driver_ironic
155 params:
156 os_auth_token: fake-token
157 ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops
158 # to access Ironic API
159 # Agent URL that is accessible from deploying node when nodes
160 # are bootstrapped with PXE. Usually PXE/provision network address is used.
161 agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL
162 agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL
163
164 network_pools:
165 admin: admin-pool01
166
167 nodes:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300168 - name: {{ HOSTNAME_KVM01 }}
169 role: salt_minion
170 params:
171 ipmi_user: !os_env IPMI_USER
172 ipmi_password: !os_env IPMI_PASSWORD
173 ipmi_previlegies: OPERATOR
174 ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address
175 ipmi_lan_interface: lanplus
176 ipmi_port: 623
177
178 root_volume_name: system # see 'volumes' below
179 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200180 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300181 volumes:
182 - name: system
183 capacity: !os_env NODE_VOLUME_SIZE, 200
184
185 # The same as for agent URL, here is an URL to the image that should be
186 # used for deploy the node. It should also be accessible from deploying
187 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
188 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
189 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
190
191 - name: iso # Volume with name 'iso' will be used
192 # for store image with cloud-init metadata.
193
194 cloudinit_meta_data: *cloudinit_meta_data
195 cloudinit_user_data: *cloudinit_user_data_1604
196
197 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200198 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300199 l2_network_device: admin
200 mac_address: !os_env ETH0_MAC_ADDRESS_KVM01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200201 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300202 mac_address: !os_env ETH1_MAC_ADDRESS_KVM01
203
204 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200205 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300206 networks:
207 - admin
208 bond0:
209 networks:
210 - control
211 aggregation: active-backup
212 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200213 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300214
215 - name: {{ HOSTNAME_KVM02 }}
216 role: salt_minion
217 params:
218 ipmi_user: !os_env IPMI_USER
219 ipmi_password: !os_env IPMI_PASSWORD
220 ipmi_previlegies: OPERATOR
221 ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address
222 ipmi_lan_interface: lanplus
223 ipmi_port: 623
224
225 root_volume_name: system # see 'volumes' below
226 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200227 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300228 volumes:
229 - name: system
230 capacity: !os_env NODE_VOLUME_SIZE, 200
231
232 # The same as for agent URL, here is an URL to the image that should be
233 # used for deploy the node. It should also be accessible from deploying
234 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
235 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
236 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
237
238 - name: iso # Volume with name 'iso' will be used
239 # for store image with cloud-init metadata.
240
241 cloudinit_meta_data: *cloudinit_meta_data
242 cloudinit_user_data: *cloudinit_user_data_1604
243
244 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200245 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300246 l2_network_device: admin
247 mac_address: !os_env ETH0_MAC_ADDRESS_KVM02
Oleksii Butenko6e375932018-01-10 17:13:20 +0200248 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300249 mac_address: !os_env ETH1_MAC_ADDRESS_KVM02
250
251 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200252 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300253 networks:
254 - admin
255 bond0:
256 networks:
257 - control
258 aggregation: active-backup
259 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200260 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300261
262 - name: {{ HOSTNAME_KVM03 }}
263 role: salt_minion
264 params:
265 ipmi_user: !os_env IPMI_USER
266 ipmi_password: !os_env IPMI_PASSWORD
267 ipmi_previlegies: OPERATOR
268 ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address
269 ipmi_lan_interface: lanplus
270 ipmi_port: 623
271
272 root_volume_name: system # see 'volumes' below
273 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200274 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300275 volumes:
276 - name: system
277 capacity: !os_env NODE_VOLUME_SIZE, 200
278
279 # The same as for agent URL, here is an URL to the image that should be
280 # used for deploy the node. It should also be accessible from deploying
281 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
282 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
283 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
284
285 - name: iso # Volume with name 'iso' will be used
286 # for store image with cloud-init metadata.
287
288 cloudinit_meta_data: *cloudinit_meta_data
289 cloudinit_user_data: *cloudinit_user_data_1604
290
291 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200292 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300293 l2_network_device: admin
294 mac_address: !os_env ETH0_MAC_ADDRESS_KVM03
Oleksii Butenko6e375932018-01-10 17:13:20 +0200295 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300296 mac_address: !os_env ETH1_MAC_ADDRESS_KVM03
297
298 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200299 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300300 networks:
301 - admin
302 bond0:
303 networks:
304 - control
305 aggregation: active-backup
306 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200307 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300308
309
310 - name: {{ HOSTNAME_CMP001 }}
311 role: salt_minion
312 params:
313 ipmi_user: !os_env IPMI_USER
314 ipmi_password: !os_env IPMI_PASSWORD
315 ipmi_previlegies: OPERATOR
316 ipmi_host: !os_env IPMI_HOST_CMP001 # hostname or IP address
317 ipmi_lan_interface: lanplus
318 ipmi_port: 623
319
320 root_volume_name: system # see 'volumes' below
321 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200322 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300323 volumes:
324 - name: system
325 capacity: !os_env NODE_VOLUME_SIZE, 200
326
327 # The same as for agent URL, here is an URL to the image that should be
328 # used for deploy the node. It should also be accessible from deploying
329 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
330 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
331 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
332
333 - name: iso # Volume with name 'iso' will be used
334 # for store image with cloud-init metadata.
335
336 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200337 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300338
339 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200340 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300341 l2_network_device: admin
342 mac_address: !os_env ETH0_MAC_ADDRESS_CMP001
Oleksii Butenko6e375932018-01-10 17:13:20 +0200343 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300344 mac_address: !os_env ETH1_MAC_ADDRESS_CMP001
Oleksii Butenko6e375932018-01-10 17:13:20 +0200345# - label: enp9s0f0
346# mac_address: !os_env ETH2_MAC_ADDRESS_CMP001
347# - label: enp5s0f1
348# mac_address: !os_env ETH3_MAC_ADDRESS_CMP001
349# - label: enp5s0f2
350# mac_address: !os_env ETH4_MAC_ADDRESS_CMP001
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300351
352 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200353 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300354 networks:
355 - admin
356 bond0:
357 networks:
358 - control
359 aggregation: active-backup
360 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200361 - enp9s0f0
362 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300363
364
365
366 - name: {{ HOSTNAME_CMP002 }}
367 role: salt_minion
368 params:
369 ipmi_user: !os_env IPMI_USER
370 ipmi_password: !os_env IPMI_PASSWORD
371 ipmi_previlegies: OPERATOR
372 ipmi_host: !os_env IPMI_HOST_CMP002 # hostname or IP address
373 ipmi_lan_interface: lanplus
374 ipmi_port: 623
375
376 root_volume_name: system # see 'volumes' below
377 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200378 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300379 volumes:
380 - name: system
381 capacity: !os_env NODE_VOLUME_SIZE, 200
382
383 # The same as for agent URL, here is an URL to the image that should be
384 # used for deploy the node. It should also be accessible from deploying
385 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
386 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
387 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
388
389 - name: iso # Volume with name 'iso' will be used
390 # for store image with cloud-init metadata.
391
392 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200393 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300394
395 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200396 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300397 l2_network_device: admin
398 mac_address: !os_env ETH0_MAC_ADDRESS_CMP002
Oleksii Butenko6e375932018-01-10 17:13:20 +0200399 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300400 mac_address: !os_env ETH1_MAC_ADDRESS_CMP002
Oleksii Butenko6e375932018-01-10 17:13:20 +0200401# - label: eth3
402# mac_address: !os_env ETH2_MAC_ADDRESS_CMP002
403# - label: eth2
404# mac_address: !os_env ETH3_MAC_ADDRESS_CMP002
405# - label: eth4
406# mac_address: !os_env ETH4_MAC_ADDRESS_CMP002
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300407 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200408 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300409 networks:
410 - admin
411 bond0:
412 networks:
413 - control
414 aggregation: active-backup
415 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200416 - enp9s0f0
417 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300418
419
420 - name: {{ HOSTNAME_GTW01 }}
421 role: salt_minion
422 params:
423 ipmi_user: !os_env IPMI_USER
424 ipmi_password: !os_env IPMI_PASSWORD
425 ipmi_previlegies: OPERATOR
426 ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address
427 ipmi_lan_interface: lanplus
428 ipmi_port: 623
429
430 root_volume_name: system # see 'volumes' below
431 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200432 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300433 volumes:
434 - name: system
435 capacity: !os_env NODE_VOLUME_SIZE, 200
436
437 # The same as for agent URL, here is an URL to the image that should be
438 # used for deploy the node. It should also be accessible from deploying
439 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
440 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
441 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
442
443 - name: iso # Volume with name 'iso' will be used
444 # for store image with cloud-init metadata.
445
446 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200447 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300448
449 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200450 - label: enp2s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300451 l2_network_device: admin
452 mac_address: !os_env ETH0_MAC_ADDRESS_GTW01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200453 - label: enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300454 mac_address: !os_env ETH1_MAC_ADDRESS_GTW01
455
456 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200457 enp2s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300458 networks:
459 - admin
460 bond0:
461 networks:
462 - control
463 aggregation: active-backup
464 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200465 - enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300466
Oleksii Butenko6e375932018-01-10 17:13:20 +0200467 - name: {{ HOSTNAME_GTW02 }}
468 role: salt_minion
469 params:
470 ipmi_user: !os_env IPMI_USER
471 ipmi_password: !os_env IPMI_PASSWORD
472 ipmi_previlegies: OPERATOR
473 ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address
474 ipmi_lan_interface: lanplus
475 ipmi_port: 623
476
477 root_volume_name: system # see 'volumes' below
478 cloud_init_volume_name: iso # see 'volumes' below
479 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
480 volumes:
481 - name: system
482 capacity: !os_env NODE_VOLUME_SIZE, 200
483
484 # The same as for agent URL, here is an URL to the image that should be
485 # used for deploy the node. It should also be accessible from deploying
486 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
487 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
488 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
489
490 - name: iso # Volume with name 'iso' will be used
491 # for store image with cloud-init metadata.
492
493 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200494 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko6e375932018-01-10 17:13:20 +0200495
496 interfaces:
497 - label: enp2s0f0
498 l2_network_device: admin
499 mac_address: !os_env ETH0_MAC_ADDRESS_GTW02
500 - label: enp2s0f1
501 mac_address: !os_env ETH1_MAC_ADDRESS_GTW02
502
503 network_config:
504 enp2s0f0:
505 networks:
506 - admin
507 bond0:
508 networks:
509 - control
510 aggregation: active-backup
511 parents:
512 - enp2s0f1