cicdteam / terraform-hcloud-k3s

Kubernetes (k3s) Terraform installer for Hetzner Cloud
MIT License
76 stars 28 forks source link

Setup fails on a clean install #14

Open filviu opened 3 years ago

filviu commented 3 years ago

Hi,

I'm testing this provider and it fails during terraform init for me:

When running init I get:

$ terraform init
Initializing modules...

Initializing the backend...

Initializing provider plugins...
- Finding latest version of hetznercloud/hcloud...
- Finding latest version of hashicorp/hcloud...
- Finding latest version of hashicorp/local...
- Finding latest version of hashicorp/random...
- Finding latest version of hashicorp/template...
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (signed by HashiCorp)
- Installing hetznercloud/hcloud v1.27.2...
- Installed hetznercloud/hcloud v1.27.2 (signed by a HashiCorp partner, key ID 5219EACB3A77198B)
- Installing hashicorp/local v2.1.0...
- Installed hashicorp/local v2.1.0 (signed by HashiCorp)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/hcloud: provider registry registry.terraform.io does not have a provider named
│ registry.terraform.io/hashicorp/hcloud
│ 
│ Did you intend to use hetznercloud/hcloud? If so, you must specify that source address in each module which requires that provider. To see which modules are currently
│ depending on hashicorp/hcloud, run the following command:
│     terraform providers

Anything I'm missing ? thanks!

EDIT: I also ran terraform providers as instructed and I get this:

Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/hcloud]
└── module.cluster
    ├── provider[registry.terraform.io/hashicorp/template]
    ├── provider[registry.terraform.io/hetznercloud/hcloud]
    ├── provider[registry.terraform.io/hashicorp/local]
    ├── provider[registry.terraform.io/hashicorp/random]
    ├── module.kubeconfig
    │   ├── provider[registry.terraform.io/hashicorp/local]
    │   └── provider[registry.terraform.io/hashicorp/template]
    ├── module.master
    │   ├── provider[registry.terraform.io/hetznercloud/hcloud]
    │   └── provider[registry.terraform.io/hashicorp/template]
    └── module.node_group
        ├── provider[registry.terraform.io/hetznercloud/hcloud]
        └── provider[registry.terraform.io/hashicorp/template]
Scrumplex commented 3 years ago

You need to create a variables.tf like in the examples directory in the repository

enoy19 commented 2 years ago

@Scrumplex I think you meant versions.tf --> versions.tf

filviu commented 2 years ago

Thank you both, I knew it had to be something I'm missing.