31 lines
665 B
YAML
31 lines
665 B
YAML
---
|
|
# file: roles/haproxy/defaults/main.yml
|
|
|
|
haproxy_config_file: "example.haproxy.cfg.j2"
|
|
haproxy_local_cert: true
|
|
|
|
# Set for entire group
|
|
|
|
haproxy_shared_ip: ""
|
|
haproxy_shared_ip_subnet: "/24"
|
|
haproxy_shared_virtual_router_id: 25
|
|
haproxy_shared_password: ""
|
|
haproxy_keepalived_process_weight: 10
|
|
haproxy_listen_ports:
|
|
- port : 22
|
|
protocol: tcp
|
|
- port : 80
|
|
protocol: tcp
|
|
- port : 443
|
|
protocol: tcp
|
|
- port : 9999
|
|
protocol: tcp
|
|
|
|
# Set per host
|
|
|
|
haproxy_shared_state: MASTER
|
|
haproxy_shared_priority: 100
|
|
haproxy_bind_adapter: "eth0"
|
|
haproxy_keepalived_adapter: "eth0"
|
|
haproxy_keepalived_adapter_vlan: ""
|
|
haproxy_keepalived_ip: 172.16.10.1/24
|