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
|
||||
|
@ -82,4 +83,4 @@ haproxy:
|
|||
name: some-server
|
||||
host: 123.156.189.111
|
||||
port: 8080
|
||||
check: check
|
||||
check: check
|
||||
|
|
Loading…
Reference in a new issue