blob: 8d2bf09bee8bcd8f755bae7e642cd788916ad939 [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 Butenkoa6798412018-10-19 17:50:52 +03009{% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + 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') %}
Oleksii Butenkoa6798412018-10-19 17:50:52 +030018{% set ETH0_IP_ADDRESS_CMP001 = os_env('ETH0_IP_ADDRESS_CMP001', '172.16.164.3') %}
19{% set ETH0_IP_ADDRESS_CMP002 = os_env('ETH0_IP_ADDRESS_CMP002', '172.16.164.31') %}
Oleksii Butenko336e4412018-05-21 14:59:27 +030020{% 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 Butenkoa6798412018-10-19 17:50:52 +030051 default_{{ HOSTNAME_CMP001 }}: {{ ETH0_IP_ADDRESS_CMP001 }}
52 default_{{ HOSTNAME_CMP002 }}: {{ ETH0_IP_ADDRESS_CMP002 }}
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
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300314 - name: {{ HOSTNAME_CMP001 }}
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 Butenkoa6798412018-10-19 17:50:52 +0300320 ipmi_host: !os_env IPMI_HOST_CMP001 # 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 Butenkoa6798412018-10-19 17:50:52 +0300346 mac_address: !os_env ETH0_MAC_ADDRESS_CMP001
Oleksii Butenko6e375932018-01-10 17:13:20 +0200347 - label: enp9s0f1
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300348 mac_address: !os_env ETH1_MAC_ADDRESS_CMP001
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
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300361 - name: {{ HOSTNAME_CMP002 }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300362 role: salt_minion
363 params:
364 ipmi_user: !os_env IPMI_USER
365 ipmi_password: !os_env IPMI_PASSWORD
366 ipmi_previlegies: OPERATOR
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300367 ipmi_host: !os_env IPMI_HOST_CMP002 # hostname or IP address
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300368 ipmi_lan_interface: lanplus
369 ipmi_port: 623
370
371 root_volume_name: system # see 'volumes' below
372 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200373 cloud_init_iface_up: enp9s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300374 volumes:
375 - name: system
376 capacity: !os_env NODE_VOLUME_SIZE, 200
377
378 # The same as for agent URL, here is an URL to the image that should be
379 # used for deploy the node. It should also be accessible from deploying
380 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
381 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
382 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
383
384 - name: iso # Volume with name 'iso' will be used
385 # for store image with cloud-init metadata.
386
387 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200388 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300389
390 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200391 - label: enp9s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300392 l2_network_device: admin
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300393 mac_address: !os_env ETH0_MAC_ADDRESS_CMP002
Oleksii Butenko6e375932018-01-10 17:13:20 +0200394 - label: enp9s0f1
Oleksii Butenkoa6798412018-10-19 17:50:52 +0300395 mac_address: !os_env ETH1_MAC_ADDRESS_CMP002
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300396 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200397 enp9s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300398 networks:
399 - admin
400 bond0:
401 networks:
402 - control
403 aggregation: active-backup
404 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200405 - enp9s0f0
406 - enp9s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300407
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300408 - name: {{ HOSTNAME_GTW01 }}
409 role: salt_minion
410 params:
411 ipmi_user: !os_env IPMI_USER
412 ipmi_password: !os_env IPMI_PASSWORD
413 ipmi_previlegies: OPERATOR
414 ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address
415 ipmi_lan_interface: lanplus
416 ipmi_port: 623
417
418 root_volume_name: system # see 'volumes' below
419 cloud_init_volume_name: iso # see 'volumes' below
Oleksii Butenko6e375932018-01-10 17:13:20 +0200420 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300421 volumes:
422 - name: system
423 capacity: !os_env NODE_VOLUME_SIZE, 200
424
425 # The same as for agent URL, here is an URL to the image that should be
426 # used for deploy the node. It should also be accessible from deploying
427 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
428 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
429 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
430
431 - name: iso # Volume with name 'iso' will be used
432 # for store image with cloud-init metadata.
433
434 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200435 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300436
437 interfaces:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200438 - label: enp2s0f0
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300439 l2_network_device: admin
440 mac_address: !os_env ETH0_MAC_ADDRESS_GTW01
Oleksii Butenko6e375932018-01-10 17:13:20 +0200441 - label: enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300442 mac_address: !os_env ETH1_MAC_ADDRESS_GTW01
443
444 network_config:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200445 enp2s0f0:
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300446 networks:
447 - admin
448 bond0:
449 networks:
450 - control
451 aggregation: active-backup
452 parents:
Oleksii Butenko6e375932018-01-10 17:13:20 +0200453 - enp2s0f1
Oleksii Butenko7c48def2017-10-03 12:41:05 +0300454
Oleksii Butenko6e375932018-01-10 17:13:20 +0200455 - name: {{ HOSTNAME_GTW02 }}
456 role: salt_minion
457 params:
458 ipmi_user: !os_env IPMI_USER
459 ipmi_password: !os_env IPMI_PASSWORD
460 ipmi_previlegies: OPERATOR
461 ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address
462 ipmi_lan_interface: lanplus
463 ipmi_port: 623
464
465 root_volume_name: system # see 'volumes' below
466 cloud_init_volume_name: iso # see 'volumes' below
467 cloud_init_iface_up: enp2s0f0 # see 'interfaces' below.
468 volumes:
469 - name: system
470 capacity: !os_env NODE_VOLUME_SIZE, 200
471
472 # The same as for agent URL, here is an URL to the image that should be
473 # used for deploy the node. It should also be accessible from deploying
474 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
475 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
476 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
477
478 - name: iso # Volume with name 'iso' will be used
479 # for store image with cloud-init metadata.
480
481 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev8ed27882018-01-31 23:23:19 +0200482 cloudinit_user_data: *cloudinit_user_data_1604_hwe
Oleksii Butenko6e375932018-01-10 17:13:20 +0200483
484 interfaces:
485 - label: enp2s0f0
486 l2_network_device: admin
487 mac_address: !os_env ETH0_MAC_ADDRESS_GTW02
488 - label: enp2s0f1
489 mac_address: !os_env ETH1_MAC_ADDRESS_GTW02
490
491 network_config:
492 enp2s0f0:
493 networks:
494 - admin
495 bond0:
496 networks:
497 - control
498 aggregation: active-backup
499 parents:
500 - enp2s0f1