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 0.13 Support for ESXi 6.x #511

Closed
scaery opened this issue Aug 19, 2020 · 2 comments
Closed

Terraform 0.13 Support for ESXi 6.x #511

scaery opened this issue Aug 19, 2020 · 2 comments

Comments

@scaery
Copy link

@scaery scaery commented Aug 19, 2020

The plugin "https://github.com/josenk/terraform-provider-esxi" v1.7.1 is now official listed and supported by terraform 0.13 registry provider.

But to get it to work you either have to do some code modifications, especially on ESXi 6.5

  1. Add to the top of ESXi/main.tf:
terraform {
  required_version = ">= 0.13"
}
  1. Add new file to ESXi/versions.tf
terraform {
  required_version = ">= 0.13"
  required_providers {
    esxi = {
      source = "registry.terraform.io/josenk/esxi"
      #
      # For more information, see the provider source documentation:
      #
      # https://github.com/josenk/terraform-provider-esxi
      # https://registry.terraform.io/providers/josenk/esxi
      #
    }
  }
}

Then start working with terraform init && terraform apply and proceed with the other steps.

@scaery scaery changed the title Terraform 0.13 Support for ESXi 6.5/6.7 Terraform 0.13 Support for ESXi 6.5 Aug 19, 2020
@scaery scaery changed the title Terraform 0.13 Support for ESXi 6.5 Terraform 0.13 Support for ESXi 6.x Aug 19, 2020
@clong
Copy link
Owner

@clong clong commented Aug 20, 2020

I think that this is something I might eventually do, but I don't want to make TF0.13 a hard requirement just yet, which is what setting the required_version option would do. I think it's a bit too new for me to feel comfortable forcing people to upgrade.

I'll leave this issue open so that people have a reference of how to deploy using v0.13

@clong
Copy link
Owner

@clong clong commented Nov 6, 2020

TF 0.13 is supported as documented here: https://clo.ng/blog/detectionlab-on-esxi/

I still don't want to force it by setting a required version, though. The plugin will be installed automatically during terraform init thanks to this PR: #540

@clong clong closed this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.