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

Commit

Permalink
Merge pull request #203 from andrew-womeldorf/issue/202
Browse files Browse the repository at this point in the history
Run-vault submodule: add flag `--data-dir`
  • Loading branch information
brikis98 authored Jul 15, 2020
2 parents ffba525 + 6fc394a commit b21edc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/run-vault/run-vault
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function print_usage {
echo -e " --api-addr\t\tThe full address to use for Client Redirection when running Vault in HA mode. Defaults to \"https://[instance_ip]:$DEFAULT_PORT\". Optional."
echo -e " --config-dir\t\tThe path to the Vault config folder. Optional. Default is the absolute path of '../config', relative to this script."
echo -e " --bin-dir\t\tThe path to the folder with Vault binary. Optional. Default is the absolute path of the parent folder of this script."
echo -e " --data-dir\t\tThe path to the Vault data folder. Optional. Default is the absolute path of '../data', relative to this script."
echo -e " --log-level\t\tThe log verbosity to use with Vault. Optional. Default is $DEFAULT_LOG_LEVEL."
echo -e " --systemd-stdout\t\tThe StandardOutput option of the systemd unit. Optional. If not configured, uses systemd's default (journal)."
echo -e " --systemd-stderr\t\tThe StandardError option of the systemd unit. Optional. If not configured, uses systemd's default (inherit)."
Expand Down Expand Up @@ -438,6 +439,7 @@ function run {
local api_addr=""
local config_dir=""
local bin_dir=""
local data_dir=""
local log_level="$DEFAULT_LOG_LEVEL"
local systemd_stdout=""
local systemd_stderr=""
Expand Down Expand Up @@ -502,6 +504,11 @@ function run {
bin_dir="$2"
shift
;;
--data-dir)
assert_not_empty "$key" "$2"
data_dir="$2"
shift
;;
--log-level)
assert_not_empty "$key" "$2"
log_level="$2"
Expand Down

0 comments on commit b21edc4

Please sign in to comment.