diff --git a/haproxy/config.sls b/haproxy/config.sls index 63f51f2..e4fa11d 100644 --- a/haproxy/config.sls +++ b/haproxy/config.sls @@ -1,6 +1,6 @@ haproxy.config: file.managed: - - name: /etc/haproxy/haproxy.cfg + - name: {{ salt['pillar.get']('haproxy:config_file_path', '/etc/haproxy/haproxy.cfg') }} - source: salt://haproxy/templates/haproxy.jinja - template: jinja - user: root diff --git a/pillar.example b/pillar.example index 78ed658..137b9de 100644 --- a/pillar.example +++ b/pillar.example @@ -3,6 +3,7 @@ # haproxy: + config_file_path: /etc/haproxy/haproxy.cfg global: stats: enable: True @@ -82,4 +83,4 @@ haproxy: name: some-server host: 123.156.189.111 port: 8080 - check: check \ No newline at end of file + check: check