open-nomad/demo/csi/ceph-csi-plugin/run-ceph.sh
Tim Gross cb9ac29d8a demo: CSI Ceph
This changeset expands on the existing demonstration we had for Ceph by
showing volume creation. It includes a demo setup for Ceph on Vagrant so that
you don't need a whole Ceph cluster to try it out.
2021-05-03 10:49:47 -04:00

20 lines
451 B
Bash
Executable file

#!/usr/bin/env bash
CONSUL_HTTP_ADDR=${CONSUL_HTTP_ADDR:-http://localhost:8500}
echo
echo "nomad job run -var-file=nomad.vars ./ceph.nomad"
nomad job run -var-file=nomad.vars ./ceph.nomad
echo
echo -n "waiting for Ceph to be ready..."
while :
do
STATUS=$(curl -s "$CONSUL_HTTP_ADDR/v1/health/checks/ceph-dashboard" | jq -r '.[0].Status')
if [[ "$STATUS" == "passing" ]]; then echo; break; fi
echo -n "."
sleep 1
done
echo "ready!"