keepalived: Fix ordering of config sections
authorBen Kelly <ben@benjii.net>
Tue, 4 Oct 2016 15:41:47 +0000 (18:41 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 31 Dec 2016 10:37:14 +0000 (12:37 +0200)
commit0b16c2ada2b881e9f9ba52635cc4b87e8626a31c
tree45c983aef488fc3f181a3afc51698d8ada70c7cc
parent37d9426ac5baacbf9f8223f29935f9828290c66f
keepalived: Fix ordering of config sections

keepalived seems to be rather particular about which config parameters
come before others.

When defining a virtual IP address, keepalived will check to see if the
vrrp instance is associated with a valid interface. Previously, the
interface parameter was declared after the virtual IP address which
caused an error when keepalived tried to run this check. Keepalived
tries to fall back to checking if 'eth0' exists.

The fix is to re-order the config stanzas so that the interface
parameter comes before the virtual IP address definitions.

Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
net/keepalived/files/keepalived.init