2d920745a4
This commit consists HAProxy ansible bits including config generation, container deployment and hot reloads. Closes-Bug: #1477915 Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ie93fa68fdb6b2885889c992ff1267d38b68e0cbc Partially-implements: blueprint ansible-service
11 lines
208 B
Bash
Executable File
11 lines
208 B
Bash
Executable File
#!/bin/bash
|
|
SOURCE="/opt/kolla/haproxy/haproxy.cfg"
|
|
TARGET="/etc/haproxy/haproxy.cfg"
|
|
OWNER="root"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp -f $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|