Move scripts for murano to docker_templates

Change-Id: I1f7090d22c33891717002297c898cf1b5ddb210c
Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
Steven Dake 2015-08-27 18:27:37 -07:00
parent eb9d7da1a0
commit 6434f19ef2
8 changed files with 53 additions and 57 deletions

View File

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

View File

@ -1,20 +0,0 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/murano-api"
ARGS="--config-file /etc/murano/murano.conf"
# 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/sh -c "murano-db-manage --config-file /etc/murano/murano.conf upgrade" murano
exit 0
fi
exec $CMD $ARGS

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,20 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/murano-api"
ARGS="--config-file /etc/murano/murano.conf"
# 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/sh -c "murano-db-manage --config-file /etc/murano/murano.conf upgrade" murano
exit 0
fi
exec $CMD $ARGS

View File

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

View File

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

View File

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

View File

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