Move scripts for designate to docker_templates
Change-Id: Ic1b00c8e1b459dd3ac7a6678c58ab53171dfaf00 Partially-Implements: blueprint remove-docker-dir
This commit is contained in:
parent
ccdc01fb49
commit
155f5a5817
docker/common/designate
designate-api
designate-backend-bind9
designate-central
designate-mdns
designate-poolmanager
designate-sink
docker_templates/designate
designate-api
designate-backend-bind9
designate-central
designate-mdns
designate-poolmanager
designate-sink
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/designate-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 "designate-manage db_sync" designate
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/sbin/named"
|
||||
ARGS="-u named -g"
|
||||
|
||||
# Execute config strategy
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/designate-central"
|
||||
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/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/designate-mdns"
|
||||
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/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/designate-pool-manager"
|
||||
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/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
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/designate-sink"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-api/config-external.sh
|
10
docker_templates/designate/designate-api/config-external.sh
Normal file
10
docker_templates/designate/designate-api/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-api/start.sh
|
20
docker_templates/designate/designate-api/start.sh
Executable file
20
docker_templates/designate/designate-api/start.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/designate-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 "designate-manage db_sync" designate
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-backend-bind9/config-external.sh
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-backend-bind9/start.sh
|
13
docker_templates/designate/designate-backend-bind9/start.sh
Executable file
13
docker_templates/designate/designate-backend-bind9/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/sbin/named"
|
||||
ARGS="-u named -g"
|
||||
|
||||
# Execute config strategy
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-central/config-external.sh
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-central/start.sh
|
13
docker_templates/designate/designate-central/start.sh
Executable file
13
docker_templates/designate/designate-central/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/designate-central"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-mdns/config-external.sh
|
10
docker_templates/designate/designate-mdns/config-external.sh
Normal file
10
docker_templates/designate/designate-mdns/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-mdns/start.sh
|
13
docker_templates/designate/designate-mdns/start.sh
Executable file
13
docker_templates/designate/designate-mdns/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/designate-mdns"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-poolmanager/config-external.sh
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-poolmanager/start.sh
|
13
docker_templates/designate/designate-poolmanager/start.sh
Executable file
13
docker_templates/designate/designate-poolmanager/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/designate-pool-manager"
|
||||
ARGS=""
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Execute config strategy
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-sink/config-external.sh
|
10
docker_templates/designate/designate-sink/config-external.sh
Normal file
10
docker_templates/designate/designate-sink/config-external.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/designate/designate.conf"
|
||||
TARGET="/etc/designate/designate.conf"
|
||||
OWNER="designate"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
@ -1 +0,0 @@
|
||||
../../../docker/common/designate/designate-sink/start.sh
|
13
docker_templates/designate/designate-sink/start.sh
Executable file
13
docker_templates/designate/designate-sink/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
CMD="/usr/bin/designate-sink"
|
||||
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