Skip to content
Snippets Groups Projects
Commit 2cbccd7d authored by Steven Dake's avatar Steven Dake
Browse files

Move scripts for keepalive to docker_templates

Change-Id: I67ebbfa5a89b5d5c6ab2db78ded10151b95f7337
Partially-Implements: blueprint remove-docker-dir
parent bd32c7a2
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# This will return 0 when it successfully talks to the haproxy daemon via the socket
# Failures return 1
echo "show info" | socat unix-connect:/run/haproxy.sock stdio
#!/bin/bash
SOURCE="/opt/kolla/keepalived/keepalived.conf"
TARGET="/etc/keepalived/keepalived.conf"
OWNER="root"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
#!/bin/bash
set -o errexit
CMD="/usr/sbin/keepalived"
ARGS="-nld -p /run/keepalived.pid"
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
modprobe ip_vs
# Workaround for bug #1485079
if [ -f /run/keepalived.pid ]; then
rm /run/keepalived.pid
fi
exec $CMD $ARGS
../../docker/common/keepalived/check_alive.sh
\ No newline at end of file
#!/bin/bash
# This will return 0 when it successfully talks to the haproxy daemon via the socket
# Failures return 1
echo "show info" | socat unix-connect:/run/haproxy.sock stdio
../../docker/common/keepalived/config-external.sh
\ No newline at end of file
#!/bin/bash
SOURCE="/opt/kolla/keepalived/keepalived.conf"
TARGET="/etc/keepalived/keepalived.conf"
OWNER="root"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
../../docker/common/keepalived/start.sh
\ No newline at end of file
#!/bin/bash
set -o errexit
CMD="/usr/sbin/keepalived"
ARGS="-nld -p /run/keepalived.pid"
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
modprobe ip_vs
# Workaround for bug #1485079
if [ -f /run/keepalived.pid ]; then
rm /run/keepalived.pid
fi
exec $CMD $ARGS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment