blob: 28fb70af0bb282cb38319344e996139e4225a046 [file] [log] [blame]
Oleksii Butenkoe2a392f2019-02-22 16:43:43 +02001{#- Control network with bond. For control plane nodes #}
2{#- Provides: #}
3{#- br_ctl (linux bridge) + control address #}
4{#- _param:keepalived_vip_interface = 'br_ctl' #}
5{#- Requirements: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
9 # {{ interfaces_role }}
10 {%- for interface_name, interface in interfaces.items() %}
11 {{ interface_name }}:
12 mtu: 9000
13 enabled: true
14 master: bond0
15 name: {{ interface_name }}
16 proto: manual
17 type: slave
18 ipflush_onchange: true
19 {%- endfor %}
20 bond0:
21 enabled: true
22 mode: '802.3ad'
23 proto: manual
24 slaves: {{ ' '.join(interfaces.keys()) }}
25 type: bond
26 use_interfaces:
27 {%- for interface_name in interfaces.keys() %}
28 - {{ interface_name }}
29 {%- endfor %}
30 require_interfaces:
31 {%- for interface_name in interfaces.keys() %}
32 - {{ interface_name }}
33 {%- endfor %}
34 br_ctl:
35 address: ${_param:_esc}{_param:single_address}
36 enabled: true
37 netmask: ${_param:_esc}{_param:control_network_netmask}
38 proto: static
39 type: bridge
40 use_interfaces:
41 - bond0.${_param:_esc}{_param:control_vlan}
42 require_interfaces:
43 - bond0.${_param:_esc}{_param:control_vlan}
44 bond0.control_vlan:
45 name: bond0.${_param:_esc}{_param:control_vlan}
46 enabled: true
47 proto: manual
48 type: vlan
49 use_interfaces:
50 - bond0
51 require_interfaces:
52 - bond0