update config - only on HA for now, may need to split things out

This commit is contained in:
Clint Shryock 2018-11-19 15:09:59 -06:00
parent b0944d48df
commit 678c50bb72
No known key found for this signature in database
GPG key ID: B7C8F9C70EC5CD29
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# StatefulSet to run the actual vault server cluster.
{{- if (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) }}
{{- if (or (and (ne (.Values.consulHA.enabled | toString) "-") .Values.consulHA.enabled) (and (eq (.Values.consulHA.enabled | toString) "-") .Values.global.enabled)) }}
apiVersion: v1
kind: ConfigMap
metadata:
@ -11,5 +11,5 @@ metadata:
release: {{ .Release.Name }}
data:
statefulconfig-from-values.hcl: |-
{{ tpl .Values.server.config . | indent 4 }}
{{ tpl .Values.consulHA.config . | indent 4 }}
{{- end }}

View file

@ -79,7 +79,7 @@ spec:
- |
export VAULT_CLUSTER_ADDR=http://${POD_IP}:8201
sed -E "s/HOST_IP/${HOST_IP}/g" /vault/config/storageconfig-from-values.hcl > storageconfig.hcl
sed -E "s/HOST_IP/${HOST_IP}/g" /vault/config/statefulconfig-from-values.hcl > storageconfig.hcl
sed -Ei "s/POD_IP/${POD_IP}/g" storageconfig.hcl
vault server -config=storageconfig.hcl