Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Provider "libvirt" not available for installation. #6

Closed
krishvoor opened this issue Jun 15, 2020 · 3 comments
Closed

Provider "libvirt" not available for installation. #6

krishvoor opened this issue Jun 15, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@krishvoor
Copy link
Contributor

Whilst performing terraform init -
Ran into this issue

Krishnas-MacBook-Pro:ocp4-upi-kvm harsha$ terraform init
Initializing modules...
Initializing the backend...
Initializing provider plugins...
- Checking for available provider plugins...
Provider "libvirt" not available for installation.
A provider named "libvirt" could not be found in the Terraform Registry.
This may result from mistyping the provider name, or the given provider may
be a third-party provider that cannot be installed automatically.
In the latter case, the plugin must be installed manually by locating and
downloading a suitable distribution package and placing the plugin's executable
file in the following directory:
    terraform.d/plugins/darwin_amd64
Terraform detects necessary plugins by inspecting the configuration and state.
To view the provider versions requested by each module, run
"terraform providers".
Error: no provider exists with the given name
Krishnas-MacBook-Pro:ocp4-upi-kvm harsha$ 

Which is based on my var.tfvars file https://gist.github.com/krishvoor/f3679d81ee45941de694abf2863c302c

@bpradipt bpradipt added the documentation Improvements or additions to documentation label Jun 15, 2020
@krishvoor
Copy link
Contributor Author

I could solve this via -

Krishnas-MacBook-Pro:~ harsha$ go version
go version go1.11.1 darwin/amd64
Krishnas-MacBook-Pro:~ harsha$ go get -u github.com/dmacvicar/terraform-provider-libvirt
Krishnas-MacBook-Pro:~ harsha$ cp $GOPATH/bin/terraform-provider-libvirt ~/.terraform.d/plugins/darwin_amd64/

Validating via terraform init

Krishnas-MacBook-Pro:ocp4-upi-kvm harsha$ terraform init
Initializing modules...

Initializing the backend...

Initializing provider plugins...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

* provider.ignition: version = "~> 1.2"
* provider.null: version = "~> 2.1"
* provider.random: version = "~> 2.2"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Krishnas-MacBook-Pro:ocp4-upi-kvm harsha$ 

@krishvoor
Copy link
Contributor Author

@bpradipt -- Please help review.

@krishvoor
Copy link
Contributor Author

New PR - #22

@bpradipt bpradipt closed this as completed Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants