diff options
| author | Mohsen Sepandar <msepandar32@gmail.com> | 2025-11-16 13:46:02 +0000 |
|---|---|---|
| committer | Mohsen Sepandar <msepandar32@gmail.com> | 2025-12-01 04:31:32 +0000 |
| commit | 1902193390867bed09ec2daa24e8d38ebcb0d15b (patch) | |
| tree | d5507fcffb2771a7c90a6af26090cc61d3bc1f7e /ansible | |
| parent | 972ac36bd226050abee0182cca352b1e1e3e81f4 (diff) | |
| download | kolla-ansible-1902193390867bed09ec2daa24e8d38ebcb0d15b.tar.gz kolla-ansible-1902193390867bed09ec2daa24e8d38ebcb0d15b.zip | |
Add two unused variables to haproxy-config template file
To add extra configuration lines to the backend section of the haproxy
config files (tcp and http) for each service, the
'haproxy_backend_http_extra' and 'haproxy_backend_tcp_extra' variables
were added to its jinja2 template file.
Change-Id: I9e0e4b07af16463064e709896b83b6c86a799340
Signed-off-by: Mohsen Sepandar <msepandar32@gmail.com>
Closes-Bug: #1914393
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2 b/ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2 index 7c3ad3fd5..76a92e9b0 100644 --- a/ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2 +++ b/ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2 @@ -138,10 +138,10 @@ backend {{ service_name }}_back {% set host_group = haproxy_service.host_group|default(service.group) %} {# Additional options can be defined in config, and are additive to the global extras #} {% set frontend_tcp_extra = haproxy_service.frontend_tcp_extra|default([]) + haproxy_frontend_tcp_extra %} - {% set backend_tcp_extra = haproxy_service.backend_tcp_extra|default([]) %} + {% set backend_tcp_extra = haproxy_service.backend_tcp_extra|default([]) + haproxy_backend_tcp_extra %} {% set frontend_http_extra = haproxy_service.frontend_http_extra|default([]) + haproxy_frontend_http_extra %} {% set frontend_redirect_extra = haproxy_service.frontend_redirect_extra|default([]) + haproxy_frontend_redirect_extra %} - {% set backend_http_extra = haproxy_service.backend_http_extra|default([]) %} + {% set backend_http_extra = haproxy_service.backend_http_extra|default([]) + haproxy_backend_http_extra %} {% set tls_backend = haproxy_service.tls_backend|default(false) %} {# Allow for basic auth #} {% set auth_user = haproxy_service.auth_user|default() %} |
