blob: c0e5a60ecafbbbdb0af27821007b4f8933602433 [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:control_vlan #}
{#- _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:
enabled: true
address: ${_param:_esc}{_param:single_address}
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 }}.${_param:_esc}{_param:control_vlan}
require_interfaces:
- {{ interface_name }}.${_param:_esc}{_param:control_vlan}
{{ interface_name }}.control_vlan:
name: {{ interface_name }}.${_param:_esc}{_param:control_vlan}
enabled: true
proto: manual
type: vlan
use_interfaces:
- {{ interface_name }}
require_interfaces:
- {{ interface_name }}