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 is failing #12

Open
abhiniveshjain opened this issue Sep 12, 2019 · 0 comments
Open

Terraform init is failing #12

abhiniveshjain opened this issue Sep 12, 2019 · 0 comments

Comments

@abhiniveshjain
Copy link

Getting below error.

[root@localhost cluster]# terraform init
Initializing modules...
Initializing the backend...
Initializing provider plugins...

  • Checking for available provider plugins...
    Provider "matchbox" not available for installation.
    A provider named "matchbox" 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/linux_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

Detailed analysis of this issue is present in attachment.

terrform for matchbox provider error.txt

As a workaround, I tried following and it worked. Please see if any changes are required in prep_host_bm.sh

Yum install wget

VERSION=v0.3.0

wget https://github.com/poseidon/terraform-provider-
matchbox/releases/download/$VERSION/terraform-provider-matchbox-$VERSION-linux-amd64.tar.gz

tar xvf terraform-provider-matchbox-v0.3.0-linux-amd64.tar.gz

cd terraform-provider-matchbox-v0.3.0-linux-amd64/

mv terraform-provider-matchbox ~/.terraform.d/plugins/

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

1 participant