
This patch enables the HAProxy webstats for all the configures backends and frontends. A password entry is added to user_secrets.yml for the webstats password. It also adds variables for port number, username and password which can be overridden in user_variables.yml appropriately. Change-Id: Iec866ad124bec6fb0b8524a966adf64e22422035 Closes-Bug: #1446432
33 lines
795 B
Django/Jinja
33 lines
795 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
global
|
|
log 127.0.0.1 local0
|
|
log 127.0.0.1 local1 notice
|
|
chroot /var/lib/haproxy
|
|
uid haproxy
|
|
gid haproxy
|
|
daemon
|
|
maxconn 4096
|
|
tune.bufsize 384000
|
|
stats socket /var/run/haproxy.stat level admin mode 600
|
|
|
|
defaults
|
|
log global
|
|
option dontlognull
|
|
option redispatch
|
|
retries 3
|
|
timeout client 50s
|
|
timeout connect 10s
|
|
timeout server 50s
|
|
maxconn 4096
|
|
|
|
{% if haproxy_stats_enabled | bool %}
|
|
listen stats {{ haproxy_stats_bind_address }}:{{ haproxy_stats_port }}
|
|
mode http
|
|
stats enable
|
|
stats hide-version
|
|
stats realm Haproxy\ Statistics
|
|
stats uri /
|
|
stats auth {{ haproxy_username }}:{{ haproxy_stats_password }}
|
|
{% endif %}
|