Allow customization of configuration file path

This commit is contained in:
Nicolas Delaby 2015-03-17 10:16:55 +01:00
parent 71b9b29815
commit 9bf451fc03
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
haproxy.config: haproxy.config:
file.managed: 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 - source: salt://haproxy/templates/haproxy.jinja
- template: jinja - template: jinja
- user: root - user: root

View file

@ -3,6 +3,7 @@
# #
haproxy: haproxy:
config_file_path: /etc/haproxy/haproxy.cfg
global: global:
stats: stats:
enable: True enable: True
@ -82,4 +83,4 @@ haproxy:
name: some-server name: some-server
host: 123.156.189.111 host: 123.156.189.111
port: 8080 port: 8080
check: check check: check