blob: c136ab945c54620cc8e7a9a5bc2a4373a66535ef [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- 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 #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03009 # {{ interfaces_role }}
10 {%- for interface_name, interface in interfaces.items() %}
11 {{ interface_name }}:
12 mtu: 9000
13 enabled: true
14 name: {{ interface_name }}
15 proto: manual
16 type: eth
17 ipflush_onchange: true
18 {%- endfor %}
19 bond0:
20 enabled: true
21 mode: active-backup
22 proto: manual
23 slaves: {{ ' '.join(interfaces.keys()) }}
24 type: bond
25 use_interfaces:
26 {%- for interface_name in interfaces.keys() %}
27 - {{ interface_name }}
28 {%- endfor %}
29 require_interfaces:
30 {%- for interface_name in interfaces.keys() %}
31 - {{ interface_name }}
32 {%- endfor %}
33
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:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030052 - bond0