Skip to content

Commit

Permalink
remove ansible uptime check
Browse files Browse the repository at this point in the history
  • Loading branch information
verwilst committed May 22, 2019
1 parent 8dda2d7 commit 9539105
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kubespray-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@ fi
VERSION=`cat ${BASE}/kubespray.version`
TMPDIR=`mktemp -d`

APIHOST=`grep "\[kube-master\]" -A 1 ${BASE}/hosts.ini | tail -n1`

ansible all -i ${BASE}/hosts.ini -a "uptime" &> ${TMPDIR}/stdout
if [ $? -ne 0 ]; then
cat ${TMPDIR}/stdout
echo "Cluster not reachable. Quitting."
exit 1
fi
echo " [+] All hosts in cluster reachable."

echo ""

echo " [+] Downloading Kubespray ${VERSION} ..."
wget -q -O ${TMPDIR}/${VERSION}.tar.gz https://codeload.github.com/kubernetes-sigs/kubespray/tar.gz/${VERSION}

Expand Down

0 comments on commit 9539105

Please sign in to comment.