remove set_configs
Change-Id: I9bb0a1fac63cc326234b0f06b1e56b43e0753279 Partially-Implements: blueprint replace-config-external
This commit is contained in:
parent
5e60d8ec87
commit
160f1cc011
@ -1,22 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set_configs() {
|
# Copying configs into place if needed and set run command
|
||||||
case $KOLLA_CONFIG_STRATEGY in
|
python /opt/kolla/set_configs.py
|
||||||
COPY_ALWAYS)
|
CMD=$(cat /run_command)
|
||||||
source /opt/kolla/config-external.sh
|
|
||||||
;;
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-alarm"
|
CMD="/usr/bin/ceilometer-alarm"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-api"
|
CMD="/usr/bin/ceilometer-api"
|
||||||
@ -8,9 +7,6 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Config-internal script exec out of this function, it does not return here.
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-agent-central"
|
CMD="/usr/bin/ceilometer-agent-central"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-collector"
|
CMD="/usr/bin/ceilometer-collector"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-agent-compute"
|
CMD="/usr/bin/ceilometer-agent-compute"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceilometer-agent-notification"
|
CMD="/usr/bin/ceilometer-agent-notification"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/ceph-mon"
|
CMD="/usr/bin/ceph-mon"
|
||||||
@ -14,9 +13,6 @@ MON_DIR="/var/lib/ceph/mon/ceph-$(hostname)"
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -o xtrace
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/designate-api"
|
CMD="/usr/bin/designate-api"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/sbin/named"
|
CMD="/usr/sbin/named"
|
||||||
ARGS="-u named -g"
|
ARGS="-u named -g"
|
||||||
|
|
||||||
# Execute config strategy
|
# Execute config strategy
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/designate-central"
|
CMD="/usr/bin/designate-central"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/designate-mdns"
|
CMD="/usr/bin/designate-mdns"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/designate-pool-manager"
|
CMD="/usr/bin/designate-pool-manager"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/designate-sink"
|
CMD="/usr/bin/designate-sink"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
@ -15,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -7,9 +7,6 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -7,8 +7,5 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# We are intentionally not using exec so we can reload the haproxy config later
|
# We are intentionally not using exec so we can reload the haproxy config later
|
||||||
$CMD
|
$CMD
|
||||||
|
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions
|
# Loading common functions
|
||||||
@ -11,8 +10,4 @@ if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
|
|||||||
source /etc/apache2/envvars
|
source /etc/apache2/envvars
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
modprobe ip_vs
|
modprobe ip_vs
|
||||||
|
|
||||||
# Workaround for bug #1485079
|
# Workaround for bug #1485079
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions
|
# Loading common functions
|
||||||
@ -11,10 +10,6 @@ if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
|
|||||||
source /etc/apache2/envvars
|
source /etc/apache2/envvars
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -4,7 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/magnum-api"
|
CMD="/usr/bin/magnum-api"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/magnum-conductor"
|
CMD="/usr/bin/magnum-conductor"
|
||||||
@ -8,7 +7,4 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
exec $CMD $ARGS
|
exec $CMD $ARGS
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions
|
# Loading common functions
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Loading functions
|
|
||||||
source /opt/kolla/config/config-galera.sh
|
source /opt/kolla/config/config-galera.sh
|
||||||
|
|
||||||
chown mysql: /var/lib/mysql
|
chown mysql: /var/lib/mysql
|
||||||
@ -24,5 +17,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]] && [[ ! -e /var/lib/mysql/cluster.exists ]]; t
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -5,8 +5,4 @@ set -o errexit
|
|||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
source /opt/kolla/config-sudoers.sh
|
source /opt/kolla/config-sudoers.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -5,8 +5,4 @@ set -o errexit
|
|||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
source /opt/kolla/config-sudoers.sh
|
source /opt/kolla/config-sudoers.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
@ -4,10 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
@ -15,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,9 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
mkdir -p "/run/openvswitch"
|
mkdir -p "/run/openvswitch"
|
||||||
if [[ ! -e "/etc/openvswitch/conf.db" ]]; then
|
if [[ ! -e "/etc/openvswitch/conf.db" ]]; then
|
||||||
ovsdb-tool create "/etc/openvswitch/conf.db"
|
ovsdb-tool create "/etc/openvswitch/conf.db"
|
||||||
|
@ -4,9 +4,6 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
modprobe openvswitch
|
modprobe openvswitch
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# loading common functions
|
# loading common functions
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
# loading functions
|
|
||||||
source /opt/kolla/config-rabbit.sh
|
source /opt/kolla/config-rabbit.sh
|
||||||
|
|
||||||
# This catches all cases of the BOOTSTRAP variable being set, including empty
|
# This catches all cases of the BOOTSTRAP variable being set, including empty
|
||||||
@ -18,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running command: ${CMD}"
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -5,8 +5,4 @@ set -o errexit
|
|||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
source /opt/kolla/config-swift.sh
|
source /opt/kolla/config-swift.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -4,8 +4,4 @@ set -o errexit
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Generate run command
|
|
||||||
python /opt/kolla/set_configs.py
|
|
||||||
CMD=$(cat /run_command)
|
|
||||||
|
|
||||||
exec $CMD
|
exec $CMD
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
CMD="/usr/bin/zaqar-server"
|
CMD="/usr/bin/zaqar-server"
|
||||||
@ -8,9 +7,6 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Execute config strategy
|
|
||||||
set_configs
|
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user