Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtopjian/terraform-provisioner-makefile

A Makefile / make provisioner for Terraform
https://github.com/jtopjian/terraform-provisioner-makefile

Last synced: 4 days ago
JSON representation

A Makefile / make provisioner for Terraform

Awesome Lists containing this project

README

        

# terraform-provisioner-makefile

A Makefile / makefile provisioner for Terraform

## Usage

```hcl
provisioner "makefile" {
directory = "~/infrastructure"
target = "provision"
variables {
HOSTNAME = "${openstack_compute_instance_v2.scratch.name}"
}
}
```

## Attributes

* `directory`: Change to this directory and run `makefile`.
* `target`: The Makefile target / task.
* `variables`: A list of key/value pairs that will be passed in as variables to the Makefile

## Installation

1. Grab the latest release from the [releases](https://github.com/jtopjian/terraform-provisioner-makefile/releases) page.
2. Copy the binary to the same location as the other Terraform executables.

## Building

```shell
$ go get github.com/jtopjian/terraform-provisioner-makefile
$ cd $GOPATH/src/github.com/jtopjian/terraform-provisioner-makefile
$ go build -v -o ~/path/to/terraform/terraform-provisioner-makefile .
```