mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
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>
23 lines
519 B
Bash
Executable File
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!"
|