From 97970baf84645afac1fd2190126c4c8b2a7e5441 Mon Sep 17 00:00:00 2001 From: hoonetorg Date: Tue, 1 Dec 2015 13:27:21 +0100 Subject: [PATCH] make haproxy.cfg template more modular - fix stripping - 3rd 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 132dc54..c0cee9c 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', {}) -%}