network: Document network_vip_interfaces usage

This commit is contained in:
Timo Makinen 2021-03-19 18:23:32 +00:00
parent 43c4602ed4
commit 87001613ed

27
roles/network/README.md Normal file
View file

@ -0,0 +1,27 @@
## 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