ansible/roles/network
2022-11-07 16:34:54 +00:00
..
defaults network: Don't explicitly set network_carp_interfaces 2021-03-19 17:17:57 +00:00
handlers network: yamllint fixes 2022-10-30 15:22:14 +00:00
tasks network: Fix typo 2022-10-30 15:33:53 +00:00
templates network: Fix adding mac address to network config 2022-11-07 16:34:54 +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