615 B
615 B
wimermedia-infrastructure
This deploys my wordpress/mysql site to digital ocean with terraform and ansible.
Requirements
- python
- pip
- DIGITALOCEAN_KEY environment variable
- CLOUDFLARE_KEY environment variable
Usage
Deployment script (is idempotent):
bash deploy.sh
Destroy script:
bash destroy.sh
How's it work?
- Deploys infrastructure and updates A record in cloudflare with Terraform.
- Configures infrastructure with pipenv and ansible. Ansible uses a dynamic inventory file that reads Terraform state and separates host groups based on tags in digital ocean.