Skip to content

Commit

Permalink
Merge pull request #19 from symgryph/patch-1
Browse files Browse the repository at this point in the history
Documents for copying the provider so it works
  • Loading branch information
ggongaware committed Oct 10, 2018
2 parents 860c150 + a07b9bd commit 3f91d2f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/terraforminit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# How to get terraform to recognize third party provider

The default installation of terraform has no way of finding custom third party providers. This document shows you how to locate providers so that `terraform init` can find them and copy them to your working terraform directory when creating a new project.

## Locate the provider binaries

Assuming you have followed other directions the deafult locations for these binaries (on a mac at least) are as follows:

```bash
which terraform-provider-proxmox
~/go-workspace/bin/terraform-provider-proxmox
which terraform-provisioner-proxmox
~/go-workspace/bin/terraform-provisioner-proxmox
```

## Copy provider binaries

You need to copy these binaries to the ~/.terraform.d directory which will also need to have a plugins directory created:

```shell
cd ~/.terraform.d
mkdir plugins
cd plugins
cp ~/go-workspace/bin/terraform-provider-proxmox .
cp ~/go-workspace/bin/terraform-provisioner-proxmox .
```
Once this is done, simply create a new terraform directory and do usual terraforming (terraform init etc)

0 comments on commit 3f91d2f

Please sign in to comment.