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:
|
||||
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
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#
|
||||
|
||||
haproxy:
|
||||
config_file_path: /etc/haproxy/haproxy.cfg
|
||||
global:
|
||||
stats:
|
||||
enable: True
|
||||
|
|
Loading…
Reference in a new issue