Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Update commands in vault-examples-helper to use Vault 0.10.x preferen…
Browse files Browse the repository at this point in the history
…ces.
  • Loading branch information
josh-padnick committed Aug 14, 2018
1 parent c06d126 commit 678f77e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/vault-examples-helper/vault-examples-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ function print_instructions {

instructions+=("To initialize your Vault cluster, SSH to one of the servers and run the init command:\n")
instructions+=(" gcloud compute --project \"$project\" ssh --zone \"$zone\" $server_name")
instructions+=(" vault init")
instructions+=(" vault operator init")

instructions+=("\nTo unseal your Vault cluster, SSH to each of the servers and run the unseal command with 3 of the 5 unseal keys:\n")
for server_name in "${server_names[@]}"; do
instructions+=(" gcloud compute --project \"$project\" ssh --zone \"$zone\" $server_name")
instructions+=(" vault unseal (run this 3 times)\n")
instructions+=(" vault operator unseal (run this 3 times)\n")
done

instructions+=("\nOnce your cluster is unsealed, you can read and write secrets by SSHing to any of the servers:\n")
instructions+=(" gcloud compute --project \"$project\" ssh --zone \"$zone\" $server_name")
instructions+=(" vault auth")
instructions+=(" vault login")
instructions+=(" vault write secret/example value=secret")
instructions+=(" vault read secret/example")

Expand Down

0 comments on commit 678f77e

Please sign in to comment.