Move scripts for heat to docker_templates

Change-Id: I22ff477865382d2612eee97390a9580d2d03f40c
Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
Steven Dake 2015-08-27 18:06:42 -07:00
parent 739c2c6e3a
commit 43327444ca
12 changed files with 76 additions and 82 deletions

@ -1,10 +0,0 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-api-cfn/heat.conf"
TARGET="/etc/heat/heat.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1,13 +0,0 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-api-cfn"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS

@ -1,10 +0,0 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-api/heat-api.conf"
TARGET="/etc/heat/heat-api.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1,13 +0,0 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS

@ -1,10 +0,0 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-engine/heat.conf"
TARGET="/etc/heat/heat.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1,20 +0,0 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-engine"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/bash -c "/usr/bin/heat-manage db_sync" heat
exit 0
fi
exec $CMD $ARGS

@ -1 +0,0 @@
../../../docker/common/heat/heat-api-cfn/config-external.sh

@ -0,0 +1,10 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-api-cfn/heat.conf"
TARGET="/etc/heat/heat.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1 +0,0 @@
../../../docker/common/heat/heat-api-cfn/start.sh

@ -0,0 +1,13 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-api-cfn"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS

@ -1 +0,0 @@
../../../docker/common/heat/heat-api/config-external.sh

@ -0,0 +1,10 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-api/heat-api.conf"
TARGET="/etc/heat/heat-api.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1 +0,0 @@
../../../docker/common/heat/heat-api/start.sh

@ -0,0 +1,13 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS

@ -1 +0,0 @@
../../../docker/common/heat/heat-engine/config-external.sh

@ -0,0 +1,10 @@
#!/bin/bash
SOURCE="/opt/kolla/heat-engine/heat.conf"
TARGET="/etc/heat/heat.conf"
OWNER="heat"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

@ -1 +0,0 @@
../../../docker/common/heat/heat-engine/start.sh

@ -0,0 +1,20 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/heat-engine"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/bash -c "/usr/bin/heat-manage db_sync" heat
exit 0
fi
exec $CMD $ARGS