Move scripts for gnocchi to docker_templates
Change-Id: Iabff693470d5b522cd82915ba3b7298d286c5fa4 Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
parent
19318667ba
commit
59138665ac
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/gnocchi-api/gnocchi-api.conf"
|
||||
TARGET="/etc/gnocchi/gnocchi-api.conf"
|
||||
OWNER="gnocchi"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/gnocchi-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 "gnocchi-manage db_sync" gnocchi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/gnocchi-api/gnocchi-api.conf"
|
||||
TARGET="/etc/gnocchi/gnocchi-api.conf"
|
||||
OWNER="gnocchi"
|
||||
|
||||
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/gnocchi-statsd"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
||||
|
@ -1 +0,0 @@
|
||||
../../../docker/common/gnocchi/gnocchi-api/config-external.sh
|
10
docker_templates/gnocchi/gnocchi-api/config-external.sh
Normal file
10
docker_templates/gnocchi/gnocchi-api/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/gnocchi-api/gnocchi-api.conf"
|
||||
TARGET="/etc/gnocchi/gnocchi-api.conf"
|
||||
OWNER="gnocchi"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/gnocchi/gnocchi-api/start.sh
|
21
docker_templates/gnocchi/gnocchi-api/start.sh
Executable file
21
docker_templates/gnocchi/gnocchi-api/start.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/gnocchi-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 "gnocchi-manage db_sync" gnocchi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
||||
|
@ -1 +0,0 @@
|
||||
../../../docker/common/gnocchi/gnocchi-statsd/config-external.sh
|
10
docker_templates/gnocchi/gnocchi-statsd/config-external.sh
Normal file
10
docker_templates/gnocchi/gnocchi-statsd/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/gnocchi-api/gnocchi-api.conf"
|
||||
TARGET="/etc/gnocchi/gnocchi-api.conf"
|
||||
OWNER="gnocchi"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/gnocchi/gnocchi-statsd/start.sh
|
14
docker_templates/gnocchi/gnocchi-statsd/start.sh
Executable file
14
docker_templates/gnocchi/gnocchi-statsd/start.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/gnocchi-statsd"
|
||||
ARGS=""
|
||||
|
||||
# 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