Provision a production ready Galera cluster using Terraform and Ansible. This project is built to be compatible with ELASTX public OpenStack cloud. Some key features include:
- Ubuntu 20.04 LTS
- Can be deployed as single node or odd numbered multi node cluster
- High availability
- Encrypted DB volume and optional encrypted root disk
- Configurable security group rules for locking down access
- Backup scripts provided to be scheduled using cron
Clone this repository for each cluster you want to make. Deploying Galera using this repository is a 2 stage rocket.
- Deploy infrastructure using Terraform
- Install and configure DB using Ansible
Please refer to the Terraform and Ansible readme for more in depth documentation.
Down follow some example commands to get you started.
- Modify
sg_ingress_rules
interraform/variables.tf
to add SSH ingress. pushd terraform; make; popd
pushd ansible; ansible-playbook -u ubuntu -i ../terraform/terraform.py create-cluster.yml; popd