Verified Commit 734449a7 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

if etcd endpoint is provided, use that to check status.

parent e221930b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,13 @@

# Check etcd cluster health and print out vault active server.

endpoint=$1
if [ -z $endpoint ]
then
    etcdctl --endpoint=$endpoint:2379 cluster-health
    exit 0
fi

if [ "$ROUTE53_ZONE_NAME" = "vault.stanford.edu" ]
then
    VAULT_ADDR=https://vault.stanford.edu