Move scripts for murano to docker_templates
Change-Id: I1f7090d22c33891717002297c898cf1b5ddb210c Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
parent
eb9d7da1a0
commit
6434f19ef2
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -1 +0,0 @@
|
||||
../../../docker/common/murano/murano-api/config-external.sh
|
10
docker_templates/murano/murano-api/config-external.sh
Normal file
10
docker_templates/murano/murano-api/config-external.sh
Normal 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
|
@ -1 +0,0 @@
|
||||
../../../docker/common/murano/murano-api/start.sh
|
20
docker_templates/murano/murano-api/start.sh
Executable file
20
docker_templates/murano/murano-api/start.sh
Executable 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
|
@ -1 +0,0 @@
|
||||
../../../docker/common/murano/murano-engine/config-external.sh
|
10
docker_templates/murano/murano-engine/config-external.sh
Normal file
10
docker_templates/murano/murano-engine/config-external.sh
Normal 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
|
@ -1 +0,0 @@
|
||||
../../../docker/common/murano/murano-engine/start.sh
|
13
docker_templates/murano/murano-engine/start.sh
Executable file
13
docker_templates/murano/murano-engine/start.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user