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

packer-provisioner-serverspec doesn't work on packer 1.7+ #16

Open
sue445 opened this issue Feb 10, 2023 · 0 comments
Open

packer-provisioner-serverspec doesn't work on packer 1.7+ #16

sue445 opened this issue Feb 10, 2023 · 0 comments

Comments

@sue445
Copy link

sue445 commented Feb 10, 2023

I want to use packer-provisioner-serverspec, but I noticed that this doesn't work with the latest packer 😢

Overview

  • packer v1.8.5
  • packer-provisioner-serverspec v0.2.1

Config

# build.pkr.hcl
build {
  provisioner "serverspec" {
    rake_file = "Rakefile"
    rake_task = "serverspec"
    user      = "ubuntu"
  }
}

Error message

$ packer build -debug build.pkr.hcl
Error: failed loading serverspec
  on build.pkr.hcl line 51:
  (source code not available)
The protocol of this plugin (protocol version 4 and lower) was deprecated,
please use a newer version of this plugin.Or use an older version of Packer (pre
1.7) with this plugin.

Workaround

I solved this by downgrading packer to 1.6.6

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