mirror of
https://gitea.0xace.cc/ansible-galaxy/haproxy.git
synced 2025-02-23 13:04:47 +00:00
42 lines
1001 B
YAML
42 lines
1001 B
YAML
haproxy_path: /etc/haproxy
|
|
haproxy_ssl: no
|
|
haproxy_ssl_path: "{{ haproxy_path }}/ssl"
|
|
haproxy_cert_name: haproxy.pem
|
|
haproxy_self_signed_cert: no
|
|
haproxy_self_signed_cert_gen_path: "{{ haproxy_path }}/tempssl"
|
|
haproxy_lua_path: "{{ haproxy_path }}/lua"
|
|
|
|
haproxy_stats_user: haproxy
|
|
haproxy_stats_password: P@ssw0rd
|
|
|
|
haproxy_default_config:
|
|
global:
|
|
daemon:
|
|
chroot: /var/lib/haproxy
|
|
maxconn: 200000
|
|
nbproc: "{{ '2' if ansible_facts['processor_nproc'] > 1 }}"
|
|
user: haproxy
|
|
group: haproxy
|
|
pidfile: /var/run/haproxy.pid
|
|
log:
|
|
- "127.0.0.1 local0"
|
|
stats:
|
|
- "socket /var/lib/haproxy/stats mode 0660 level admin"
|
|
- "bind-process {{ '2' if ansible_facts['processor_nproc'] > 1 }}"
|
|
'tune.ssl.default-dh-param': 2048
|
|
defaults:
|
|
log:
|
|
- global
|
|
maxconn: 200000
|
|
retries: 3
|
|
option:
|
|
- redispatch
|
|
timeout:
|
|
- http-request 10s
|
|
- queue 1m
|
|
- connect 10s
|
|
- client 10m
|
|
- server 10m
|
|
- check 10s
|
|
|