This commit consists HAProxy container. It only supports config-external as this requires orchiestration. Change-Id: I0af28be4f3d4aa40c418f15c40c45630d0fd7c8d Partially-implements: blueprint haproxy-container
12 lines
220 B
Bash
Executable File
12 lines
220 B
Bash
Executable File
#!/bin/bash
|
|
SOURCE="/opt/kolla/haproxy/haproxy.cfg"
|
|
TARGET="/etc/haproxy/haproxy.cfg"
|
|
OWNER="root"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
rm $TARGET
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|