paybyphone / terraform-provider-phpipam

Terraform provider plugin for PHPIPAM (https://phpipam.net/)
Other
13 stars 24 forks source link

Can't install phpipam #15

Closed raffus closed 4 years ago

raffus commented 4 years ago

Hi there,

I'm trying to install terraform-provider-phpipam into my home's plugin directory (~/.terraform.d/plugins) and for some reason terraform can't find phpipam.

Initializing provider plugins...
- Using previously-installed hashicorp/vsphere v1.24.0
- Finding latest version of local/plugins/phpipam...

Error: Failed to install provider

Error while installing hashicorp/phpipam: provider registry
registry.terraform.io does not have a provider named
registry.terraform.io/hashicorp/phpipam

And this is my plugins directory:

# ls -la ~/.terraform.d/plugins/
total 16
drwxr-xr-x 4 root root 4096 Sep  9 19:11 .
drwxr-xr-x 3 root root 4096 Sep  9 19:14 ..
drwxr-xr-x 2 root root 4096 Sep  9 19:15 phpipam
drwxr-xr-x 3 root root 4096 Sep  9 19:16 providers

While trying to get terraform to identify the plugin, I've cloned the phpipam folder into the providers folder as well:

# ls -la ~/.terraform.d/plugins/providers/
total 12
drwxr-xr-x 3 root root 4096 Sep  9 19:16 .
drwxr-xr-x 4 root root 4096 Sep  9 19:11 ..
drwxr-xr-x 2 root root 4096 Sep  9 19:16 phpipam

Do I need to specify the plugin's source anywhere else?

Thanks.

raffus commented 4 years ago

This is a very similar problem to this thread https://github.com/hashicorp/terraform/issues/25218

I've found the solution and reported it here: https://github.com/lord-kyron/terraform-provider-phpipam/issues/24