Create Minio cluster easly with Terraform and Ansible
- Minio cluster: https://min.io/docs/minio/linux/operations/install-deploy-manage/deploy-minio-multi-node-multi-drive.html
- Nginx config: https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html
- Terraform
- Ansible
- Clone this repository.
- Create a file called
terraform.tfvars
and fill it with your data:
cd terraform
cp terraform.tfvars.example terraform.tfvars
- Run terraform init to initialize terraform.
terraform init
- Run terraform plan to plan the infrastructure.
terraform plan
- Run terraform apply to create the infrastructure.
terraform apply
- Run ansible-playbook to install Minio, Keepalived and Haproxy or Nginx on the servers.
cd ansible/cluster
cp inventory-example.yaml inventory.yaml
Edit that yaml file with your data
- Run ansible-playbook to install Minio and Nginx on the servers.
ansible-playbook -i inventory.yaml playbooks/install.yml
- Run terraform destroy to destroy the infrastructure.
cd terraform
terraform destroy
- Run ansible-playbook to uninstall installed apps and configs from the servers.
cd ansible/cluster
ansible-playbook -i inventory.yaml playbooks/reset.yml