blob: dbd5f3587f64dd7b92ad1b09d750beb8c3e2e3f1 [file] [log] [blame]
Dennis Dmitriev77d886c2017-05-24 13:13:26 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Dennis Dmitriev77d886c2017-05-24 13:13:26 +03003
4{% import 'physical_mcp11_dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'physical_mcp11_dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'physical_mcp11_dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7
8---
9aliases:
10 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
11 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
12 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
Dennis Dmitriev1f236a82017-05-26 16:26:09 +030013 - &cloudinit_user_data {{ CLOUDINIT_USER_DATA_1604 }}
Dennis Dmitriev77d886c2017-05-24 13:13:26 +030014
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030015{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'physical_mcp11_dvr') %}
16{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Dennis Dmitriev77d886c2017-05-24 13:13:26 +030017{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %}
20{% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + DOMAIN_NAME) %}
23{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW01', 'gtw02.' + DOMAIN_NAME) %}
25
26template:
27 devops_settings:
28 env_name: {{ os_env('ENV_NAME', 'physical_mcp11_dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
29
30 address_pools:
31 admin-pool01:
32 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.164.0/26:26') }}
33 params:
34 ip_reserved:
35 gateway: +1
36 l2_network_device: +1
37 default_{{ HOSTNAME_CFG01 }}: 172.16.164.10
38 default_{{ HOSTNAME_KVM01 }}: 172.16.164.6
39 default_{{ HOSTNAME_KVM02 }}: 172.16.164.7
40 default_{{ HOSTNAME_KVM03 }}: 172.16.164.8
41 default_{{ HOSTNAME_CMP001 }}: 172.16.164.2
42 default_{{ HOSTNAME_CMP002 }}: 172.16.164.3
43 default_{{ HOSTNAME_GTW01 }}: 172.16.164.61
44 default_{{ HOSTNAME_GTW02 }}: 172.16.164.5
45
46 groups:
47 - name: default
48 driver:
49 name: devops_driver_ironic
50 params:
51 os_auth_token: fake-token
52 ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops
53 # to access Ironic API
54 # Agent URL that is accessible from deploying node when nodes
55 # are bootstrapped with PXE. Usually PXE/provision network address is used.
56 agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL
57 agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL
58
59 network_pools:
60 admin: admin-pool01
61
62 l2_network_devices:
63 admin:
64 address_pool: admin-pool01
65
66
67 nodes:
68
69 - name: {{ HOSTNAME_CFG01 }}
70 role: salt_master
71 params:
72 ipmi_user: !os_env IPMI_USER
73 ipmi_password: !os_env IPMI_PASSWORD
74 ipmi_previlegies: OPERATOR
75 ipmi_host: !os_env IPMI_HOST_CFG01 # hostname or IP address
76 ipmi_lan_interface: lanplus
77 ipmi_port: 623
78
79 root_volume_name: system # see 'volumes' below
80 cloud_init_volume_name: iso # see 'volumes' below
81 volumes:
82 - name: system
83 capacity: !os_env NODE_VOLUME_SIZE, 200
84
85 # The same as for agent URL, here is an URL to the image that should be
86 # used for deploy the node. It should also be accessible from deploying
87 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
88 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
89 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
90
91 - name: iso # Volume with name 'iso' will be used
92 # for store image with cloud-init metadata.
93
94 cloudinit_meta_data: *cloudinit_meta_data
95 cloudinit_user_data: *cloudinit_user_data_cfg01
96
97 interfaces:
98 - label: eth0
Dennis Dmitriev77d886c2017-05-24 13:13:26 +030099 mac_address: !os_env ETH0_MAC_ADDRESS_CFG01
100 - label: eth1
Dennis Dmitrieve17bcaf2017-05-25 00:26:57 +0300101 l2_network_device: admin
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300102 mac_address: !os_env ETH1_MAC_ADDRESS_CFG01
103
104 network_config:
105 eth0:
106 networks:
Dennis Dmitrieve17bcaf2017-05-25 00:26:57 +0300107 - infra
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300108 eth1:
109 networks:
Dennis Dmitrieve17bcaf2017-05-25 00:26:57 +0300110 - admin
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300111
112 - name: {{ HOSTNAME_KVM01 }}
113 role: salt_minion
114 params:
115 ipmi_user: !os_env IPMI_USER
116 ipmi_password: !os_env IPMI_PASSWORD
117 ipmi_previlegies: OPERATOR
118 ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address
119 ipmi_lan_interface: lanplus
120 ipmi_port: 623
121
122 root_volume_name: system # see 'volumes' below
123 cloud_init_volume_name: iso # see 'volumes' below
124 volumes:
125 - name: system
126 capacity: !os_env NODE_VOLUME_SIZE, 200
127
128 # The same as for agent URL, here is an URL to the image that should be
129 # used for deploy the node. It should also be accessible from deploying
130 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
131 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
132 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
133
134 - name: iso # Volume with name 'iso' will be used
135 # for store image with cloud-init metadata.
136
137 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300138 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300139
140 interfaces:
141 - label: eth0
142 l2_network_device: admin
143 mac_address: !os_env ETH0_MAC_ADDRESS_KVM01
144 - label: eth1
145 mac_address: !os_env ETH1_MAC_ADDRESS_KVM01
146 # there is no eth2 interface on the node
147 #- label: eth2
148 # mac_address: !os_env ETH2_MAC_ADDRESS_KVM01
149
150 network_config:
151 eth0:
152 networks:
153 - admin
154 bond0:
155 networks:
156 - control
157 aggregation: active-backup
158 parents:
159 - eth1
160 #- eth2
161
162 - name: {{ HOSTNAME_KVM02 }}
163 role: salt_minion
164 params:
165 ipmi_user: !os_env IPMI_USER
166 ipmi_password: !os_env IPMI_PASSWORD
167 ipmi_previlegies: OPERATOR
168 ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address
169 ipmi_lan_interface: lanplus
170 ipmi_port: 623
171
172 root_volume_name: system # see 'volumes' below
173 cloud_init_volume_name: iso # see 'volumes' below
174 volumes:
175 - name: system
176 capacity: !os_env NODE_VOLUME_SIZE, 200
177
178 # The same as for agent URL, here is an URL to the image that should be
179 # used for deploy the node. It should also be accessible from deploying
180 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
181 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
182 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
183
184 - name: iso # Volume with name 'iso' will be used
185 # for store image with cloud-init metadata.
186
187 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300188 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300189
190 interfaces:
191 - label: eth0
192 l2_network_device: admin
193 mac_address: !os_env ETH0_MAC_ADDRESS_KVM02
194 - label: eth1
195 mac_address: !os_env ETH1_MAC_ADDRESS_KVM02
196 - label: eth2
197 mac_address: !os_env ETH2_MAC_ADDRESS_KVM02
198
199 network_config:
200 eth0:
201 networks:
202 - admin
203 bond0:
204 networks:
205 - control
206 aggregation: active-backup
207 parents:
208 - eth1
209 - eth2
210
211 - name: {{ HOSTNAME_KVM03 }}
212 role: salt_minion
213 params:
214 ipmi_user: !os_env IPMI_USER
215 ipmi_password: !os_env IPMI_PASSWORD
216 ipmi_previlegies: OPERATOR
217 ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address
218 ipmi_lan_interface: lanplus
219 ipmi_port: 623
220
221 root_volume_name: system # see 'volumes' below
222 cloud_init_volume_name: iso # see 'volumes' below
223 volumes:
224 - name: system
225 capacity: !os_env NODE_VOLUME_SIZE, 200
226
227 # The same as for agent URL, here is an URL to the image that should be
228 # used for deploy the node. It should also be accessible from deploying
229 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
230 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
231 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
232
233 - name: iso # Volume with name 'iso' will be used
234 # for store image with cloud-init metadata.
235
236 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300237 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300238
239 interfaces:
240 - label: eth0
241 l2_network_device: admin
242 mac_address: !os_env ETH0_MAC_ADDRESS_KVM03
243 - label: eth1
244 mac_address: !os_env ETH1_MAC_ADDRESS_KVM03
245 - label: eth2
246 mac_address: !os_env ETH2_MAC_ADDRESS_KVM03
247
248 network_config:
249 eth0:
250 networks:
251 - admin
252 bond0:
253 networks:
254 - control
255 aggregation: active-backup
256 parents:
257 - eth1
258 - eth2
259
260
261 - name: {{ HOSTNAME_CMP001 }}
262 role: salt_minion
263 params:
264 ipmi_user: !os_env IPMI_USER
265 ipmi_password: !os_env IPMI_PASSWORD
266 ipmi_previlegies: OPERATOR
267 ipmi_host: !os_env IPMI_HOST_CMP001 # hostname or IP address
268 ipmi_lan_interface: lanplus
269 ipmi_port: 623
270
271 root_volume_name: system # see 'volumes' below
272 cloud_init_volume_name: iso # see 'volumes' below
273 volumes:
274 - name: system
275 capacity: !os_env NODE_VOLUME_SIZE, 200
276
277 # The same as for agent URL, here is an URL to the image that should be
278 # used for deploy the node. It should also be accessible from deploying
279 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
280 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
281 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
282
283 - name: iso # Volume with name 'iso' will be used
284 # for store image with cloud-init metadata.
285
286 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300287 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300288
289 interfaces:
290 - label: eth0
291 l2_network_device: admin
292 mac_address: !os_env ETH0_MAC_ADDRESS_CMP001
293 - label: eth1
294 mac_address: !os_env ETH1_MAC_ADDRESS_CMP001
295 - label: eth2
296 mac_address: !os_env ETH2_MAC_ADDRESS_CMP001
297
298 network_config:
299 eth0:
300 networks:
301 - admin
302 bond0:
303 networks:
304 - control
305 aggregation: active-backup
306 parents:
307 - eth1
308 - eth2
309
310
311 - name: {{ HOSTNAME_CMP002 }}
312 role: salt_minion
313 params:
314 ipmi_user: !os_env IPMI_USER
315 ipmi_password: !os_env IPMI_PASSWORD
316 ipmi_previlegies: OPERATOR
317 ipmi_host: !os_env IPMI_HOST_CMP002 # hostname or IP address
318 ipmi_lan_interface: lanplus
319 ipmi_port: 623
320
321 root_volume_name: system # see 'volumes' below
322 cloud_init_volume_name: iso # see 'volumes' below
323 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 Dmitriev1f236a82017-05-26 16:26:09 +0300337 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300338
339 interfaces:
340 - label: eth0
341 l2_network_device: admin
342 mac_address: !os_env ETH0_MAC_ADDRESS_CMP002
343 - label: eth1
344 mac_address: !os_env ETH1_MAC_ADDRESS_CMP002
345 - label: eth2
346 mac_address: !os_env ETH2_MAC_ADDRESS_CMP002
347
348 network_config:
349 eth0:
350 networks:
351 - admin
352 bond0:
353 networks:
354 - control
355 aggregation: active-backup
356 parents:
357 - eth1
358 - eth2
359
360
361 - name: {{ HOSTNAME_GTW01 }}
362 role: salt_minion
363 params:
364 ipmi_user: !os_env IPMI_USER
365 ipmi_password: !os_env IPMI_PASSWORD
366 ipmi_previlegies: OPERATOR
367 ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address
368 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
373 volumes:
374 - name: system
375 capacity: !os_env NODE_VOLUME_SIZE, 200
376
377 # The same as for agent URL, here is an URL to the image that should be
378 # used for deploy the node. It should also be accessible from deploying
379 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
380 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
381 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
382
383 - name: iso # Volume with name 'iso' will be used
384 # for store image with cloud-init metadata.
385
386 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300387 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300388
389 interfaces:
390 - label: eth0
391 l2_network_device: admin
392 mac_address: !os_env ETH0_MAC_ADDRESS_GTW01
393 - label: eth1
394 mac_address: !os_env ETH1_MAC_ADDRESS_GTW01
395 - label: eth2
396 mac_address: !os_env ETH2_MAC_ADDRESS_GTW01
397
398 network_config:
399 eth0:
400 networks:
401 - admin
402 bond0:
403 networks:
404 - control
405 aggregation: active-backup
406 parents:
407 - eth1
408 - eth2
409
410 - name: {{ HOSTNAME_GTW02 }}
411 role: salt_minion
412 params:
413 ipmi_user: !os_env IPMI_USER
414 ipmi_password: !os_env IPMI_PASSWORD
415 ipmi_previlegies: OPERATOR
416 ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address
417 ipmi_lan_interface: lanplus
418 ipmi_port: 623
419
420 root_volume_name: system # see 'volumes' below
421 cloud_init_volume_name: iso # see 'volumes' below
422 volumes:
423 - name: system
424 capacity: !os_env NODE_VOLUME_SIZE, 200
425
426 # The same as for agent URL, here is an URL to the image that should be
427 # used for deploy the node. It should also be accessible from deploying
428 # node when nodes are provisioned by agent. Usually PXE/provision network address is used.
429 source_image: !os_env IRONIC_SOURCE_IMAGE_URL
430 source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM
431
432 - name: iso # Volume with name 'iso' will be used
433 # for store image with cloud-init metadata.
434
435 cloudinit_meta_data: *cloudinit_meta_data
Dennis Dmitriev1f236a82017-05-26 16:26:09 +0300436 cloudinit_user_data: *cloudinit_user_data
Dennis Dmitriev77d886c2017-05-24 13:13:26 +0300437
438 interfaces:
439 - label: eth0
440 l2_network_device: admin
441 mac_address: !os_env ETH0_MAC_ADDRESS_GTW02
442 - label: eth1
443 mac_address: !os_env ETH1_MAC_ADDRESS_GTW02
444 # there is no eth2 interface on the node
445 #- label: eth2
446 # mac_address: !os_env ETH2_MAC_ADDRESS_GTW02
447
448 network_config:
449 eth0:
450 networks:
451 - admin
452 bond0:
453 networks:
454 - control
455 aggregation: active-backup
456 parents:
457 - eth1
458 #- eth2