Creates a Consul + Vault cluster, built with Terraform and configured with Ansible
Terraform
- Uses a set of modules to build a cluster
- Creates an Auto Scaling Group
- Creates all Security Groups needed
- Creates an IAM policy that associates to each node
Ansible:
- Installs and configures Consul
- Installs and configures Vault
- Configures vault with TLS
- Includes a couple of scripts to create a structure for secrets
Add the list of IPs as consul_members for consul startup.
---
- hosts: all
become: true
roles:
- { role: vault, mode: cluster, consul_members: [] }
ansible-playbook -i hosts playbook.yml