blob: 1ef8ccfd908f0a121dee233383da90cddb756220 [file] [log] [blame]
{#- Control network. For control plane nodes #}
{#- Provides: #}
{#- br_ctl (linux bridge) + address #}
{#- _param:keepalived_vip_interface = 'br_ctl' #}
{#- Requires: #}
{#- _param:single_address #}
{#- _param:control_network_netmask #}
{#- _param:dns_server01 #}
{#- _param:dns_server02 #}
# {{ interfaces_role }}
{%- set interface_name = interfaces.keys()[0] %}
{{ interface_name }}:
enabled: true
name: {{ interface_name }}
proto: manual
type: eth
ipflush_onchange: true
br_ctl:
address: ${_param:_esc}{_param:single_address}
enabled: true
netmask: ${_param:_esc}{_param:control_network_netmask}
proto: static
type: bridge
name_servers:
- ${_param:_esc}{_param:dns_server01}
- ${_param:_esc}{_param:dns_server02}
use_interfaces:
- {{ interface_name }}
require_interfaces:
- {{ interface_name }}
post_up_cmds:
- ip r rep 10.254.0.0/16 via ${_param:single_address}