Added vault init, destroy, start and unseal scritps.
This commit is contained in:
10
set-env
Normal file
10
set-env
Normal file
@@ -0,0 +1,10 @@
|
||||
# Check, if we have been sourced
|
||||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||
echo "This script must be sourced, not executed!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
export VAULT_ADDR='http://127.0.0.1:8200'
|
||||
export VAULT_TOKEN=$(jq -r .root_token config/vault-init.json | base64 -d | gpg -qd)
|
||||
Reference in New Issue
Block a user