blob: 971b6b99ccb77130d54c1e8082903c790625dd9c [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
63 master: bond0
64 name: enp3s0f1
65 proto: manual
66 type: slave
67 ipflush_onchange: true
68 eth2:
69 enabled: true
70 name: enp3s0f0
71 proto: manual
72 type: eth
73 ipflush_onchange: true
74
75 classes:
76 - environment.lab03_ovs_dpdk.common
77
78 infra_kvm_node02:
79 params:
80 # Use interfaces configuration from the context file,
81 # or generate your own 'linux.network.interface' object using
82 # additional inventory.
83 # For example, you can take the 'inventory_node_name' and find it's config
84 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
85 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
86 linux_network_interfaces:
87 bond0:
88 enabled: true
89 mode: active-backup
90 proto: manual
91 slaves: eno2
92 type: bond
93 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
94 - eno2
95 require_interfaces:
96 - eno2
97 bond0.2416:
98 enabled: true
99 proto: manual
100 type: vlan
101 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
102 - bond0
103 require_interfaces:
104 - bond0
105 br_ctl:
106 address: ${_param:_esc}{_param:single_address}
107 enabled: true
108 netmask: 255.255.255.0
109 proto: static
110 type: bridge
111 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
112 - bond0.2416
113 require_interfaces:
114 - bond0.2416
115 br_mgm:
116 address: ${_param:_esc}{_param:deploy_address}
117 enabled: true
118 gateway: 172.16.49.1
119 name_servers:
120 - 8.8.8.8
121 - 8.8.4.4
122 netmask: 255.255.255.192
123 proto: static
124 type: bridge
125 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
126 - eno1
127 require_interfaces:
128 - eno1
129 eth1:
130 enabled: true
131 master: bond0
132 name: eno2
133 proto: manual
134 type: slave
135 ipflush_onchange: true
136 eth2:
137 enabled: true
138 name: eno1
139 proto: manual
140 type: eth
141 ipflush_onchange: true
142
143 classes:
144 - environment.lab03_ovs_dpdk.common
145
146 infra_kvm_node03:
147 params:
148 # Use interfaces configuration from the context file,
149 # or generate your own 'linux.network.interface' object using
150 # additional inventory.
151 # For example, you can take the 'inventory_node_name' and find it's config
152 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
153 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
154 linux_network_interfaces:
155 bond0:
156 enabled: true
157 mode: active-backup
158 proto: manual
159 slaves: eno2
160 type: bond
161 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
162 - eno2
163 require_interfaces:
164 - eno2
165 bond0.2416:
166 enabled: true
167 proto: manual
168 type: vlan
169 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
170 - bond0
171 require_interfaces:
172 - bond0
173 br_ctl:
174 address: ${_param:_esc}{_param:single_address}
175 enabled: true
176 netmask: 255.255.255.0
177 proto: static
178 type: bridge
179 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
180 - bond0.2416
181 require_interfaces:
182 - bond0.2416
183 br_mgm:
184 address: ${_param:_esc}{_param:deploy_address}
185 enabled: true
186 gateway: 172.16.49.1
187 name_servers:
188 - 8.8.8.8
189 - 8.8.4.4
190 netmask: 255.255.255.192
191 proto: static
192 type: bridge
193 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
194 - eno1
195 require_interfaces:
196 - eno1
197 eth1:
198 enabled: true
199 master: bond0
200 name: eno2
201 proto: manual
202 type: slave
203 ipflush_onchange: true
204 eth2:
205 enabled: true
206 name: eno1
207 proto: manual
208 type: eth
209 ipflush_onchange: true
210
211 classes:
212 - environment.lab03_ovs_dpdk.common
213
214 openstack_compute_node01:
215 params:
216 # Use interfaces configuration from the context file,
217 # or generate your own 'linux.network.interface' object using
218 # additional inventory.
219 # For example, you can take the 'inventory_node_name' and find it's config
220 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
221 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
222 linux_network_interfaces:
223 iface1:
224 enabled: true
225 master: bond0
226 name: enp3s0f1
227 proto: manual
228 type: slave
229 ipflush_onchange: true
230 iface2:
231 enabled: true
232 master: bond0
233 name: enp5s0f0
234 proto: manual
235 type: slave
236 ipflush_onchange: true
237 bond0:
238 enabled: true
239 mode: active-backup
240 ovs_bridge: br-floating
241 ovs_type: OVSPort
242 proto: manual
243 slaves: enp3s0f1 enp5s0f0
244 type: bond
245 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
246 - enp3s0f1
247 - enp5s0f0
248 require_interfaces:
249 - enp3s0f1
250 - enp5s0f0
251 bond0.2416:
252 enabled: true
253 proto: manual
254 type: vlan
255 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
256 - bond0
257 require_interfaces:
258 - bond0
259 br-prv:
260 address: ${_param:_esc}{_param:tenant_address}
261 enabled: true
262 netmask: 255.255.255.0
263 type: dpdk_ovs_bridge
264 br_ctl:
265 address: ${_param:_esc}{_param:control_address}
266 enabled: true
267 netmask: 255.255.255.0
268 proto: static
269 type: bridge
270 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
271 - bond0.2416
272 require_interfaces:
273 - bond0.2416
274 dpdk0:
275 bond: dpdkbond1
276 driver: igb_uio
277 enabled: true
278 n_rxq: 2
279 name: enp5s0f1
280 pci: '0000:05:00.1'
281 type: dpdk_ovs_port
282 dpdk1:
283 bond: dpdkbond1
284 driver: igb_uio
285 enabled: true
286 n_rxq: 2
287 name: enp5s0f2
288 pci: '0000:05:00.2'
289 type: dpdk_ovs_port
290 dpdkbond1:
291 bridge: br-prv
292 enabled: true
293 mode: active-backup
294 type: dpdk_ovs_bond
295
296 classes:
297 - environment.lab03_ovs_dpdk.common
298
299 openstack_compute_node02:
300 params:
301 # Use interfaces configuration from the context file,
302 # or generate your own 'linux.network.interface' object using
303 # additional inventory.
304 # For example, you can take the 'inventory_node_name' and find it's config
305 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
306 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
307 linux_network_interfaces:
308 eth1:
309 enabled: true
310 master: bond0
311 name: eth0
312 proto: manual
313 type: slave
314 ipflush_onchange: true
315# eth2:
316# enabled: true
317# master: bond0
318# name: eth3
319# proto: manual
320# type: slave
321# ipflush_onchange: true
322 bond0:
323 enabled: true
324 mode: active-backup
325 ovs_bridge: br-floating
326 ovs_type: OVSPort
327 proto: manual
328# slaves: eth0 eth3
329 slaves: eth0
330 type: bond
331 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
332 - eth0
333# - eth3
334 require_interfaces:
335 - eth0
336# - eth3
337 bond0.2416:
338 enabled: true
339 proto: manual
340 type: vlan
341 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
342 - bond0
343 require_interfaces:
344 - bond0
345 br-prv:
346 address: ${_param:_esc}{_param:tenant_address}
347 enabled: true
348 netmask: 255.255.255.0
349 type: dpdk_ovs_bridge
350 br_ctl:
351 address: ${_param:_esc}{_param:control_address}
352 enabled: true
353 netmask: 255.255.255.0
354 proto: static
355 type: bridge
356 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
357 - bond0.2416
358 require_interfaces:
359 - bond0.2416
360 dpdk0:
361 bond: dpdkbond1
362 driver: igb_uio
363 enabled: true
364 n_rxq: 2
365 name: eth2
366 pci: '0000:05:00.1'
367 type: dpdk_ovs_port
368 dpdk1:
369 bond: dpdkbond1
370 driver: igb_uio
371 enabled: true
372 n_rxq: 2
373 name: eth4
374 pci: 0000:0b:00.0
375 type: dpdk_ovs_port
376 dpdkbond1:
377 bridge: br-prv
378 enabled: true
379 mode: active-backup
380 type: dpdk_ovs_bond
381
382 classes:
383 - environment.lab03_ovs_dpdk.common
384
385 openstack_gateway_node01:
386 params:
387 # Use interfaces configuration from the context file,
388 # or generate your own 'linux.network.interface' object using
389 # additional inventory.
390 # For example, you can take the 'inventory_node_name' and find it's config
391 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
392 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
393 linux_network_interfaces:
394 bond0:
395 enabled: true
396 mode: active-backup
397 ovs_bridge: br-floating
398 ovs_type: OVSPort
399 proto: manual
400 slaves: enp2s0f1
401 type: bond
402 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
403 - enp2s0f1
404 require_interfaces:
405 - enp2s0f1
406 br-floating:
407 enabled: true
408 type: ovs_bridge
409 br-prv:
410 enabled: true
411 type: ovs_bridge
412 br_ctl:
413 address: ${_param:_esc}{_param:single_address}
414 bridge: br-floating
415 enabled: true
416 netmask: 255.255.255.0
417 ovs_options: tag=2416
418 proto: static
419 type: ovs_port
420 floating-to-prv:
421 bridge: br-floating
422 enabled: true
423 peer: prv-to-floating
424 port_type: patch
425 type: ovs_port
426 primary_first_nic:
427 enabled: true
428 master: bond0
429 name: enp2s0f1
430 proto: manual
431 type: slave
432 ipflush_onchange: true
433 prv-to-floating:
434 bridge: br-prv
435 enabled: true
436 peer: floating-to-prv
437 port_type: patch
438 type: ovs_port
439
440 classes:
441 - environment.lab03_ovs_dpdk.common
442
443 openstack_gateway_node02:
444 params:
445 # Use interfaces configuration from the context file,
446 # or generate your own 'linux.network.interface' object using
447 # additional inventory.
448 # For example, you can take the 'inventory_node_name' and find it's config
449 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
450 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
451 linux_network_interfaces:
452 bond0:
453 enabled: true
454 mode: active-backup
455 ovs_bridge: br-floating
456 ovs_type: OVSPort
457 proto: manual
458 slaves: enp2s0f1
459 type: bond
460 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
461 - enp2s0f1
462 require_interfaces:
463 - enp2s0f1
464 br-floating:
465 enabled: true
466 type: ovs_bridge
467 br-prv:
468 enabled: true
469 type: ovs_bridge
470 br_ctl:
471 address: ${_param:_esc}{_param:single_address}
472 bridge: br-floating
473 enabled: true
474 netmask: 255.255.255.0
475 ovs_options: tag=2416
476 proto: static
477 type: ovs_port
478 floating-to-prv:
479 bridge: br-floating
480 enabled: true
481 peer: prv-to-floating
482 port_type: patch
483 type: ovs_port
484 primary_first_nic:
485 enabled: true
486 master: bond0
487 name: enp2s0f1
488 proto: manual
489 type: slave
490 ipflush_onchange: true
491 prv-to-floating:
492 bridge: br-prv
493 enabled: true
494 peer: floating-to-prv
495 port_type: patch
496 type: ovs_port
497
498 classes:
499 - environment.lab03_ovs_dpdk.common
500
501 openstack_gateway_node03:
502 params:
503 # Use interfaces configuration from the context file,
504 # or generate your own 'linux.network.interface' object using
505 # additional inventory.
506 # For example, you can take the 'inventory_node_name' and find it's config
507 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
508 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
509 linux_network_interfaces:
510 bond0:
511 enabled: true
512 mode: active-backup
513 ovs_bridge: br-floating
514 ovs_type: OVSPort
515 proto: manual
516 slaves: enp2s0f1
517 type: bond
518 use_interfaces: # Remove 'use_interfaces' after https://gerrit.mcp.mirantis.net/#/c/8344
519 - enp2s0f1
520 require_interfaces:
521 - enp2s0f1
522 br-floating:
523 enabled: true
524 type: ovs_bridge
525 br-prv:
526 enabled: true
527 type: ovs_bridge
528 br_ctl:
529 address: ${_param:_esc}{_param:single_address}
530 bridge: br-floating
531 enabled: true
532 netmask: 255.255.255.0
533 ovs_options: tag=2416
534 proto: static
535 type: ovs_port
536 floating-to-prv:
537 bridge: br-floating
538 enabled: true
539 peer: prv-to-floating
540 port_type: patch
541 type: ovs_port
542 primary_first_nic:
543 enabled: true
544 master: bond0
545 name: enp2s0f1
546 proto: manual
547 type: slave
548 ipflush_onchange: true
549 prv-to-floating:
550 bridge: br-prv
551 enabled: true
552 peer: floating-to-prv
553 port_type: patch
554 type: ovs_port
555
556 classes:
557 - environment.lab03_ovs_dpdk.common