This commit is contained in:
Bertrand Gouny
2015-06-16 11:13:22 +02:00
parent 2df1fb5c42
commit 0d5963eb5e
7 changed files with 35 additions and 21 deletions
@@ -10,7 +10,9 @@ vrrp_instance vip-1 {
priority {{ keepalived_priority }}
nopreempt
unicast_peer {{ keepalived_unicast_peers }}
unicast_peer {
{{ keepalived_unicast_peers }}
}
virtual_ipaddress {
{{ keepalived_virtual_ips }}
@@ -20,7 +22,4 @@ vrrp_instance vip-1 {
auth_type PASS
auth_pass {{ keepalived_password }}
}
debug
}
+3 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/bin/bash -e
FIRST_START_DONE="/etc/docker-keepalived-first-start-done"
@@ -12,6 +12,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
echo "Error: No default keepalived.conf found in /osixia/keepalived/keepalived.conf"
exit 1
else
ln -s /osixia/keepalived/keepalived.conf /etc/keepalived/keepalived.conf
#
@@ -51,6 +52,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
done
sed -i "/{{ keepalived_virtual_ips }}/d" /etc/keepalived/keepalived.conf
fi
fi
touch $FIRST_START_DONE
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash -e
exec /usr/sbin/keepalived -f /etc/keepalived/keepalived.conf --dont-fork --log-console -D -d
exec /usr/local/sbin/keepalived -f /etc/keepalived/keepalived.conf --dont-fork --log-console -D -d