mirror of https://github.com/kubernetes/kops.git
nodeup download should try all mirrors
On an error, we were bailing out early!
This commit is contained in:
parent
54e2d9f645
commit
2462ab1c02
|
|
@ -84,12 +84,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ download-or-bust() {
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1bmastersadditionalcidrex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -337,12 +337,12 @@ Resources.AWSAutoScalingLaunchConfigurationnodesadditionalcidrexamplecom.Propert
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,12 +67,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersadditionaluserda
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -366,12 +366,12 @@ Resources.AWSAutoScalingLaunchConfigurationnodesadditionaluserdataexamplecom.Pro
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersminimalexampleco
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -337,12 +337,12 @@ Resources.AWSAutoScalingLaunchConfigurationnodesminimalexamplecom.Properties.Use
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,12 @@ download-or-bust() {
|
||||||
if [[ $(which curl) ]]; then
|
if [[ $(which curl) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
elif [[ $(which wget ) ]]; then
|
elif [[ $(which wget ) ]]; then
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "== Could not find curl or wget. Retrying. =="
|
echo "== Could not find curl or wget. Retrying. =="
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,12 @@ download-or-bust() {
|
||||||
if [[ $(which curl) ]]; then
|
if [[ $(which curl) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
elif [[ $(which wget ) ]]; then
|
elif [[ $(which wget ) ]]; then
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "== Could not find curl or wget. Retrying. =="
|
echo "== Could not find curl or wget. Retrying. =="
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersexternallbexampl
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -357,12 +357,12 @@ Resources.AWSAutoScalingLaunchConfigurationnodesexternallbexamplecom.Properties.
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersminimalexampleco
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -337,12 +337,12 @@ Resources.AWSAutoScalingLaunchConfigurationnodesminimalexamplecom.Properties.Use
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -358,12 +358,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1bmastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -658,12 +658,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1cmastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -958,12 +958,12 @@ Resources.AWSEC2LaunchTemplatenodesmixedinstancesexamplecom.Properties.LaunchTem
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -358,12 +358,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1bmastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -658,12 +658,12 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1cmastersmixedinstancesex
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -958,12 +958,12 @@ Resources.AWSEC2LaunchTemplatenodesmixedinstancesexamplecom.Properties.LaunchTem
|
||||||
elif [[ $(curl --version) ]]; then
|
elif [[ $(curl --version) ]]; then
|
||||||
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
|
||||||
echo "== Failed to curl ${url}. Retrying. =="
|
echo "== Failed to curl ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
if ! wget --inet4-only -O "${file}" --connect-timeout=20 --tries=6 --wait=10 "${url}"; then
|
||||||
echo "== Failed to wget ${url}. Retrying. =="
|
echo "== Failed to wget ${url}. Retrying. =="
|
||||||
break
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue