Initial skeleton of setup. Ansible only runs a few initial tasks.

This commit is contained in:
2018-07-06 09:10:03 -04:00
parent 52622c83c9
commit 37f59db7b3
19 changed files with 505 additions and 0 deletions

View File

@@ -1,2 +1,23 @@
# wimermedia-infrastructure
This deploys my wordpress/mysql site to digital ocean with terraform and ansible.
## Requirements
1. python
2. pip
3. DIGITALOCEAN_KEY environment variable
4. CLOUDFLARE_KEY environment variable
## Usage
Deployment script (is idempotent):
```shell
bash deploy.sh
```
Destroy script:
```shell
bash destroy.sh
```
## How's it work?
1. Deploys infrastructure and updates A record in cloudflare with Terraform.
2. 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.