From a07b9bd3187512d8017310c33e33950b21f016b7 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 10 Oct 2018 14:12:10 -0400 Subject: [PATCH] Documents for copying the provider so it works Just a quick document to help people setup the provider if terraform doesn't find it. --- docs/terraforminit.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/terraforminit.md diff --git a/docs/terraforminit.md b/docs/terraforminit.md new file mode 100644 index 0000000..5c89d0a --- /dev/null +++ b/docs/terraforminit.md @@ -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)