Files
nomad/demo/csi/ceph-csi-plugin/run-ceph.sh
hashicorp-copywrite[bot] 4f55df8306 Adding explicit MPL license for sub-package (#18219)
This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository.

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-08-16 09:59:07 -05:00

23 lines
519 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
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!"