Align the usage of the two extra lb vip parameters

As extra_lb_tls_vip_addresses required a default due to how it's used
I'm also adding a default for extra_lb_vip_addresses and removing the if
defined for it for clarity.

Change-Id: If217f811dab9cfa2f459f5f50bc67bcf31ddbaaa
This commit is contained in:
Magnus Bergman 2020-02-04 11:57:05 +01:00
parent b7834dd051
commit 693cdb1afc
2 changed files with 4 additions and 3 deletions

View File

@ -124,7 +124,10 @@ haproxy_maxconn: 4096
# ssl_cachesize: 20000
# ssl_lifetime: 300
# Add extra TLS VIPs to all servics
# Add extra VIPs to all services
extra_lb_vip_addresses: []
# Add extra TLS VIPs to all services
extra_lb_tls_vip_addresses: []
# Make the log socket available to the chrooted filesystem

View File

@ -17,11 +17,9 @@
{% set _ = vip_binds.append(internal_lb_vip_address) %}
{% endif -%}
{%- if extra_lb_vip_addresses is defined %}
{% for vip_address in extra_lb_vip_addresses %}
{% set _ = vip_binds.append(vip_address) %}
{% endfor %}
{% endif -%}
{% for vip_address in extra_lb_tls_vip_addresses %}
{% set _ = vip_binds.append(vip_address) %}