ansible-galera -- build a galera cluser node
None
percona -- see main.yml in ./defaults
None
Apache 2.0
Patrick "CaptTofu" Galbraith patg@patg.net
Very simple.
-
ansible-galaxy install --force --roles-path=/where/ever/you/want/your/roles CaptTofu.galera
-
Add three galera hosts to your ansible hosts file
[galera_cluster] host1 host2 host3
-
Use it in your playbook:
- hosts:
- galera_cluster roles:
- CaptTofu.ansible-galera
- hosts:
-
Run your playbook (this is for Docker)
ansible-playbook -i hosts -u root cluster.yml
See:
-
http://github.com/CaptTofu/ansible-galera-haproxy.git - the role for setting up the haproxy setup that would utilize this cluster
-
http://github.com/CaptTofu/docker-galera.git - scripts for building the hosts file and launching/deleting containers used in testing this
-
http://github.com/CaptTofu/cluster-install.git - the top-level playbook that uses both the ansible-galera and ansible-galera-haproxy roles refered to here