diff --git a/haproxy/config.sls b/haproxy/config.sls index 641e284..37f366f 100644 --- a/haproxy/config.sls +++ b/haproxy/config.sls @@ -4,9 +4,13 @@ haproxy.config: - source: salt://haproxy/templates/haproxy.jinja - template: jinja - user: root + {% if salt['grains.get']('os_family') == 'FreeBSD' %} + - group: wheel + {% else %} - group: root + {% endif %} - mode: 644 - require_in: - service: haproxy.service - watch_in: - - service: haproxy.service \ No newline at end of file + - service: haproxy.service