jonmorehouse / terraform-provisioner-ansible

A provisioner for bootstrapping terraform resources with ansible
524 stars 68 forks source link

terraform-provisioner-ansible: scaffolding #1

Closed jonmorehouse closed 8 years ago

jonmorehouse commented 8 years ago

This PR introduces some basic scaffolding and a first pass approach at provisioning terraform resources with ansible.

At a high level, this provisioner will accept apply a list of plays to a new terraform resource. Once local_ansible.py has been created, this provisioner will clone that script, install any dependencies to run it and will then transfer the ansible module path and playbook to the resource before running that script.

Ansible will only be run on resources when they are first provisioned and as such this provisioner doesn't have any considerations for an ansible inventory file or anything such as that. One of the design goals here is that the local terraform environment doesn't have to know about ansible and doesn't actually run ansible. This leverages the built in communication functionality that terraform exposes via the plugin interface and does everything via remote commands.

Here's what this PR introduces:

jonmorehouse commented 8 years ago

First pass working! Lot's more to do though :)