Skip to content

Commit

Permalink
for loop and --retry-connrefused not avail
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Feb 1, 2018
1 parent 0dda4bb commit 9fa6a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parts/k8s/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER
ETCD_VER=v{{WrapAsVariable "etcdVersion"}}
DOWNLOAD_URL={{WrapAsVariable "etcdDownloadURLBase"}}
mkdir -p /tmp/etcd-download
curl --retry 5 --retry-delay 10 --retry-max-time 30 --retry-connrefused -L ${DOWNLOAD_URL}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
for i in 1 2 3 4 5; do curl --retry 5 --retry-delay 10 --retry-max-time 30 -L ${DOWNLOAD_URL}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz; done
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /usr/bin/ --strip-components=1
useradd -U "etcd" > 2&>1
usermod -p "$(head -c 32 /dev/urandom | base64)" "etcd"
Expand Down

0 comments on commit 9fa6a69

Please sign in to comment.