2021-09-23 09:54:34 -06:00
|
|
|
---
|
|
|
|
# file: hosts
|
|
|
|
|
|
|
|
haproxy:
|
|
|
|
hosts:
|
|
|
|
dev-ha01:
|
|
|
|
ansible_host: 10.1.1.3
|
|
|
|
haproxy_shared_state: MASTER
|
|
|
|
haproxy_shared_priority: 101
|
|
|
|
haproxy_bind_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter_vlan: "100"
|
|
|
|
haproxy_keepalived_ip: 172.16.10.1/24
|
|
|
|
|
|
|
|
dev-ha02:
|
|
|
|
ansible_host: 10.1.1.4
|
|
|
|
haproxy_shared_state: BACKUP
|
|
|
|
haproxy_shared_priority: 100
|
|
|
|
haproxy_bind_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter_vlan: "100"
|
|
|
|
haproxy_keepalived_ip: 172.16.10.2/24
|
|
|
|
|
|
|
|
dev-ha03:
|
|
|
|
ansible_host: 10.1.1.5
|
|
|
|
haproxy_shared_state: BACKUP
|
|
|
|
haproxy_shared_priority: 99
|
|
|
|
haproxy_bind_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter: "eth0"
|
|
|
|
haproxy_keepalived_adapter_vlan: "100"
|
|
|
|
haproxy_keepalived_ip: 172.16.10.3/24
|
|
|
|
|
|
|
|
vars:
|
|
|
|
haproxy_shared_ip: "10.10.2.60"
|
|
|
|
haproxy_shared_ip_subnet: "/24"
|
|
|
|
haproxy_shared_virtual_router_id: 25
|
2022-08-30 13:07:12 -06:00
|
|
|
haproxy_certbot_user: ansible
|
|
|
|
haproxy_private_key: "/home/ansible/.ssh/HaProxyPrivateKey"
|