From 32a732a8c67bf482bc4b16a93b61f857a00e52be Mon Sep 17 00:00:00 2001 From: George Robinson Date: Wed, 29 Jun 2016 17:39:37 +0100 Subject: [PATCH] Fix test to use config-file-path from pillar --- haproxy/config.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/config.sls b/haproxy/config.sls index b0deda1..e8c9865 100644 --- a/haproxy/config.sls +++ b/haproxy/config.sls @@ -16,5 +16,5 @@ haproxy.config: - service: haproxy.service {% if salt['pillar.get']('haproxy:overwrite', default=True) == False %} - unless: - - test -e /etc/haproxy/haproxy.cfg + - test -e {{ salt['pillar.get']('haproxy:config_file_path', '/etc/haproxy/haproxy.cfg') }} {% endif %}