File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323# Global settings
2424#------------------
2525global
26+ {% - if salt ['pillar.get' ]('haproxy:global:log' , []) != [] %}
27+ {% - for log in salt ['pillar.get' ]('haproxy:global:log' ) %}
28+ log {{log}}
29+ {% - endfor %}
30+ {% - else %}
2631 log /dev/log local0
2732 log /dev/log local1 notice
33+ {% - endif %}
2834 user {{ salt['pillar.get'] ('haproxy:global:user', 'haproxy') }}
2935 group {{ salt['pillar.get'] ('haproxy:global:group', 'haproxy') }}
3036{% - if salt ['pillar.get' ]('haproxy:global:chroot:enable' , 'no' ) == True %}
Original file line number Diff line number Diff line change 77 overwrite: True # Overwrite an existing config file if present (default behaviour unless set to false)
88 config_file_path: /etc/haproxy/haproxy.cfg
99 global:
10+ log:
11+ - 127.0.0.1 local2
12+ - 127.0.0.1 local1 notice
1013 stats:
1114 enable: True
1215 socketpath: /var/lib/haproxy/stats
You can’t perform that action at this time.
0 commit comments