Move scripts for magnum to docker_templates
Change-Id: Ia601291c5a618315e0494ab7d0673a5062ae6b99 Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
parent
1dbb831103
commit
4438d45a12
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/magnum/magnum-api/magnum.conf"
|
||||
TARGET="/etc/magnum/magnum.conf"
|
||||
OWNER="magnum"
|
||||
|
||||
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/magnum-api"
|
||||
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/sh -c "magnum-manage db_sync" magnum
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/magnum/magnum-conductor/magnum.conf"
|
||||
TARGET="/etc/magnum/magnum.conf"
|
||||
OWNER="magnum"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/magnum-conductor"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/magnum/magnum-api/config-external.sh
|
10
docker_templates/magnum/magnum-api/config-external.sh
Normal file
10
docker_templates/magnum/magnum-api/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/magnum/magnum-api/magnum.conf"
|
||||
TARGET="/etc/magnum/magnum.conf"
|
||||
OWNER="magnum"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/magnum/magnum-api/start.sh
|
20
docker_templates/magnum/magnum-api/start.sh
Executable file
20
docker_templates/magnum/magnum-api/start.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/magnum-api"
|
||||
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/sh -c "magnum-manage db_sync" magnum
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/magnum/magnum-conductor/config-external.sh
|
10
docker_templates/magnum/magnum-conductor/config-external.sh
Normal file
10
docker_templates/magnum/magnum-conductor/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/magnum/magnum-conductor/magnum.conf"
|
||||
TARGET="/etc/magnum/magnum.conf"
|
||||
OWNER="magnum"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/magnum/magnum-conductor/start.sh
|
14
docker_templates/magnum/magnum-conductor/start.sh
Executable file
14
docker_templates/magnum/magnum-conductor/start.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/magnum-conductor"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
Loading…
Reference in New Issue
Block a user