ansible-galera-haproxy -- build an haproxy node that proxies a galera cluster
A 3-node setup using ansible-galera role (see ansible-galera role README)
None
None
Apache 2.0
Patrick "CaptTofu" Galbraith [email protected] [email protected]
-
Setup of ansible-galera-haproxy per README
-
ansible-galaxy install --force --roles-path=/where/ever/you/want/your/roles CaptTofu.ansible-galera-haproxy
-
Add three galera hosts to your ansible hosts file that already has the galera nodes (you'll need them in there.
[galera_cluster] host1 host2 host3
[haproxy] host4
-
Use it in your playbook:
- hosts:
- haproxy roles:
- CaptTofu.ansible-galera-haproxy
- hosts:
-
Run your playbook (this is for Docker)
ansible-playbook -i hosts -u root haproxy.yml