[haproxy-config] Fix missing servers in split cfg

When using the split config style, all backends would be empty, which
meant that HAProxy was unable to serve any traffic. This turned out to
be due to a bad default in the split config template.

Closes-Bug: #1872545
Change-Id: I952e526e735e1d31445963f04d41d66bbdbfdee4
This commit is contained in:
Jason Anderson 2020-04-13 16:01:25 -05:00
parent 969159cc17
commit 6d00236edb
No known key found for this signature in database
GPG Key ID: 9207452BF63947DD
2 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,7 @@ backend {{ service_name }}_back
{# services can be listening on a different port than haproxy #}
{% set listen_port = haproxy_service.listen_port|default(haproxy_service.port) %}
{# Custom member list can use jinja to generate a semicolon separated list #}
{% set custom_member_list = haproxy_service.custom_member_list|default() %}
{% set custom_member_list = haproxy_service.custom_member_list|default(none) %}
{# Mode defaults to http #}
{% set mode = haproxy_service.mode|default('http') %}
{# Use the parent host group but allow it to be overridden #}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes issue where HAProxy would have no backend servers in its config files
when using the "split" config template style.