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

Not compatible with Terraform 0.12.x #3

Open
dboune opened this issue Jun 20, 2019 · 3 comments
Open

Not compatible with Terraform 0.12.x #3

dboune opened this issue Jun 20, 2019 · 3 comments

Comments

@dboune
Copy link

dboune commented Jun 20, 2019

This provider plugin is not currently compatible with Terraform 0.12.x

The error is: Error: Failed to instantiate provider "salt" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]

I was able to update the version of terraform in go.mod and recompile. So far this appears to have been successful, the plugin loaded, and the salt_host resource is showing up in the terraform state.

I'd submit a PR but I am not a Go developer, and have no clue what I am doing, especially relating to how this project's dependencies are managed, or how a release would be handled.

The docs say glide is used, but I could see no hint of that in the repo, and so while there may have been an easier way, I installed the dependencies, and re-vendored them, using go's own tools alone.

@dboune
Copy link
Author

dboune commented Jun 20, 2019

Just a quick note for anyone else who might be stumbling around in the dark like me... While this can be made to work with some manual changes, the current version of SALT.ROSTER.TERRAFORM does not appear to support all tfstate formats. It may be that it just doesn't support the format used in 0.12.x.

@dboune
Copy link
Author

dboune commented Jun 21, 2019

For my relatively simple case, I ended up replacing this plugin with the following...

resource "local_file" "roster" {
  filename = "${path.root}/salt/config/roster"
  content = jsonencode({
    webserver = {
      host = aws_eip.name.public_ip
      user = "username"
      passwd = ""
      sudo = true
    }
  })
}

@cebe
Copy link

cebe commented Apr 19, 2023

As far as I see this is reported here saltstack/salt#60915 and fixed by saltstack/salt#61311

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