blob: e765c3d3a7a0fc42184ca5f645a20e7c269e928b [file] [log] [blame]
Dennis Dmitriev510e65c2017-08-12 12:50:36 +03001parameters:
2 # Simulate escape sequence to not interpolate some values,
3 # so these values may get into the node yamls as ${_param:...}
4 _param:
5 _esc: $
6
7 reclass:
8 storage:
9 node:
10 infra_kvm_node01:
11 params:
12 # Use interfaces configuration from the context file,
13 # or generate your own 'linux.network.interface' object using
14 # additional inventory.
15 # For example, you can take the 'inventory_node_name' and find it's config
16 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
17 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
18 linux_network_interfaces:
19 bond0:
20 enabled: true
21 mode: active-backup
22 proto: manual
Dennis Dmitriev0b354292017-08-21 17:22:33 +030023 slaves: enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030024 type: bond
25 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +030026 - enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030027 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +030028 - enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030029 bond0.2416:
30 enabled: true
31 proto: manual
32 type: vlan
33 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
34 - bond0
35 require_interfaces:
36 - bond0
37 br_ctl:
38 address: ${_param:_esc}{_param:single_address}
39 enabled: true
40 netmask: 255.255.255.0
41 proto: static
42 type: bridge
43 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
44 - bond0.2416
45 require_interfaces:
46 - bond0.2416
47 br_mgm:
48 address: ${_param:_esc}{_param:deploy_address}
49 enabled: true
50 gateway: 172.16.49.1
51 name_servers:
52 - 8.8.8.8
53 - 8.8.4.4
54 netmask: 255.255.255.192
55 proto: static
56 type: bridge
57 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +030058 - enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030059 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +030060 - enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030061 eth1:
62 enabled: true
Dennis Dmitriev0b354292017-08-21 17:22:33 +030063 name: enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030064 proto: manual
Oleksii Butenko19c74eb2017-08-17 14:17:23 +030065 type: eth
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030066 ipflush_onchange: true
67 eth2:
68 enabled: true
Dennis Dmitriev0b354292017-08-21 17:22:33 +030069 name: enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030070 proto: manual
71 type: eth
72 ipflush_onchange: true
73
74 classes:
75 - environment.lab03_ovs_dpdk.common
76
77 infra_kvm_node02:
78 params:
79 # Use interfaces configuration from the context file,
80 # or generate your own 'linux.network.interface' object using
81 # additional inventory.
82 # For example, you can take the 'inventory_node_name' and find it's config
83 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
84 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
85 linux_network_interfaces:
86 bond0:
87 enabled: true
88 mode: active-backup
89 proto: manual
Dennis Dmitriev0b354292017-08-21 17:22:33 +030090 slaves: enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030091 type: bond
92 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +030093 - enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030094 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +030095 - enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030096 bond0.2416:
97 enabled: true
98 proto: manual
99 type: vlan
100 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
101 - bond0
102 require_interfaces:
103 - bond0
104 br_ctl:
105 address: ${_param:_esc}{_param:single_address}
106 enabled: true
107 netmask: 255.255.255.0
108 proto: static
109 type: bridge
110 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
111 - bond0.2416
112 require_interfaces:
113 - bond0.2416
114 br_mgm:
115 address: ${_param:_esc}{_param:deploy_address}
116 enabled: true
117 gateway: 172.16.49.1
118 name_servers:
119 - 8.8.8.8
120 - 8.8.4.4
121 netmask: 255.255.255.192
122 proto: static
123 type: bridge
124 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300125 - enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300126 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300127 - enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300128 eth1:
129 enabled: true
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300130 name: enp2s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300131 proto: manual
Oleksii Butenko19c74eb2017-08-17 14:17:23 +0300132 type: eth
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300133 ipflush_onchange: true
134 eth2:
135 enabled: true
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300136 name: enp2s0f0
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300137 proto: manual
138 type: eth
139 ipflush_onchange: true
140
141 classes:
142 - environment.lab03_ovs_dpdk.common
143
144 infra_kvm_node03:
145 params:
146 # Use interfaces configuration from the context file,
147 # or generate your own 'linux.network.interface' object using
148 # additional inventory.
149 # For example, you can take the 'inventory_node_name' and find it's config
150 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
151 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
152 linux_network_interfaces:
153 bond0:
154 enabled: true
155 mode: active-backup
156 proto: manual
157 slaves: eno2
158 type: bond
159 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
160 - eno2
161 require_interfaces:
162 - eno2
163 bond0.2416:
164 enabled: true
165 proto: manual
166 type: vlan
167 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
168 - bond0
169 require_interfaces:
170 - bond0
171 br_ctl:
172 address: ${_param:_esc}{_param:single_address}
173 enabled: true
174 netmask: 255.255.255.0
175 proto: static
176 type: bridge
177 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
178 - bond0.2416
179 require_interfaces:
180 - bond0.2416
181 br_mgm:
182 address: ${_param:_esc}{_param:deploy_address}
183 enabled: true
184 gateway: 172.16.49.1
185 name_servers:
186 - 8.8.8.8
187 - 8.8.4.4
188 netmask: 255.255.255.192
189 proto: static
190 type: bridge
191 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
192 - eno1
193 require_interfaces:
194 - eno1
195 eth1:
196 enabled: true
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300197 name: eno2
198 proto: manual
Oleksii Butenko19c74eb2017-08-17 14:17:23 +0300199 type: eth
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300200 ipflush_onchange: true
201 eth2:
202 enabled: true
203 name: eno1
204 proto: manual
205 type: eth
206 ipflush_onchange: true
207
208 classes:
209 - environment.lab03_ovs_dpdk.common
210
211 openstack_compute_node01:
212 params:
213 # Use interfaces configuration from the context file,
214 # or generate your own 'linux.network.interface' object using
215 # additional inventory.
216 # For example, you can take the 'inventory_node_name' and find it's config
217 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
218 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
219 linux_network_interfaces:
220 iface1:
221 enabled: true
222 master: bond0
223 name: enp3s0f1
224 proto: manual
225 type: slave
226 ipflush_onchange: true
227 iface2:
228 enabled: true
229 master: bond0
230 name: enp5s0f0
231 proto: manual
232 type: slave
233 ipflush_onchange: true
234 bond0:
235 enabled: true
236 mode: active-backup
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300237 ovs_bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300238 ovs_type: OVSPort
239 proto: manual
240 slaves: enp3s0f1 enp5s0f0
241 type: bond
242 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
243 - enp3s0f1
244 - enp5s0f0
245 require_interfaces:
246 - enp3s0f1
247 - enp5s0f0
248 bond0.2416:
249 enabled: true
250 proto: manual
251 type: vlan
252 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
253 - bond0
254 require_interfaces:
255 - bond0
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300256 br_prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300257 address: ${_param:_esc}{_param:tenant_address}
258 enabled: true
259 netmask: 255.255.255.0
260 type: dpdk_ovs_bridge
261 br_ctl:
262 address: ${_param:_esc}{_param:control_address}
263 enabled: true
264 netmask: 255.255.255.0
265 proto: static
266 type: bridge
267 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
268 - bond0.2416
269 require_interfaces:
270 - bond0.2416
271 dpdk0:
272 bond: dpdkbond1
273 driver: igb_uio
274 enabled: true
275 n_rxq: 2
276 name: enp5s0f1
277 pci: '0000:05:00.1'
278 type: dpdk_ovs_port
279 dpdk1:
280 bond: dpdkbond1
281 driver: igb_uio
282 enabled: true
283 n_rxq: 2
284 name: enp5s0f2
285 pci: '0000:05:00.2'
286 type: dpdk_ovs_port
287 dpdkbond1:
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300288 bridge: br_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300289 enabled: true
290 mode: active-backup
291 type: dpdk_ovs_bond
292
293 classes:
294 - environment.lab03_ovs_dpdk.common
295
296 openstack_compute_node02:
297 params:
298 # Use interfaces configuration from the context file,
299 # or generate your own 'linux.network.interface' object using
300 # additional inventory.
301 # For example, you can take the 'inventory_node_name' and find it's config
302 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
303 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
304 linux_network_interfaces:
305 eth1:
306 enabled: true
307 master: bond0
308 name: eth0
309 proto: manual
310 type: slave
311 ipflush_onchange: true
312# eth2:
313# enabled: true
314# master: bond0
315# name: eth3
316# proto: manual
317# type: slave
318# ipflush_onchange: true
319 bond0:
320 enabled: true
321 mode: active-backup
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300322 ovs_bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300323 ovs_type: OVSPort
324 proto: manual
325# slaves: eth0 eth3
326 slaves: eth0
327 type: bond
328 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
329 - eth0
330# - eth3
331 require_interfaces:
332 - eth0
333# - eth3
334 bond0.2416:
335 enabled: true
336 proto: manual
337 type: vlan
338 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
339 - bond0
340 require_interfaces:
341 - bond0
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300342 br_prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300343 address: ${_param:_esc}{_param:tenant_address}
344 enabled: true
345 netmask: 255.255.255.0
346 type: dpdk_ovs_bridge
347 br_ctl:
348 address: ${_param:_esc}{_param:control_address}
349 enabled: true
350 netmask: 255.255.255.0
351 proto: static
352 type: bridge
353 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
354 - bond0.2416
355 require_interfaces:
356 - bond0.2416
357 dpdk0:
358 bond: dpdkbond1
359 driver: igb_uio
360 enabled: true
361 n_rxq: 2
362 name: eth2
363 pci: '0000:05:00.1'
364 type: dpdk_ovs_port
365 dpdk1:
366 bond: dpdkbond1
367 driver: igb_uio
368 enabled: true
369 n_rxq: 2
370 name: eth4
371 pci: 0000:0b:00.0
372 type: dpdk_ovs_port
373 dpdkbond1:
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300374 bridge: br_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300375 enabled: true
376 mode: active-backup
377 type: dpdk_ovs_bond
378
379 classes:
380 - environment.lab03_ovs_dpdk.common
381
382 openstack_gateway_node01:
383 params:
384 # Use interfaces configuration from the context file,
385 # or generate your own 'linux.network.interface' object using
386 # additional inventory.
387 # For example, you can take the 'inventory_node_name' and find it's config
388 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
389 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
390 linux_network_interfaces:
391 bond0:
392 enabled: true
393 mode: active-backup
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300394 ovs_bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300395 ovs_type: OVSPort
396 proto: manual
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300397 slaves: enp3s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300398 type: bond
399 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300400 - enp3s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300401 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300402 - enp3s0f1
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300403 br_floating:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300404 enabled: true
405 type: ovs_bridge
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300406 br_floating.2417:
407 address: 172.17.42.135
408 netmask: 255.255.255.192
409 enabled: true
410 proto: static
411 type: vlan
412 br_prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300413 enabled: true
414 type: ovs_bridge
415 br_ctl:
416 address: ${_param:_esc}{_param:single_address}
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300417 bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300418 enabled: true
419 netmask: 255.255.255.0
420 ovs_options: tag=2416
421 proto: static
422 type: ovs_port
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300423 floating_to_prv:
424 bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300425 enabled: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300426 peer: prv_to_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300427 port_type: patch
428 type: ovs_port
429 primary_first_nic:
430 enabled: true
431 master: bond0
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300432 name: enp3s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300433 proto: manual
434 type: slave
435 ipflush_onchange: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300436 prv_to_floating:
437 bridge: br_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300438 enabled: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300439 peer: floating_to_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300440 port_type: patch
441 type: ovs_port
442
443 classes:
444 - environment.lab03_ovs_dpdk.common
445
446 openstack_gateway_node02:
447 params:
448 # Use interfaces configuration from the context file,
449 # or generate your own 'linux.network.interface' object using
450 # additional inventory.
451 # For example, you can take the 'inventory_node_name' and find it's config
452 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
453 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
454 linux_network_interfaces:
455 bond0:
456 enabled: true
457 mode: active-backup
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300458 ovs_bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300459 ovs_type: OVSPort
460 proto: manual
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300461 slaves: eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300462 type: bond
463 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300464 - eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300465 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300466 - eno2
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300467 br_floating:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300468 enabled: true
469 type: ovs_bridge
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300470 br_floating.2417:
471 address: 172.17.42.136
472 netmask: 255.255.255.192
473 enabled: true
474 proto: static
475 type: vlan
476 br_prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300477 enabled: true
478 type: ovs_bridge
479 br_ctl:
480 address: ${_param:_esc}{_param:single_address}
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300481 bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300482 enabled: true
483 netmask: 255.255.255.0
484 ovs_options: tag=2416
485 proto: static
486 type: ovs_port
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300487 floating_to_prv:
488 bridge: br_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300489 enabled: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300490 peer: prv_to_floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300491 port_type: patch
492 type: ovs_port
493 primary_first_nic:
494 enabled: true
495 master: bond0
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300496 name: eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300497 proto: manual
498 type: slave
499 ipflush_onchange: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300500 prv_to_floating:
501 bridge: br_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300502 enabled: true
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300503 peer: floating_to_prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300504 port_type: patch
505 type: ovs_port
506
507 classes:
508 - environment.lab03_ovs_dpdk.common