32c2f8e107
kolla-common.sh is mostly to handle CONFIG_INTERNAL. Since CONFIG_INTERNAL has been removed from the repository, we no longer need most of this code except for set_configs. Change-Id: I6bcec08c5275f6cd2c61c980ff238b734443e908 Partially-Implements: blueprint remove-config-internal
27 lines
726 B
Bash
27 lines
726 B
Bash
#!/bin/bash
|
|
|
|
set_configs() {
|
|
case $KOLLA_CONFIG_STRATEGY in
|
|
CONFIG_INTERNAL)
|
|
echo "Config internal no longer exists in this project."
|
|
exit 1
|
|
;;
|
|
CONFIG_EXTERNAL_COPY_ALWAYS)
|
|
source /opt/kolla/config-external.sh
|
|
;;
|
|
CONFIG_EXTERNAL_COPY_ONCE)
|
|
if [[ -f /configured ]]; then
|
|
echo 'INFO - This container has already been configured; Refusing to copy new configs'
|
|
else
|
|
source /opt/kolla/config-external.sh
|
|
touch /configured
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo '$KOLLA_CONFIG_STRATEGY is not set properly'
|
|
exit 1
|
|
;;
|
|
esac
|
|
}
|