This repository hosts Ansible playbooks for deploying a Galera Cluster with failover in k8s .
- Infra provisioned through IAC: Deployed infrastructure using terraform multi cloud iac (as it contains a module to automatically update inventory for ansible scripts given that ansible repo and terraform repo are in the same directories).
- Ansible Controller Scripts: Run the setupiptables.yml and acceptfingerprint.yml from ansible_controller_setup repository . Link in Additional Resources .
- Software Requirements: Ensure Ansible cli is installed.
To get started with deploying your Galera Cluster using Ansible, follow these steps:
git clone https://github.com/Moody-san/ansible-galeracluster-deployment.git
cd ansible-galeracluster-deployment/playbooks
ansible-playbook deploycluster.yml -i ../inventory/inventory
ansible-playbook addhealthscript.yml -i ../inventory/inventory
- K8s Cluster Setup: For setting up a K8s Cluster , visit ansible-galeracluster-deployment.
- CI/CD and Automation: For CI/CD and other automation scripts, refer to ansible-controller-setup.