ansible-role-haproxy/defaults/main.yml

65 lines
1.5 KiB
YAML
Raw Normal View History

2019-11-08 21:29:11 +00:00
---
haproxy_apt_release: '{{ ansible_distribution_release }}'
2019-11-08 21:29:11 +00:00
haproxy_stats_username: admin
haproxy_stats_password: secret
haproxy_global: {}
haproxy_default_global:
log-send-hostname: true
chroot: /var/lib/haproxy
pidfile: /var/run/haproxy.pid
maxconn: 4096
user: haproxy
group: haproxy
daemon: true
stats: socket /var/lib/haproxy/stats group haproxy mode 660
2019-11-08 21:29:11 +00:00
haproxy_full_global: '{{ haproxy_default_global|combine(haproxy_global) }}'
haproxy_defaults: {}
haproxy_default_defaults:
mode: http
log: global
option:
- httplog
- dontlognull
- http-server-close
- forwardfor except 127.0.0.0/8
- redispatch
retries: 3
timeout:
- http-request 10s
- queue 1m
- connect 10s
- client 1m
- server 1m
- http-keep-alive 10s
- check 10s
maxconn: 4096
haproxy_full_defaults: '{{ haproxy_default_defaults|combine(haproxy_defaults) }}'
haproxy_listen_stats: {}
haproxy_default_listen_stats:
bind:
ip: 127.0.0.1
port: 9000
mode: http
maxconn: 10
timeout:
- client 30s
- server 30s
- connect 30s
- queue 30s
stats:
- 'refresh 5s'
- 'show-node'
- 'realm Haproxy\ Statistics'
- 'auth {{ haproxy_stats_username }}:{{ haproxy_stats_password }}'
- 'uri /haproxy_stats'
haproxy_full_listen_stats: '{{ haproxy_default_listen_stats|combine(haproxy_listen_stats, recursive=True) }}'
haproxy_frontends: {}
haproxy_backends: {}
haproxy_ssl_certificates: {}
2020-04-11 13:34:20 +00:00
haproxy_ips_lists: {}
2021-08-15 11:00:28 +00:00
haproxy_resolvers: {}
2021-08-15 15:44:40 +00:00
haproxy_userlists: {}