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:
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

View file

@ -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
check: check