Page MenuHomeDevCentral

D2640.id6669.diff
No OneTemporary

D2640.id6669.diff

diff --git a/roles/vault/vault/files/vault.hcl b/roles/vault/vault/files/vault.hcl
--- a/roles/vault/vault/files/vault.hcl
+++ b/roles/vault/vault/files/vault.hcl
@@ -16,8 +16,8 @@
listener "tcp" {
address = "{{ ip }}:8200"
{% if certificates_available %}
- tls_cert_file: "/usr/local/etc/certificates/vault/fullchain.pem"
- tls_key_file: "/usr/local/etc/certificates/vault/private.key"
+ tls_cert_file = "/usr/local/etc/certificates/vault/fullchain.pem"
+ tls_key_file = "/usr/local/etc/certificates/vault/private.key"
{% else %}
tls_disable = 1
{% endif %}
diff --git a/roles/vault/vault/init.sls b/roles/vault/vault/init.sls
--- a/roles/vault/vault/init.sls
+++ b/roles/vault/vault/init.sls
@@ -27,7 +27,7 @@
- context:
id: {{ grains['id'] }}
ip: {{ network['ipv4_address'] }}
- certificates_available: {{ salt["file.file_exists"]("/usr/local/etc/certificates/vault") }}
+ certificates_available: {{ salt["file.file_exists"]("/usr/local/etc/certificates/vault/fullchain.pem") }}
# -------------------------------------------------------------
# Storage

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 20:49 (11 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246745
Default Alt Text
D2640.id6669.diff (1 KB)

Event Timeline