diff --git a/cluster/templates/salt-master.sh b/cluster/templates/salt-master.sh index 7bc694287b8..e44f793663e 100755 --- a/cluster/templates/salt-master.sh +++ b/cluster/templates/salt-master.sh @@ -51,7 +51,7 @@ echo $MASTER_HTPASSWD > /srv/salt/nginx/htpasswd # # -M installs the master set +x -curl -L http://bootstrap.saltstack.com | sh -s -- -M -X +curl -L --connect-timeout 20 --retry 6 --retry-delay 10 http://bootstrap.saltstack.com | sh -s -- -M -X set -x echo $MASTER_HTPASSWD > /srv/salt/nginx/htpasswd diff --git a/cluster/templates/salt-minion.sh b/cluster/templates/salt-minion.sh index 08273e257b6..b8e07db1fbe 100755 --- a/cluster/templates/salt-minion.sh +++ b/cluster/templates/salt-minion.sh @@ -38,4 +38,4 @@ EOF # # We specify -X to avoid a race condition that can cause minion failure to # install. See https://github.com/saltstack/salt-bootstrap/issues/270 -curl -L http://bootstrap.saltstack.com | sh -s -- -X +curl -L --connect-timeout 20 --retry 6 --retry-delay 10 http://bootstrap.saltstack.com | sh -s -- -X