Permalink
Switch branches/tags
Nothing to show
Find file Copy path
4a573e5 Jul 7, 2015
executable file 13 lines (10 sloc) 417 Bytes
#!/bin/bash
# 02-unseal.sh
VAULT_KEY=$(cat ./vault_key)
echo unseal vault on 172.20.20.11
curl -X PUT http://172.20.20.11:8200/v1/sys/unseal -d '{"secret_shares": 1, "key": "'$VAULT_KEY'"}'
#{"sealed":false,"t":1,"n":1,"progress":0}
echo
echo unseal vault on 172.20.20.12
curl -X PUT http://172.20.20.12:8200/v1/sys/unseal -d '{"secret_shares": 1, "key": "'$VAULT_KEY'"}'
#{"sealed":false,"t":1,"n":1,"progress":0}