Skip to content

Commit

Permalink
feat(sdk): Adding vault configuration default env variable
Browse files Browse the repository at this point in the history
This allows setting VAULT_LOCAL_CONFIG variable from the compose file.
This was useful in edgexfoundry/edgex-examples#7 to allow edgex to run in docker swarm because 'mlock' needed to be disabled in the configuration.

Signed-off-by: adam-w-mitchell <[email protected]>
  • Loading branch information
adam-intel committed Aug 26, 2020
1 parent 3555043 commit 9abc40e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/security-secrets-setup/start_vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -e

VAULT_TLS_PATH=${VAULT_TLS_PATH:-/tmp/edgex/secrets/edgex-vault}

VAULT_LOCAL_CONFIG='
DEFAULT_VAULT_LOCAL_CONFIG='
listener "tcp" {
address = "edgex-vault:8200"
tls_disable = "0"
Expand All @@ -43,6 +43,8 @@ listener "tcp" {
max_lease_ttl = "720h"
'

VAULT_LOCAL_CONFIG=${VAULT_LOCAL_CONFIG:-$DEFAULT_VAULT_LOCAL_CONFIG}

echo "VAULT_LOCAL_CONFIG:" ${VAULT_LOCAL_CONFIG}

export VAULT_TLS_PATH VAULT_LOCAL_CONFIG
Expand Down

0 comments on commit 9abc40e

Please sign in to comment.