projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f023eb5
)
feat(provision): check the cluster name provided is exactly 5 chars long
author
Javier Bértoli <jbertoli@curii.com>
Wed, 27 Jan 2021 16:07:14 +0000
(13:07 -0300)
committer
Javier Bértoli <jbertoli@curii.com>
Tue, 16 Feb 2021 13:51:28 +0000
(10:51 -0300)
refs #17246
Arvados-DCO-1.1-Signed-off-by: Javier Bértoli <jbertoli@curii.com>
tools/salt-install/provision.sh
patch
|
blob
|
history
diff --git
a/tools/salt-install/provision.sh
b/tools/salt-install/provision.sh
index facb2e88ef51b9fec772475e803b05c2abf772cf..ce1588c190672b4e7efd07e2e0cfa50122c8cd9f 100755
(executable)
--- a/
tools/salt-install/provision.sh
+++ b/
tools/salt-install/provision.sh
@@
-139,6
+139,12
@@
else
exit 1
fi
+if ! grep -E '^[[:alnum:]]{5}$' <<<${CLUSTER} ; then
+ echo >&2 "ERROR: <CLUSTER> must be exactly 5 alphanumeric characters long"
+ echo >&2 "Fix the cluster name in the 'local.params' file and re-run the provision script"
+ exit 1
+fi
+
# Salt's dir
## states
S_DIR="/srv/salt"