From e991e668c8a34138509152d86da5952d371b88f9 Mon Sep 17 00:00:00 2001 From: hoonetorg Date: Tue, 1 Dec 2015 13:24:01 +0100 Subject: [PATCH] make haproxy.cfg template more modular - fix stripping - 2nd try --- haproxy/templates/haproxy.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 7c246d4..132dc54 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -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', {}) -%}