diff --git a/templates/vault/0/docker-compose.yml.tpl b/templates/vault/0/docker-compose.yml.tpl index 1febc56..d016622 100755 --- a/templates/vault/0/docker-compose.yml.tpl +++ b/templates/vault/0/docker-compose.yml.tpl @@ -21,7 +21,7 @@ services: image: vault:0.9.6 cap_add: - IPC_LOCK -{{- if .Values.VAULT_BACKEND }} +{{- if .Values.BACKEND_SERVICE }} external_links: - ${BACKEND_SERVICE}:SERVICE {{- end }} @@ -29,7 +29,11 @@ services: VAULT_REDIRECT_INTERFACE: "eth0" VAULT_CLUSTER_INTERFACE: "eth0" VAULT_LOCAL_CONFIG: | - { "storage":{"{{.Values.VAULT_BACKEND}}":{ {{.Values.BACKEND_CONFIGURATION}} }},"listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}},"cluster_name":"{{.Values.VAULT_CLUSTER_NAME}}"} + { + "storage":{"${VAULT_BACKEND}":{ ${BACKEND_CONFIGURATION} }}, + "listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}}, + "cluster_name":"${VAULT_CLUSTER_NAME}" + } volumes: - vault-file:/vault/file - vault-config:/vault/config diff --git a/templates/vault/0/rancher-compose.yml b/templates/vault/0/rancher-compose.yml index 4fca705..6608ba5 100755 --- a/templates/vault/0/rancher-compose.yml +++ b/templates/vault/0/rancher-compose.yml @@ -56,7 +56,6 @@ catalog: label: Specify the Backend service to connect to description: | The pre-installed Backend server to back to. To reference, you can use the memory variable "SERVICE" in your URLs. For example: "consul://SERVICE:8500" - default: "select" type: service - variable: BACKEND_CONFIGURATION label: Specify the backend configuration in valid JSON format