Allow customization of configuration file path
This commit is contained in:
parent
71b9b29815
commit
9bf451fc03
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
haproxy:
|
haproxy:
|
||||||
|
config_file_path: /etc/haproxy/haproxy.cfg
|
||||||
global:
|
global:
|
||||||
stats:
|
stats:
|
||||||
enable: True
|
enable: True
|
||||||
|
|
Loading…
Reference in a new issue