mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 15:20:17 +00:00
retry salt-call in configure-vm.sh
This commit is contained in:
parent
04437f6403
commit
51ec7c2845
@ -1025,7 +1025,15 @@ function configure-salt() {
|
|||||||
|
|
||||||
function run-salt() {
|
function run-salt() {
|
||||||
echo "== Calling Salt =="
|
echo "== Calling Salt =="
|
||||||
salt-call --local state.highstate || true
|
local rc=0
|
||||||
|
for i in {0..6}; do
|
||||||
|
salt-call --local state.highstate && rc=0 || rc=$?
|
||||||
|
if [[ "${rc}" == 0 ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "Salt failed to run repeatedly" >&2
|
||||||
|
return "${rc}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function run-user-script() {
|
function run-user-script() {
|
||||||
|
Loading…
Reference in New Issue
Block a user