Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform init fails to find provider from hashicorp/proxmox #2

Open
linucksrox opened this issue Aug 17, 2021 · 1 comment
Open

terraform init fails to find provider from hashicorp/proxmox #2

linucksrox opened this issue Aug 17, 2021 · 1 comment

Comments

@linucksrox
Copy link

I fully acknowledge this may be entirely my fault. That being said, when running terraform init I'm getting this error: "Error: Failed to query available provider packages" and it's attempting to find hashicorp/proxmox on Terraform's registry. I have specifically defined telmate/proxmox as a required providers source, and it actually does download and install that from the registry. But it also fails because it's failing to find hashicorp/proxmox in addition. It says run terraform providers to find out which module is requiring this provider, which tells me:

Providers required by configuration:
.
├── provider[registry.terraform.io/telmate/proxmox]
└── module.k3s-cluster
    └── provider[registry.terraform.io/hashicorp/proxmox]

If I'm reading that correctly, it's the k3s-cluster module that is causing Terraform to search in the wrong place, however I can't figure out where this is defined or how to override it.

I'm running Terraform 1.0.4 with the latest proxmox provider 2.7.4.

Would you be so kind as to point me in the right direction?

@SupremeLordCommander
Copy link

SupremeLordCommander commented Nov 17, 2021

I had the same issue but haven't gone back to make the appropriate adjustment.

Terraform needs the following code to fix the provider issue.

terraform { required_providers { proxmox = { source = "telmate/proxmox" version = "~> 2.9" } } }

I had to add it to the main.tf anywhere Proxmox was needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants