Skip to content

Unquote boolean values in the templated HCL files. #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/vault_backend_gcs.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
storage "gcs" {
bucket = "{{ vault_gcs_bucket }}"
ha_enabled = "{{ vault_gcs_ha_enabled | bool | lower }}"
ha_enabled = {{ vault_gcs_ha_enabled | bool | lower }}
{% if vault_gcs_chunk_size is defined and vault_gcs_chunk_size|length -%}
chunk_size = "{{ vault_gcs_chunk_size }}"
{% endif -%}
Expand Down
10 changes: 5 additions & 5 deletions templates/vault_main_configuration.hcl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ listener "tcp" {
tls_cipher_suites = "{{ l.vault_tls_cipher_suites}}"
{% endif -%}
{% if (l.vault_tls_require_and_verify_client_cert | bool) -%}
tls_require_and_verify_client_cert = "{{ l.vault_tls_require_and_verify_client_cert | bool | lower}}"
tls_require_and_verify_client_cert = {{ l.vault_tls_require_and_verify_client_cert | bool | lower}}
{% endif -%}
{% if (l.vault_tls_disable_client_certs | bool) -%}
tls_disable_client_certs = "{{ l.vault_tls_disable_client_certs | bool | lower}}"
tls_disable_client_certs = {{ l.vault_tls_disable_client_certs | bool | lower}}
{% endif -%}
{% endif -%}
tls_disable = "{{ l.vault_tls_disable | bool | lower }}"
tls_disable = {{ l.vault_tls_disable | bool | lower }}
{% if (l.vault_x_forwarded_for_authorized_addrs is defined and l.vault_x_forwarded_for_authorized_addrs) -%}
x_forwarded_for_authorized_addrs = "{{ l.vault_x_forwarded_for_authorized_addrs }}"
{% if (l.vault_x_forwarded_for_hop_skips is defined) -%}
x_forwarded_for_hop_skips = "{{ l.vault_x_forwarded_for_hop_skips }}"
{% endif -%}
{% if (l.vault_x_forwarded_for_reject_not_authorized is defined) -%}
x_forwarded_for_reject_not_authorized = "{{ l.vault_x_forwarded_for_reject_not_authorized | bool | lower }}"
x_forwarded_for_reject_not_authorized = {{ l.vault_x_forwarded_for_reject_not_authorized | bool | lower }}
{% endif -%}
{% if (l.vault_x_forwarded_for_reject_not_present is defined) -%}
x_forwarded_for_reject_not_present = "{{ l.vault_x_forwarded_for_reject_not_present | bool | lower }}"
x_forwarded_for_reject_not_present = {{ l.vault_x_forwarded_for_reject_not_present | bool | lower }}
{% endif -%}
{% endif -%}
{% if (vault_unauthenticated_metrics_access | bool) -%}
Expand Down