10 Interface for inside_network, bound by vrrp.
21 Initial state. As soon as the other machine(s) come up, an election will
22 be held and the machine with the highest "priority" will become MASTER.
23 So the entry here doesn't matter a whole lot.
27 virtualRouterId = mkOption {
28 type = types.ints.between 1 255;
30 Arbitrary unique number 1..255. Used to differentiate multiple instances
31 of vrrpd running on the same NIC (and hence same socket).
39 For electing MASTER, highest priority wins. To be MASTER, make 50 more
44 noPreempt = mkOption {
48 VRRP will normally preempt a lower priority machine when a higher
49 priority machine comes online. "nopreempt" allows the lower priority
50 machine to maintain the master role, even when a higher priority machine
51 comes back online. NOTE: For this to work, the initial state of this
64 vmacInterface = mkOption {
65 type = types.nullOr types.str;
68 Name of the vmac interface to use. keepalived will come up with a name
69 if you don't specify one.
73 vmacXmitBase = mkOption {
77 Send/Recv VRRP messages from base interface instead of VMAC interface.
81 unicastSrcIp = mkOption {
82 type = types.nullOr types.str;
85 Default IP for binding vrrpd is the primary IP on interface. If you
86 want to hide location of vrrpd, use this IP as src_addr for unicast
91 unicastPeers = mkOption {
92 type = types.listOf types.str;
95 Do not send VRRP adverts over VRRP multicast group. Instead it sends
96 adverts to the following list of ip addresses using unicast design
97 fashion. It can be cool to use VRRP FSM and features in a networking
98 environment where multicast is not supported! IP Addresses specified can
103 virtualIps = mkOption {
104 type = types.listOf (
106 import ./virtual-ip-options.nix {
113 description = "Declarative vhost config";
116 trackScripts = mkOption {
117 type = types.listOf types.str;
123 description = "List of script names to invoke for health tracking.";
126 trackInterfaces = mkOption {
127 type = types.listOf types.str;
133 description = "List of network interfaces to monitor for health tracking.";
136 extraConfig = mkOption {
140 Extra lines to be added verbatim to the vrrp_instance section.