From 1cc16b35d1e365f3763d11feec7bc783a9d5f1c7 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Fri, 19 Jan 2018 09:43:12 +0000 Subject: [PATCH] Ensure node-specific configuration is always used Some settings where by-passed when using the keyword all. There is still one setting which might be ignored when using the all keyword: EXAREME_ROLE It is assumed the Swarm function is the same at the federation level, and this is used to compute the number of worker nodes, thus it is required to keep this information in synchronised. --- start.sh | 31 ++++++++++++++++++++++++------- stop.sh | 6 ++++-- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/start.sh b/start.sh index 08a2894..bf0b434 100755 --- a/start.sh +++ b/start.sh @@ -17,8 +17,6 @@ # DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE # USE OF THIS SOFTWARE. -. ./settings.sh - federation_nodes="" federation_hosts="" for h in $(docker node ls --format '{{ .Hostname }}') @@ -28,6 +26,10 @@ do done usage() { + ( # This is just in case the user wants to check the settings + . ./settings.sh + ) + cat <