Added vault init, destroy, start and unseal scritps.
This commit is contained in:
12
bin/vault-start
Executable file
12
bin/vault-start
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)"
|
||||
|
||||
mkdir -p $REPO_ROOT/{config,data,log}
|
||||
sed -e "s|{{VAULT_DATA_DIR}}|$REPO_ROOT/data|g" \
|
||||
-e "s|{{VAULT_LOG_DIR}}|$REPO_ROOT/log|g" \
|
||||
$REPO_ROOT/vault.hcl > $REPO_ROOT/config/vault.hcl
|
||||
|
||||
vault server -config=$REPO_ROOT/config/vault.hcl -log-file=$REPO_ROOT/log/vault.log
|
||||
Reference in New Issue
Block a user