blob: 19f6e5360297c31c637ea35347a2afba3f82be98 [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 Butenkod58038c2017-09-01 16:57:45 +0300237 ovs_bridge: br-fl
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 Butenkod58038c2017-09-01 16:57:45 +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 Butenkod58038c2017-09-01 16:57:45 +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 Butenkod58038c2017-09-01 16:57:45 +0300322 ovs_bridge: br-fl
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 Butenkod58038c2017-09-01 16:57:45 +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 Butenkod58038c2017-09-01 16:57:45 +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 Butenkod58038c2017-09-01 16:57:45 +0300394 ovs_bridge: br-fl
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 Butenkod58038c2017-09-01 16:57:45 +0300403 br-fl:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300404 enabled: true
405 type: ovs_bridge
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300406 br-fl.2417:
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300407 address: 172.17.42.135
408 netmask: 255.255.255.192
Oleksii Butenko4875be42017-08-31 19:30:04 +0300409 gateway: 172.17.42.129
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300410 enabled: true
411 proto: static
412 type: vlan
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300413 br-prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300414 enabled: true
415 type: ovs_bridge
416 br_ctl:
417 address: ${_param:_esc}{_param:single_address}
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300418 bridge: br-fl
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300419 enabled: true
420 netmask: 255.255.255.0
421 ovs_options: tag=2416
422 proto: static
423 type: ovs_port
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300424 floating-to-prv:
425 bridge: br-fl
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300426 enabled: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300427 peer: prv-to-floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300428 port_type: patch
429 type: ovs_port
430 primary_first_nic:
431 enabled: true
432 master: bond0
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300433 name: enp3s0f1
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300434 proto: manual
435 type: slave
436 ipflush_onchange: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300437 prv-to-floating:
438 bridge: br-prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300439 enabled: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300440 peer: floating-to-prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300441 port_type: patch
442 type: ovs_port
443
444 classes:
445 - environment.lab03_ovs_dpdk.common
446
447 openstack_gateway_node02:
448 params:
449 # Use interfaces configuration from the context file,
450 # or generate your own 'linux.network.interface' object using
451 # additional inventory.
452 # For example, you can take the 'inventory_node_name' and find it's config
453 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
454 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
455 linux_network_interfaces:
456 bond0:
457 enabled: true
458 mode: active-backup
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300459 ovs_bridge: br-fl
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300460 ovs_type: OVSPort
461 proto: manual
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300462 slaves: eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300463 type: bond
464 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300465 - eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300466 require_interfaces:
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300467 - eno2
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300468 br-fl:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300469 enabled: true
470 type: ovs_bridge
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300471 br-fl.2417:
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300472 address: 172.17.42.136
473 netmask: 255.255.255.192
Oleksii Butenko4875be42017-08-31 19:30:04 +0300474 gateway: 172.17.42.129
Oleksii Butenkod8438bd2017-08-23 17:11:42 +0300475 enabled: true
476 proto: static
477 type: vlan
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300478 br-prv:
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300479 enabled: true
480 type: ovs_bridge
481 br_ctl:
482 address: ${_param:_esc}{_param:single_address}
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300483 bridge: br-fl
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300484 enabled: true
485 netmask: 255.255.255.0
486 ovs_options: tag=2416
487 proto: static
488 type: ovs_port
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300489 floating-to-prv:
490 bridge: br-fl
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300491 enabled: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300492 peer: prv-to-floating
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300493 port_type: patch
494 type: ovs_port
495 primary_first_nic:
496 enabled: true
497 master: bond0
Dennis Dmitriev0b354292017-08-21 17:22:33 +0300498 name: eno2
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300499 proto: manual
500 type: slave
501 ipflush_onchange: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300502 prv-to-floating:
503 bridge: br-prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300504 enabled: true
Oleksii Butenkod58038c2017-09-01 16:57:45 +0300505 peer: floating-to-prv
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300506 port_type: patch
507 type: ovs_port
508
509 classes:
510 - environment.lab03_ovs_dpdk.common