Skip to content
Snippets Groups Projects
Commit aadbbcbe authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "remove set_configs"

parents 762b24cc 160f1cc0
No related branches found
No related tags found
No related merge requests found
Showing
with 9 additions and 101 deletions
#!/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
}
#!/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="" ...@@ -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
#!/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="" ...@@ -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
......
#!/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="" ...@@ -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
#!/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="" ...@@ -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
#!/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="" ...@@ -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
#!/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="" ...@@ -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
#!/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)" ...@@ -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
......
#!/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
......
#!/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
......
#!/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
#!/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
#!/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
#!/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
......
#!/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
#!/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
#!/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
#!/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
#!/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 ...@@ -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 ...@@ -15,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0 exit 0
fi fi
echo "Running command: ${CMD}"
exec $CMD exec $CMD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment