cb9ac29d8a
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.
20 lines
451 B
Bash
Executable file
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!"
|