blob: 25c98bcd8e5842e602ef4a800a512ca468b4e923 [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) %}
Oleksii Butenko336e4412018-05-21 14:59:27 +03009{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030011{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Oleksii Butenko6e375932018-01-10 17:13:20 +020012{% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW02', 'gtw02.' + DOMAIN_NAME) %}
Oleksii Butenko336e4412018-05-21 14:59:27 +030013{% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.164.2') %}
14{% set ETH2_IP_ADDRESS_CFG01 = os_env('ETH2_IP_ADDRESS_CFG01', '10.167.4.253') %}
15{% set ETH0_IP_ADDRESS_KVM01 = os_env('ETH0_IP_ADDRESS_KVM01', '172.16.164.11') %}
16{% set ETH0_IP_ADDRESS_KVM02 = os_env('ETH0_IP_ADDRESS_KVM02', '172.16.164.12') %}
17{% set ETH0_IP_ADDRESS_KVM03 = os_env('ETH0_IP_ADDRESS_KVM03', '172.16.164.13') %}
18{% set ETH0_IP_ADDRESS_CMP01 = os_env('ETH0_IP_ADDRESS_CMP01', '172.16.164.3') %}
19{% set ETH0_IP_ADDRESS_CMP02 = os_env('ETH0_IP_ADDRESS_CMP02', '172.16.164.31') %}
20{% set ETH0_IP_ADDRESS_GTW01 = os_env('ETH0_IP_ADDRESS_GTW01', '172.16.164.4') %}
21{% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '172.16.164.5') %}
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:
Oleksii Butenko336e4412018-05-21 14:59:27 +030042 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.164.0/26:26') }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030043 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 }}
Oleksii Butenko336e4412018-05-21 14:59:27 +030051 default_{{ HOSTNAME_CMP01 }}: {{ ETH0_IP_ADDRESS_CMP01 }}
52 default_{{ HOSTNAME_CMP02 }}: {{ ETH0_IP_ADDRESS_CMP02 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030053 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:
Oleksii Butenko336e4412018-05-21 14:59:27 +030061 virtual_{{ HOSTNAME_CFG01 }}: {{ ETH2_IP_ADDRESS_CFG01 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030062 gateway: +1
63 l2_network_device: +1
64
65 tenant-pool01:
66 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.167.6.0/24:24') }}
67 params:
68 ip_reserved:
69 gateway: +1
70 l2_network_device: +1
71
72 external-pool01:
Oleksii Butenko336e4412018-05-21 14:59:27 +030073 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '172.17.42.0/26:26') }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030074 params:
75 ip_reserved:
76 gateway: +1
77 l2_network_device: -2
78
79
80 groups:
81 - name: virtual
82 driver:
83 name: devops.driver.libvirt
84 params:
85 connection_string: !os_env CONNECTION_STRING, qemu:///system
86 storage_pool_name: !os_env STORAGE_POOL_NAME, default
87 stp: False
88 hpet: False
89 enable_acpi: true
90 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
91 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
92
93 network_pools:
94 admin: admin-pool01
95
96 l2_network_devices:
97 # Ironic management interface
98 admin:
99 address_pool: admin-pool01
100 dhcp: false
101 parent_iface:
102 phys_dev: !os_env IRONIC_LAB_PXE_IFACE_0
Oleksii Butenko336e4412018-05-21 14:59:27 +0300103 private:
104 parent_iface:
105 phys_dev: !os_env CONTROL_IFACE
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300106
107 group_volumes:
108 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200109 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
110 format: qcow2
111 - name: cfg01_day01_image # Pre-configured day01 image
112 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 +0300113 format: qcow2
114
115 nodes:
116 - name: {{ HOSTNAME_CFG01 }}
117 role: salt_master
118 params:
119 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200120 memory: !os_env SLAVE_NODE_MEMORY, 8192
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300121 boot:
122 - hd
123 cloud_init_volume_name: iso
124 cloud_init_iface_up: ens3
125 volumes:
126 - name: system
127 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200128 backing_store: cfg01_day01_image
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300129 format: qcow2
130 - name: iso # Volume with name 'iso' will be used
131 # for store image with cloud-init metadata.
132 capacity: 1
133 format: raw
134 device: cdrom
135 bus: ide
136 cloudinit_meta_data: *cloudinit_meta_data
137 cloudinit_user_data: *cloudinit_user_data_cfg01
138
139 interfaces:
140 - label: ens3
141 l2_network_device: admin
142 interface_model: *interface_model
143 mac_address: !os_env ETH1_MAC_ADDRESS_CFG01
Oleksii Butenko336e4412018-05-21 14:59:27 +0300144 - label: ens4
145 l2_network_device: private
146 interface_model: *interface_model
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300147 network_config:
148 ens3:
149 networks:
150 - admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300151 ens4:
152 networks:
153 - private
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300154
155
156 - name: default
157 driver:
158 name: devops_driver_ironic
159 params:
160 os_auth_token: fake-token
161 ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops
162 # to access Ironic API
163 # Agent URL that is accessible from deploying node when nodes
164 # are bootstrapped with PXE. Usually PXE/provision network address is used.
165 agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL
166 agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL
167
168 network_pools:
169 admin: admin-pool01
170
171 nodes:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300172 - name: {{ HOSTNAME_KVM01 }}
173 role: salt_minion
174 params:
175 ipmi_user: !os_env IPMI_USER
176 ipmi_password: !os_env IPMI_PASSWORD
177 ipmi_previlegies: OPERATOR
178 ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address
179 ipmi_lan_interface: lanplus
180 ipmi_port: 623
181
182 root_volume_name: system # see 'volumes' below
183 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200184 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300185 volumes:
186 - name: system
187 capacity: !os_env NODE_VOLUME_SIZE, 200
188
189 # The same as for agent URL, here is an URL to the image that should be
190 # used for deploy the node. It should also be accessible from deploying
191 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
192 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
193 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
194
195 - name: iso # Volume with name 'iso' will be used
196 # for store image with cloud-init metadata.
197
198 cloudinit_meta_data: *cloudinit_meta_data
199 cloudinit_user_data: *cloudinit_user_data_1604
200
201 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200202 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300203 l2_network_device: admin
204 mac_address: !os_env ETH0_MAC_ADDRESS_KVM01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200205 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300206 mac_address: !os_env ETH1_MAC_ADDRESS_KVM01
207
208 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200209 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300210 networks:
211 - admin
212 bond0:
213 networks:
214 - control
215 aggregation: active-backup
216 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200217 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300218
219 - name: {{ HOSTNAME_KVM02 }}
220 role: salt_minion
221 params:
222 ipmi_user: !os_env IPMI_USER
223 ipmi_password: !os_env IPMI_PASSWORD
224 ipmi_previlegies: OPERATOR
225 ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address
226 ipmi_lan_interface: lanplus
227 ipmi_port: 623
228
229 root_volume_name: system # see 'volumes' below
230 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200231 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300232 volumes:
233 - name: system
234 capacity: !os_env NODE_VOLUME_SIZE, 200
235
236 # The same as for agent URL, here is an URL to the image that should be
237 # used for deploy the node. It should also be accessible from deploying
238 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
239 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
240 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
241
242 - name: iso # Volume with name 'iso' will be used
243 # for store image with cloud-init metadata.
244
245 cloudinit_meta_data: *cloudinit_meta_data
246 cloudinit_user_data: *cloudinit_user_data_1604
247
248 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200249 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300250 l2_network_device: admin
251 mac_address: !os_env ETH0_MAC_ADDRESS_KVM02
Oleksii Butenko6e375932018-01-10 17:13:20 +0200252 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300253 mac_address: !os_env ETH1_MAC_ADDRESS_KVM02
254
255 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200256 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300257 networks:
258 - admin
259 bond0:
260 networks:
261 - control
262 aggregation: active-backup
263 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200264 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300265
266 - name: {{ HOSTNAME_KVM03 }}
267 role: salt_minion
268 params:
269 ipmi_user: !os_env IPMI_USER
270 ipmi_password: !os_env IPMI_PASSWORD
271 ipmi_previlegies: OPERATOR
272 ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address
273 ipmi_lan_interface: lanplus
274 ipmi_port: 623
275
276 root_volume_name: system # see 'volumes' below
277 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200278 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300279 volumes:
280 - name: system
281 capacity: !os_env NODE_VOLUME_SIZE, 200
282
283 # The same as for agent URL, here is an URL to the image that should be
284 # used for deploy the node. It should also be accessible from deploying
285 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
286 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
287 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
288
289 - name: iso # Volume with name 'iso' will be used
290 # for store image with cloud-init metadata.
291
292 cloudinit_meta_data: *cloudinit_meta_data
293 cloudinit_user_data: *cloudinit_user_data_1604
294
295 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200296 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300297 l2_network_device: admin
298 mac_address: !os_env ETH0_MAC_ADDRESS_KVM03
Oleksii Butenko6e375932018-01-10 17:13:20 +0200299 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300300 mac_address: !os_env ETH1_MAC_ADDRESS_KVM03
301
302 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200303 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300304 networks:
305 - admin
306 bond0:
307 networks:
308 - control
309 aggregation: active-backup
310 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200311 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300312
313
Oleksii Butenko336e4412018-05-21 14:59:27 +0300314 - name: {{ HOSTNAME_CMP01 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300315 role: salt_minion
316 params:
317 ipmi_user: !os_env IPMI_USER
318 ipmi_password: !os_env IPMI_PASSWORD
319 ipmi_previlegies: OPERATOR
Oleksii Butenko336e4412018-05-21 14:59:27 +0300320 ipmi_host: !os_env IPMI_HOST_CMP01 # hostname or IP address
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300321 ipmi_lan_interface: lanplus
322 ipmi_port: 623
323
324 root_volume_name: system # see 'volumes' below
325 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200326 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300327 volumes:
328 - name: system
329 capacity: !os_env NODE_VOLUME_SIZE, 200
330
331 # The same as for agent URL, here is an URL to the image that should be
332 # used for deploy the node. It should also be accessible from deploying
333 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
334 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
335 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
336
337 - name: iso # Volume with name 'iso' will be used
338 # for store image with cloud-init metadata.
339
340 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200341 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300342
343 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200344 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300345 l2_network_device: admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300346 mac_address: !os_env ETH0_MAC_ADDRESS_CMP01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200347 - label: enp9s0f1
Oleksii Butenko336e4412018-05-21 14:59:27 +0300348 mac_address: !os_env ETH1_MAC_ADDRESS_CMP01
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300349 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200350 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300351 networks:
352 - admin
353 bond0:
354 networks:
355 - control
356 aggregation: active-backup
357 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200358 - enp9s0f0
359 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300360
361
362
Oleksii Butenko336e4412018-05-21 14:59:27 +0300363 - name: {{ HOSTNAME_CMP02 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300364 role: salt_minion
365 params:
366 ipmi_user: !os_env IPMI_USER
367 ipmi_password: !os_env IPMI_PASSWORD
368 ipmi_previlegies: OPERATOR
Oleksii Butenko336e4412018-05-21 14:59:27 +0300369 ipmi_host: !os_env IPMI_HOST_CMP02 # hostname or IP address
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300370 ipmi_lan_interface: lanplus
371 ipmi_port: 623
372
373 root_volume_name: system # see 'volumes' below
374 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200375 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300376 volumes:
377 - name: system
378 capacity: !os_env NODE_VOLUME_SIZE, 200
379
380 # The same as for agent URL, here is an URL to the image that should be
381 # used for deploy the node. It should also be accessible from deploying
382 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
383 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
384 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
385
386 - name: iso # Volume with name 'iso' will be used
387 # for store image with cloud-init metadata.
388
389 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200390 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300391
392 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200393 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300394 l2_network_device: admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300395 mac_address: !os_env ETH0_MAC_ADDRESS_CMP02
Oleksii Butenko6e375932018-01-10 17:13:20 +0200396 - label: enp9s0f1
Oleksii Butenko336e4412018-05-21 14:59:27 +0300397 mac_address: !os_env ETH1_MAC_ADDRESS_CMP02
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300398 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200399 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300400 networks:
401 - admin
402 bond0:
403 networks:
404 - control
405 aggregation: active-backup
406 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200407 - enp9s0f0
408 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300409
410
411 - name: {{ HOSTNAME_GTW01 }}
412 role: salt_minion
413 params:
414 ipmi_user: !os_env IPMI_USER
415 ipmi_password: !os_env IPMI_PASSWORD
416 ipmi_previlegies: OPERATOR
417 ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address
418 ipmi_lan_interface: lanplus
419 ipmi_port: 623
420
421 root_volume_name: system # see 'volumes' below
422 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200423 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300424 volumes:
425 - name: system
426 capacity: !os_env NODE_VOLUME_SIZE, 200
427
428 # The same as for agent URL, here is an URL to the image that should be
429 # used for deploy the node. It should also be accessible from deploying
430 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
431 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
432 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
433
434 - name: iso # Volume with name 'iso' will be used
435 # for store image with cloud-init metadata.
436
437 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200438 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300439
440 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200441 - label: enp2s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300442 l2_network_device: admin
443 mac_address: !os_env ETH0_MAC_ADDRESS_GTW01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200444 - label: enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300445 mac_address: !os_env ETH1_MAC_ADDRESS_GTW01
446
447 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200448 enp2s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300449 networks:
450 - admin
451 bond0:
452 networks:
453 - control
454 aggregation: active-backup
455 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200456 - enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300457
Oleksii Butenko6e375932018-01-10 17:13:20 +0200458 - name: {{ HOSTNAME_GTW02 }}
459 role: salt_minion
460 params:
461 ipmi_user: !os_env IPMI_USER
462 ipmi_password: !os_env IPMI_PASSWORD
463 ipmi_previlegies: OPERATOR
464 ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address
465 ipmi_lan_interface: lanplus
466 ipmi_port: 623
467
468 root_volume_name: system # see 'volumes' below
469 cloud_init_volume_name: iso # see 'volumes' below
470 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
471 volumes:
472 - name: system
473 capacity: !os_env NODE_VOLUME_SIZE, 200
474
475 # The same as for agent URL, here is an URL to the image that should be
476 # used for deploy the node. It should also be accessible from deploying
477 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
478 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
479 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
480
481 - name: iso # Volume with name 'iso' will be used
482 # for store image with cloud-init metadata.
483
484 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200485 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko6e375932018-01-10 17:13:20 +0200486
487 interfaces:
488 - label: enp2s0f0
489 l2_network_device: admin
490 mac_address: !os_env ETH0_MAC_ADDRESS_GTW02
491 - label: enp2s0f1
492 mac_address: !os_env ETH1_MAC_ADDRESS_GTW02
493
494 network_config:
495 enp2s0f0:
496 networks:
497 - admin
498 bond0:
499 networks:
500 - control
501 aggregation: active-backup
502 parents:
503 - enp2s0f1