To use ansible on the resources provisioned by Terraformer, ansible needs to know the ips of the provisioned resources. We will be leveraging the local provider. This will allow us to create the inventory file using the output of terraformer. Add the following block to end of outputs.tf This requires the template file inventory.tmpl which… Continue reading Automatic Creation of Inventory from Terraformer
Category: Terraform
Setting up Terraform to provision a DigitalOcean Droplet
By following the example repo, I managed to setup a simple example app by following Hashicorps guide. I am summarizing the steps I took here for reference. For a more concrete explanation, check out the example docs. Get a DigitalOcean Token from here Run export DIGITALOCEAN_ACCESS_TOKEN=<API TOKEN> in your local shell cd terraform Generate a… Continue reading Setting up Terraform to provision a DigitalOcean Droplet