Browse the Repo

file-type-icon.circleci
file-type-icon_ci
file-type-icon_docs
file-type-iconexamples
file-type-iconroot-example
file-type-iconvault-agent
file-type-iconvault-auto-unseal
file-type-iconvault-cluster-private
file-type-iconvault-consul-ami
file-type-iconvault-dynamodb-backend
file-type-iconvault-ec2-auth
file-type-iconvault-examples-helper
file-type-iconREADME.md
file-type-iconvault-examples-helper.sh
file-type-iconvault-iam-auth
file-type-iconvault-s3-backend
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf

Browse the Repo

file-type-icon.circleci
file-type-icon_ci
file-type-icon_docs
file-type-iconexamples
file-type-iconroot-example
file-type-iconvault-agent
file-type-iconvault-auto-unseal
file-type-iconvault-cluster-private
file-type-iconvault-consul-ami
file-type-iconvault-dynamodb-backend
file-type-iconvault-ec2-auth
file-type-iconvault-examples-helper
file-type-iconREADME.md
file-type-iconvault-examples-helper.sh
file-type-iconvault-iam-auth
file-type-iconvault-s3-backend
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
HashiCorp Vault

HashiCorp Vault

Deploy a Vault cluster. Supports automatic bootstrapping, Consul and S3 backends, self-signed TLS certificates, and auto healing.

Code Preview

Preview the Code

mobile file icon

vault-examples-helper.sh

down
  • #!/bin/bash
  • # A script that is meant to be used with the private Vault cluster examples to:
  • #
  • # 1. Wait for the Vault server cluster to come up.
  • # 2. Print out the IP addresses of the Vault servers.
  • # 3. Print out some example commands you can run against your Vault servers.
  • set -e
  • readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  • readonly SCRIPT_NAME="$(basename "$0")"
  • readonly MAX_RETRIES=30
  • readonly SLEEP_BETWEEN_RETRIES_SEC=10
  • function log {
  • local readonly level="$1"
  • local readonly message="$2"
  • local readonly timestamp=$(date +"%Y-%m-%d %H:%M:%S")
  • >&2 echo -e "${timestamp} [${level}] [$SCRIPT_NAME] ${message}"
  • }
  • function log_info {
  • local readonly message="$1"
  • log "INFO" "$message"

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?