haproxy: chroot and socket path are configurable

This commit is contained in:
Jérémy Lecour 2020-05-26 14:42:35 +02:00 committed by Gitea
parent f034e93b6e
commit 66b62c5629
3 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,7 @@ The **patch** part changes incrementally at each release.
### Changed
* packweb-apache: Don't turn on mod-evasive emails by default
* haproxy: chroot and socket path are configurable
### Fixed

View File

@ -4,3 +4,6 @@ haproxy_backports: "{{ haproxy_jessie_backports | default(false, true) }}"
haproxy_stats_url: "http://127.0.0.1:8080/"
haproxy_update_config: True
haproxy_force_config: True
haproxy_socket: /run/haproxy/admin.sock
haproxy_chroot: /var/lib/haproxy

View File

@ -3,8 +3,8 @@
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
chroot {{ haproxy_chroot }}
stats socket {{ haproxy_socket }} mode 660 level admin
stats timeout 30s
user haproxy
group haproxy