diff --git a/haproxy/config.sls b/haproxy/config.sls index 37f366f..b0deda1 100644 --- a/haproxy/config.sls +++ b/haproxy/config.sls @@ -14,3 +14,7 @@ haproxy.config: - service: haproxy.service - watch_in: - service: haproxy.service + {% if salt['pillar.get']('haproxy:overwrite', default=True) == False %} + - unless: + - test -e /etc/haproxy/haproxy.cfg + {% endif %}