Ansible-HAProxy-Failover/roles/haproxy/defaults/main.yml

32 lines
665 B
YAML
Raw Normal View History

2021-09-23 09:54:34 -06:00
---
# file: roles/haproxy/defaults/main.yml
haproxy_config_file: "example.haproxy.cfg.j2"
haproxy_local_cert: true
2021-09-23 09:54:34 -06:00
# Set for entire group
haproxy_shared_ip: ""
haproxy_shared_ip_subnet: "/24"
haproxy_shared_virtual_router_id: 25
2022-08-23 09:29:21 -06:00
haproxy_shared_password: ""
2021-09-23 09:54:34 -06:00
haproxy_keepalived_process_weight: 10
haproxy_listen_ports:
- port : 22
protocol: tcp
- port : 80
protocol: tcp
- port : 443
protocol: tcp
- port : 9999
protocol: tcp
2021-09-23 09:54:34 -06:00
# 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