blob: a7308e9521c537ad1a0a60e88a789e98a3ce0452 [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:
Dennis Dmitrievb6bcc5c2018-09-26 11:07:53 +000076 gateway: '172.17.42.1'
77 ip_ranges:
78 dhcp: ['172.17.42.10', '172.17.42.60']
Oleksii Butenko7c48def2017-10-03 12:41:05 +030079
80
81 groups:
82 - name: virtual
83 driver:
84 name: devops.driver.libvirt
85 params:
86 connection_string: !os_env CONNECTION_STRING, qemu:///system
87 storage_pool_name: !os_env STORAGE_POOL_NAME, default
88 stp: False
89 hpet: False
90 enable_acpi: true
91 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
92 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
93
94 network_pools:
95 admin: admin-pool01
96
97 l2_network_devices:
98 # Ironic management interface
99 admin:
100 address_pool: admin-pool01
101 dhcp: false
102 parent_iface:
103 phys_dev: !os_env IRONIC_LAB_PXE_IFACE_0
Oleksii Butenko336e4412018-05-21 14:59:27 +0300104 private:
105 parent_iface:
106 phys_dev: !os_env CONTROL_IFACE
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300107
108 group_volumes:
109 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200110 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
111 format: qcow2
112 - name: cfg01_day01_image # Pre-configured day01 image
113 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 +0300114 format: qcow2
115
116 nodes:
117 - name: {{ HOSTNAME_CFG01 }}
118 role: salt_master
119 params:
120 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200121 memory: !os_env SLAVE_NODE_MEMORY, 8192
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300122 boot:
123 - hd
124 cloud_init_volume_name: iso
125 cloud_init_iface_up: ens3
126 volumes:
127 - name: system
128 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200129 backing_store: cfg01_day01_image
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300130 format: qcow2
131 - name: iso # Volume with name 'iso' will be used
132 # for store image with cloud-init metadata.
133 capacity: 1
134 format: raw
135 device: cdrom
136 bus: ide
137 cloudinit_meta_data: *cloudinit_meta_data
138 cloudinit_user_data: *cloudinit_user_data_cfg01
139
140 interfaces:
141 - label: ens3
142 l2_network_device: admin
143 interface_model: *interface_model
144 mac_address: !os_env ETH1_MAC_ADDRESS_CFG01
Oleksii Butenko336e4412018-05-21 14:59:27 +0300145 - label: ens4
146 l2_network_device: private
147 interface_model: *interface_model
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300148 network_config:
149 ens3:
150 networks:
151 - admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300152 ens4:
153 networks:
154 - private
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300155
156
157 - name: default
158 driver:
159 name: devops_driver_ironic
160 params:
161 os_auth_token: fake-token
162 ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops
163 # to access Ironic API
164 # Agent URL that is accessible from deploying node when nodes
165 # are bootstrapped with PXE. Usually PXE/provision network address is used.
166 agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL
167 agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL
168
169 network_pools:
170 admin: admin-pool01
171
172 nodes:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300173 - name: {{ HOSTNAME_KVM01 }}
174 role: salt_minion
175 params:
176 ipmi_user: !os_env IPMI_USER
177 ipmi_password: !os_env IPMI_PASSWORD
178 ipmi_previlegies: OPERATOR
179 ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address
180 ipmi_lan_interface: lanplus
181 ipmi_port: 623
182
183 root_volume_name: system # see 'volumes' below
184 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200185 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300186 volumes:
187 - name: system
188 capacity: !os_env NODE_VOLUME_SIZE, 200
189
190 # The same as for agent URL, here is an URL to the image that should be
191 # used for deploy the node. It should also be accessible from deploying
192 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
193 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
194 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
195
196 - name: iso # Volume with name 'iso' will be used
197 # for store image with cloud-init metadata.
198
199 cloudinit_meta_data: *cloudinit_meta_data
200 cloudinit_user_data: *cloudinit_user_data_1604
201
202 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200203 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300204 l2_network_device: admin
205 mac_address: !os_env ETH0_MAC_ADDRESS_KVM01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200206 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300207 mac_address: !os_env ETH1_MAC_ADDRESS_KVM01
208
209 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200210 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300211 networks:
212 - admin
213 bond0:
214 networks:
215 - control
216 aggregation: active-backup
217 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200218 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300219
220 - name: {{ HOSTNAME_KVM02 }}
221 role: salt_minion
222 params:
223 ipmi_user: !os_env IPMI_USER
224 ipmi_password: !os_env IPMI_PASSWORD
225 ipmi_previlegies: OPERATOR
226 ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address
227 ipmi_lan_interface: lanplus
228 ipmi_port: 623
229
230 root_volume_name: system # see 'volumes' below
231 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200232 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300233 volumes:
234 - name: system
235 capacity: !os_env NODE_VOLUME_SIZE, 200
236
237 # The same as for agent URL, here is an URL to the image that should be
238 # used for deploy the node. It should also be accessible from deploying
239 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
240 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
241 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
242
243 - name: iso # Volume with name 'iso' will be used
244 # for store image with cloud-init metadata.
245
246 cloudinit_meta_data: *cloudinit_meta_data
247 cloudinit_user_data: *cloudinit_user_data_1604
248
249 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200250 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300251 l2_network_device: admin
252 mac_address: !os_env ETH0_MAC_ADDRESS_KVM02
Oleksii Butenko6e375932018-01-10 17:13:20 +0200253 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300254 mac_address: !os_env ETH1_MAC_ADDRESS_KVM02
255
256 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200257 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300258 networks:
259 - admin
260 bond0:
261 networks:
262 - control
263 aggregation: active-backup
264 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200265 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300266
267 - name: {{ HOSTNAME_KVM03 }}
268 role: salt_minion
269 params:
270 ipmi_user: !os_env IPMI_USER
271 ipmi_password: !os_env IPMI_PASSWORD
272 ipmi_previlegies: OPERATOR
273 ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address
274 ipmi_lan_interface: lanplus
275 ipmi_port: 623
276
277 root_volume_name: system # see 'volumes' below
278 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200279 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300280 volumes:
281 - name: system
282 capacity: !os_env NODE_VOLUME_SIZE, 200
283
284 # The same as for agent URL, here is an URL to the image that should be
285 # used for deploy the node. It should also be accessible from deploying
286 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
287 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
288 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
289
290 - name: iso # Volume with name 'iso' will be used
291 # for store image with cloud-init metadata.
292
293 cloudinit_meta_data: *cloudinit_meta_data
294 cloudinit_user_data: *cloudinit_user_data_1604
295
296 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200297 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300298 l2_network_device: admin
299 mac_address: !os_env ETH0_MAC_ADDRESS_KVM03
Oleksii Butenko6e375932018-01-10 17:13:20 +0200300 - label: enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300301 mac_address: !os_env ETH1_MAC_ADDRESS_KVM03
302
303 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200304 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300305 networks:
306 - admin
307 bond0:
308 networks:
309 - control
310 aggregation: active-backup
311 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200312 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300313
314
Oleksii Butenko336e4412018-05-21 14:59:27 +0300315 - name: {{ HOSTNAME_CMP01 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300316 role: salt_minion
317 params:
318 ipmi_user: !os_env IPMI_USER
319 ipmi_password: !os_env IPMI_PASSWORD
320 ipmi_previlegies: OPERATOR
Oleksii Butenko336e4412018-05-21 14:59:27 +0300321 ipmi_host: !os_env IPMI_HOST_CMP01 # hostname or IP address
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300322 ipmi_lan_interface: lanplus
323 ipmi_port: 623
324
325 root_volume_name: system # see 'volumes' below
326 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200327 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300328 volumes:
329 - name: system
330 capacity: !os_env NODE_VOLUME_SIZE, 200
331
332 # The same as for agent URL, here is an URL to the image that should be
333 # used for deploy the node. It should also be accessible from deploying
334 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
335 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
336 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
337
338 - name: iso # Volume with name 'iso' will be used
339 # for store image with cloud-init metadata.
340
341 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200342 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300343
344 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200345 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300346 l2_network_device: admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300347 mac_address: !os_env ETH0_MAC_ADDRESS_CMP01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200348 - label: enp9s0f1
Oleksii Butenko336e4412018-05-21 14:59:27 +0300349 mac_address: !os_env ETH1_MAC_ADDRESS_CMP01
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300350 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200351 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300352 networks:
353 - admin
354 bond0:
355 networks:
356 - control
357 aggregation: active-backup
358 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200359 - enp9s0f0
360 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300361
362
363
Oleksii Butenko336e4412018-05-21 14:59:27 +0300364 - name: {{ HOSTNAME_CMP02 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300365 role: salt_minion
366 params:
367 ipmi_user: !os_env IPMI_USER
368 ipmi_password: !os_env IPMI_PASSWORD
369 ipmi_previlegies: OPERATOR
Oleksii Butenko336e4412018-05-21 14:59:27 +0300370 ipmi_host: !os_env IPMI_HOST_CMP02 # hostname or IP address
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300371 ipmi_lan_interface: lanplus
372 ipmi_port: 623
373
374 root_volume_name: system # see 'volumes' below
375 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200376 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300377 volumes:
378 - name: system
379 capacity: !os_env NODE_VOLUME_SIZE, 200
380
381 # The same as for agent URL, here is an URL to the image that should be
382 # used for deploy the node. It should also be accessible from deploying
383 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
384 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
385 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
386
387 - name: iso # Volume with name 'iso' will be used
388 # for store image with cloud-init metadata.
389
390 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200391 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300392
393 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200394 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300395 l2_network_device: admin
Oleksii Butenko336e4412018-05-21 14:59:27 +0300396 mac_address: !os_env ETH0_MAC_ADDRESS_CMP02
Oleksii Butenko6e375932018-01-10 17:13:20 +0200397 - label: enp9s0f1
Oleksii Butenko336e4412018-05-21 14:59:27 +0300398 mac_address: !os_env ETH1_MAC_ADDRESS_CMP02
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300399 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200400 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300401 networks:
402 - admin
403 bond0:
404 networks:
405 - control
406 aggregation: active-backup
407 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200408 - enp9s0f0
409 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300410
411
412 - name: {{ HOSTNAME_GTW01 }}
413 role: salt_minion
414 params:
415 ipmi_user: !os_env IPMI_USER
416 ipmi_password: !os_env IPMI_PASSWORD
417 ipmi_previlegies: OPERATOR
418 ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address
419 ipmi_lan_interface: lanplus
420 ipmi_port: 623
421
422 root_volume_name: system # see 'volumes' below
423 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200424 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300425 volumes:
426 - name: system
427 capacity: !os_env NODE_VOLUME_SIZE, 200
428
429 # The same as for agent URL, here is an URL to the image that should be
430 # used for deploy the node. It should also be accessible from deploying
431 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
432 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
433 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
434
435 - name: iso # Volume with name 'iso' will be used
436 # for store image with cloud-init metadata.
437
438 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200439 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300440
441 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200442 - label: enp2s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300443 l2_network_device: admin
444 mac_address: !os_env ETH0_MAC_ADDRESS_GTW01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200445 - label: enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300446 mac_address: !os_env ETH1_MAC_ADDRESS_GTW01
447
448 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200449 enp2s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300450 networks:
451 - admin
452 bond0:
453 networks:
454 - control
455 aggregation: active-backup
456 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200457 - enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300458
Oleksii Butenko6e375932018-01-10 17:13:20 +0200459 - name: {{ HOSTNAME_GTW02 }}
460 role: salt_minion
461 params:
462 ipmi_user: !os_env IPMI_USER
463 ipmi_password: !os_env IPMI_PASSWORD
464 ipmi_previlegies: OPERATOR
465 ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address
466 ipmi_lan_interface: lanplus
467 ipmi_port: 623
468
469 root_volume_name: system # see 'volumes' below
470 cloud_init_volume_name: iso # see 'volumes' below
471 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
472 volumes:
473 - name: system
474 capacity: !os_env NODE_VOLUME_SIZE, 200
475
476 # The same as for agent URL, here is an URL to the image that should be
477 # used for deploy the node. It should also be accessible from deploying
478 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
479 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
480 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
481
482 - name: iso # Volume with name 'iso' will be used
483 # for store image with cloud-init metadata.
484
485 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200486 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko6e375932018-01-10 17:13:20 +0200487
488 interfaces:
489 - label: enp2s0f0
490 l2_network_device: admin
491 mac_address: !os_env ETH0_MAC_ADDRESS_GTW02
492 - label: enp2s0f1
493 mac_address: !os_env ETH1_MAC_ADDRESS_GTW02
494
495 network_config:
496 enp2s0f0:
497 networks:
498 - admin
499 bond0:
500 networks:
501 - control
502 aggregation: active-backup
503 parents:
504 - enp2s0f1