Created
January 14, 2020 18:59
-
-
Save xtreme-sameer-vohra/98c2c61ee052404d57d84ab0a115287f to your computer and use it in GitHub Desktop.
Vault Chart Concourse changes git patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl | |
index 3e79144..f1258eb 100644 | |
--- a/templates/_helpers.tpl | |
+++ b/templates/_helpers.tpl | |
@@ -117,8 +117,14 @@ for users looking to use this chart with Consul Helm. | |
{{- define "vault.args" -}} | |
{{ if or (eq .mode "standalone") (eq .mode "ha") }} | |
- | | |
+ mkdir /vault/postgres | |
+ cp /vault/userconfig/postgres/* /vault/postgres/ | |
+ chmod 400 /vault/postgres/* | |
+ POSTGRES_IP=`cat /vault/userconfig/postgres/postgres.ip` | |
+ POSTGRES_SECRET=`cat /vault/userconfig/postgres/postgres.secret` | |
sed -E "s/HOST_IP/${HOST_IP?}/g" /vault/config/extraconfig-from-values.hcl > /tmp/storageconfig.hcl; | |
- sed -Ei "s/POD_IP/${POD_IP?}/g" /tmp/storageconfig.hcl; | |
+ sed -Ei "s/%POSTGRES_IP%/${POSTGRES_IP}/g" /tmp/storageconfig.hcl; | |
+ sed -Ei "s/%POSTGRES_SECRET%/${POSTGRES_SECRET}/g" /tmp/storageconfig.hcl; | |
/usr/local/bin/docker-entrypoint.sh vault server -config=/tmp/storageconfig.hcl | |
{{ end }} | |
{{- end -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment