Adjust default value for *_backend_ssl

I forgot to set a proper(openstack_service_backend_ssl) default value
for *_backend_ssl variables in a few places.
This patch fixes my mistake.

Change-Id: I1553ba549ba36ab23f999cb256e731520cbb5d09
This commit is contained in:
Damian Dabrowski 2023-07-06 11:54:39 +02:00
parent aa558cc368
commit e88bf6b19c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ haproxy_blazar_api_service:
- "httpchk HEAD / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_backend_httpcheck_options:
- 'expect rstatus (200|401)'
haproxy_backend_ssl: "{{ blazar_backend_ssl | default(False) }}"
haproxy_backend_ssl: "{{ blazar_backend_ssl | default(openstack_service_backend_ssl) }}"
haproxy_backend_ca: "{{ openstack_haproxy_backend_ca | default(True) }}"
haproxy_accept_both_protocols: "{{ blazar_accept_both_protocols | default(openstack_service_accept_both_protocols) }}"
haproxy_service_enabled: "{{ groups['blazar_api'] is defined and groups['blazar_api'] | length > 0 }}"

View File

@ -27,7 +27,7 @@ haproxy_horizon_service:
haproxy_backend_only: true #only describe the backends, frontend is in `base` via haproxy_all group vars
haproxy_service_name: horizon
haproxy_backend_nodes: "{{ groups['horizon_all'] | default([]) }}"
haproxy_backend_port: "{{ (horizon_backend_ssl | default(False)) | ternary(443, 80) }}"
haproxy_backend_port: "{{ (horizon_backend_ssl | default(openstack_service_backend_ssl)) | ternary(443, 80) }}"
haproxy_balance_type: http
haproxy_balance_alg: source
haproxy_backend_options: