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

43 lines
982 B
YAML
Raw Permalink 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: ""
2024-08-01 13:00:45 -06:00
haproxy_keepalived_ip: ""
2022-08-30 13:07:12 -06:00
# Cerbot configuration
haproxy_certbot_enable: true
haproxy_certbot_user: "{{ ansible_user_id }}"
# Private key file used for cluster member communication
haproxy_private_key: "/root/.ssh/HaProxyPrivateKey"
# Certbot renewal timer
haproxy_certbot_renewal_timer_calendar: "*-*-* 01:00"
haproxy_certbot_renewal_random_delay: ""