Set the haproxy log level

This commit is contained in:
Andrea Dell'Amico 2020-10-14 18:20:47 +02:00
parent cc1e1d992b
commit a2a2943812
2 changed files with 2 additions and 1 deletions

View File

@ -24,3 +24,4 @@ docker_swarm_portainer_service_port: '8000'
docker_swarm_keepalived_vrouter_id: 205
docker_swarm_keepalived_floating_ip: '127.0.0.1/8'
docker_swarm_keepalived_instance_name: 'VI_HAPROXY_1'
docker_swarm_haproxy_loglevel: '{{ haproxy_loglevel }}'

View File

@ -2,7 +2,7 @@
# https://www.haproxy.com/blog/haproxy-on-docker-swarm-load-balancing-and-dns-service-discovery/
#
global
log fd@2 local2
log fd@2 local2 {{ docker_swarm_haproxy_loglevel }}
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn {{ haproxy_maxconns }}