make haproxy.cfg template more modular - fix stripping - 2nd try

This commit is contained in:
hoonetorg 2015-12-01 13:24:01 +01:00
parent 3f3250c799
commit e991e668c8

View file

@ -89,7 +89,7 @@ userlist {{ id }}
#------------------
defaults
log {{ salt['pillar.get']('haproxy:defaults:log', 'global') }}
{% if 'mode' in salt['pillar.get']('haproxy:defaults', {}) -%}
{%- if 'mode' in salt['pillar.get']('haproxy:defaults', {}) %}
mode {{ salt['pillar.get']('haproxy:defaults:mode', 'http') }}
{%- endif %}
{%- if 'retries' in salt['pillar.get']('haproxy:defaults', {}) -%}