Merge branch 'stable' of https://github.com/saqibahmed515/docker-keepalived into saqibahmed515-stable

This commit is contained in:
Bertrand Gouny
2019-01-21 14:50:08 +01:00
4 changed files with 6 additions and 1 deletions
+2
View File
@@ -18,3 +18,5 @@ KEEPALIVED_VIRTUAL_IPS:
KEEPALIVED_NOTIFY: /container/service/keepalived/assets/notify.sh
KEEPALIVED_ROUTER_ID: 51
KEEPALIVED_STATE: BACKUP
@@ -5,7 +5,7 @@ global_defs {
vrrp_instance VI_1 {
interface {{ KEEPALIVED_INTERFACE }}
state BACKUP
state {{ KEEPALIVED_STATE }}
virtual_router_id {{ KEEPALIVED_ROUTER_ID }}
priority {{ KEEPALIVED_PRIORITY }}
nopreempt
+1
View File
@@ -11,6 +11,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
#
# bootstrap config
#
sed -i "s|{{ KEEPALIVED_STATE }}|$KEEPALIVED_STATE|g" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf
sed -i "s|{{ KEEPALIVED_ROUTER_ID }}|$KEEPALIVED_ROUTER_ID|g" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf
sed -i "s|{{ KEEPALIVED_INTERFACE }}|$KEEPALIVED_INTERFACE|g" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf
sed -i "s|{{ KEEPALIVED_PRIORITY }}|$KEEPALIVED_PRIORITY|g" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf