blob: c0e5a60ecafbbbdb0af27821007b4f8933602433 [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- Control network. For control plane nodes #}
2{#- Provides: #}
3{#- br_ctl (linux bridge) + address #}
4{#- _param:keepalived_vip_interface = 'br_ctl' #}
5{#- Requires: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
9{#- _param:dns_server01 #}
10{#- _param:dns_server02 #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030011 # {{ interfaces_role }}
12 {%- set interface_name = interfaces.keys()[0] %}
13 {{ interface_name }}:
14 enabled: true
15 name: {{ interface_name }}
16 proto: manual
17 type: eth
18 ipflush_onchange: true
19 br_ctl:
20 enabled: true
21 address: ${_param:_esc}{_param:single_address}
22 netmask: ${_param:_esc}{_param:control_network_netmask}
23 proto: static
24 type: bridge
25 name_servers:
26 - ${_param:_esc}{_param:dns_server01}
27 - ${_param:_esc}{_param:dns_server02}
28 use_interfaces:
29 - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
30 require_interfaces:
31 - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
32 {{ interface_name }}.control_vlan:
33 name: {{ interface_name }}.${_param:_esc}{_param:control_vlan}
34 enabled: true
35 proto: manual
36 type: vlan
37 use_interfaces:
38 - {{ interface_name }}
39 require_interfaces:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030040 - {{ interface_name }}