ansible/roles/network
Timo Makinen b776431baf network: Add support to force DNS servers for interface
Previously DNS servers could be set for interface but they were used only
when interface address was set to static. This change allow to set (or
remove) DNS servers for interfaces regardles of IP address method.
2021-03-25 15:38:00 +00:00
..
defaults network: Don't explicitly set network_carp_interfaces 2021-03-19 17:17:57 +00:00
handlers network: Add keepalived support 2021-03-19 17:09:17 +00:00
tasks network: Move OpenBSD CARP to use network_vip_interfaces 2021-03-19 18:17:02 +00:00
templates network: Add support to force DNS servers for interface 2021-03-25 15:38:00 +00:00
README.md network: Document network_vip_interfaces usage 2021-03-19 18:23:32 +00:00

Ansible role: network

VIP interfaces

VIP (virtual IP address) are defined using nework_vip_interfaces variable. Implementation is operating system specific itself. Currently OpenBSD uses CARP (Command Address Redundancy Protocol) and Linux uses VRRP (Virtual Router Redundancy Protocol) with keepalived daemon.

Parameters:

  • device: physical network device
  • vhid: router/host ID
  • ipaddr: virtual ip address
  • netmask: netmask for virtual ip address (optional on Linux)
  • pass: password for auththenticating advertisements
  • priority: used for elections higher value is preferred master value can be between 0 and 240 (optional)

Example:

network_vip_interfaces:

  • device: eth0
  • vhid: 1
  • ipaddr: 192.0.2.1
  • netmask: 255.255.255.0
  • pass: secret