diff options
| author | jayjahns <jayjahns@gmail.com> | 2026-08-24 16:51:33 -0500 |
|---|---|---|
| committer | Bartosz Bezak <bartosz@stackhpc.com> | 2026-09-16 18:57:05 +0000 |
| commit | 9c408e5af204cd3e3bdb86dae6ee691f48c1daa2 (patch) | |
| tree | d235ed9946f0b8a1690c6c5fdeb68c602958a316 /ansible/roles/horizon/defaults/main.yml | |
| parent | fab0967e3f737ebf78f3c1de897bdf1b837c0b83 (diff) | |
| download | kolla-ansible-9c408e5af204cd3e3bdb86dae6ee691f48c1daa2.tar.gz kolla-ansible-9c408e5af204cd3e3bdb86dae6ee691f48c1daa2.zip | |
Update enable_letsencrypt to boolean validation
Fixes the enable_letsencrypt to properly use boolean instead of a string.
Currently breaks acme in its current state.
Co-Authored-By: Bartosz Bezak <bartosz@stackhpc.com>
Closes-bug: #2164956
Change-Id: Iae8770438ba63717030cc4ec8662f5ca0f6c9168
Signed-off-by: jayjahns@gmail.com
Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
(cherry picked from commit e372288577a189d8798e326c3ff2bd104b4a84a0)
Diffstat (limited to 'ansible/roles/horizon/defaults/main.yml')
| -rw-r--r-- | ansible/roles/horizon/defaults/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ansible/roles/horizon/defaults/main.yml b/ansible/roles/horizon/defaults/main.yml index 04cd14761..9d7b66e01 100644 --- a/ansible/roles/horizon/defaults/main.yml +++ b/ansible/roles/horizon/defaults/main.yml @@ -34,7 +34,7 @@ horizon_services: port: "{% if kolla_enable_tls_internal | bool %}{{ horizon_tls_port }}{% else %}{{ horizon_port }}{% endif %}" listen_port: "{{ horizon_listen_port }}" frontend_http_extra: - - "{% if enable_letsencrypt == 'yes' %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" + - "{% if enable_letsencrypt | bool %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" backend_http_extra: - "balance {{ 'roundrobin' if enable_memcached | bool or horizon_backend_database | bool else 'source' }}" - "option httpchk" @@ -46,7 +46,7 @@ horizon_services: port: "{{ horizon_port }}" listen_port: "{{ horizon_listen_port }}" frontend_redirect_extra: - - "{% if enable_letsencrypt == 'yes' %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" + - "{% if enable_letsencrypt | bool %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" horizon_external: enabled: "{{ enable_horizon }}" mode: "http" @@ -55,7 +55,7 @@ horizon_services: port: "{% if kolla_enable_tls_external | bool %}{{ horizon_tls_port }}{% else %}{{ horizon_port }}{% endif %}" listen_port: "{{ horizon_listen_port }}" frontend_http_extra: - - "{% if enable_letsencrypt == 'yes' %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" + - "{% if enable_letsencrypt | bool %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" backend_http_extra: - "balance {{ 'roundrobin' if enable_memcached | bool or horizon_backend_database | bool else 'source' }}" - "option httpchk" @@ -68,9 +68,9 @@ horizon_services: port: "{{ horizon_port }}" listen_port: "{{ horizon_listen_port }}" frontend_redirect_extra: - - "{% if enable_letsencrypt == 'yes' %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" + - "{% if enable_letsencrypt | bool %}use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }{% endif %}" acme_client: - enabled: "{{ enable_letsencrypt }}" + enabled: "{{ enable_letsencrypt | bool }}" with_frontend: false custom_member_list: "{{ acme_client_servers }}" |
