blob: 30f48cfcd58880c542fe74b452a165e87a0de021 [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
23 slaves: enp3s0f1
24 type: bond
25 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
26 - enp3s0f1
27 require_interfaces:
28 - enp3s0f1
29 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
58 - enp3s0f0
59 require_interfaces:
60 - enp3s0f0
61 eth1:
62 enabled: true
Dennis Dmitriev510e65c2017-08-12 12:50:36 +030063 name: enp3s0f1
64 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
69 name: enp3s0f0
70 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
90 slaves: eno2
91 type: bond
92 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
93 - eno2
94 require_interfaces:
95 - eno2
96 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
125 - eno1
126 require_interfaces:
127 - eno1
128 eth1:
129 enabled: true
Dennis Dmitriev510e65c2017-08-12 12:50:36 +0300130 name: eno2
131 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
136 name: eno1
137 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
237 ovs_bridge: br-floating
238 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
256 br-prv:
257 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:
288 bridge: br-prv
289 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
322 ovs_bridge: br-floating
323 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
342 br-prv:
343 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:
374 bridge: br-prv
375 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
394 ovs_bridge: br-floating
395 ovs_type: OVSPort
396 proto: manual
397 slaves: enp2s0f1
398 type: bond
399 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
400 - enp2s0f1
401 require_interfaces:
402 - enp2s0f1
403 br-floating:
404 enabled: true
405 type: ovs_bridge
406 br-prv:
407 enabled: true
408 type: ovs_bridge
409 br_ctl:
410 address: ${_param:_esc}{_param:single_address}
411 bridge: br-floating
412 enabled: true
413 netmask: 255.255.255.0
414 ovs_options: tag=2416
415 proto: static
416 type: ovs_port
417 floating-to-prv:
418 bridge: br-floating
419 enabled: true
420 peer: prv-to-floating
421 port_type: patch
422 type: ovs_port
423 primary_first_nic:
424 enabled: true
425 master: bond0
426 name: enp2s0f1
427 proto: manual
428 type: slave
429 ipflush_onchange: true
430 prv-to-floating:
431 bridge: br-prv
432 enabled: true
433 peer: floating-to-prv
434 port_type: patch
435 type: ovs_port
436
437 classes:
438 - environment.lab03_ovs_dpdk.common
439
440 openstack_gateway_node02:
441 params:
442 # Use interfaces configuration from the context file,
443 # or generate your own 'linux.network.interface' object using
444 # additional inventory.
445 # For example, you can take the 'inventory_node_name' and find it's config
446 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
447 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
448 linux_network_interfaces:
449 bond0:
450 enabled: true
451 mode: active-backup
452 ovs_bridge: br-floating
453 ovs_type: OVSPort
454 proto: manual
455 slaves: enp2s0f1
456 type: bond
457 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
458 - enp2s0f1
459 require_interfaces:
460 - enp2s0f1
461 br-floating:
462 enabled: true
463 type: ovs_bridge
464 br-prv:
465 enabled: true
466 type: ovs_bridge
467 br_ctl:
468 address: ${_param:_esc}{_param:single_address}
469 bridge: br-floating
470 enabled: true
471 netmask: 255.255.255.0
472 ovs_options: tag=2416
473 proto: static
474 type: ovs_port
475 floating-to-prv:
476 bridge: br-floating
477 enabled: true
478 peer: prv-to-floating
479 port_type: patch
480 type: ovs_port
481 primary_first_nic:
482 enabled: true
483 master: bond0
484 name: enp2s0f1
485 proto: manual
486 type: slave
487 ipflush_onchange: true
488 prv-to-floating:
489 bridge: br-prv
490 enabled: true
491 peer: floating-to-prv
492 port_type: patch
493 type: ovs_port
494
495 classes:
496 - environment.lab03_ovs_dpdk.common
497
498 openstack_gateway_node03:
499 params:
500 # Use interfaces configuration from the context file,
501 # or generate your own 'linux.network.interface' object using
502 # additional inventory.
503 # For example, you can take the 'inventory_node_name' and find it's config
504 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
505 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
506 linux_network_interfaces:
507 bond0:
508 enabled: true
509 mode: active-backup
510 ovs_bridge: br-floating
511 ovs_type: OVSPort
512 proto: manual
513 slaves: enp2s0f1
514 type: bond
515 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
516 - enp2s0f1
517 require_interfaces:
518 - enp2s0f1
519 br-floating:
520 enabled: true
521 type: ovs_bridge
522 br-prv:
523 enabled: true
524 type: ovs_bridge
525 br_ctl:
526 address: ${_param:_esc}{_param:single_address}
527 bridge: br-floating
528 enabled: true
529 netmask: 255.255.255.0
530 ovs_options: tag=2416
531 proto: static
532 type: ovs_port
533 floating-to-prv:
534 bridge: br-floating
535 enabled: true
536 peer: prv-to-floating
537 port_type: patch
538 type: ovs_port
539 primary_first_nic:
540 enabled: true
541 master: bond0
542 name: enp2s0f1
543 proto: manual
544 type: slave
545 ipflush_onchange: true
546 prv-to-floating:
547 bridge: br-prv
548 enabled: true
549 peer: floating-to-prv
550 port_type: patch
551 type: ovs_port
552
553 classes:
554 - environment.lab03_ovs_dpdk.common