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

unknown configuration key: "ssh_disable_agent" #31

Open
mcandre opened this issue Oct 15, 2017 · 0 comments
Open

unknown configuration key: "ssh_disable_agent" #31

mcandre opened this issue Oct 15, 2017 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Oct 15, 2017

When I try to generate a Vagrant box for FreeBSD 11.0-20170510-zfs, packer complains of an unknown configuration key: "ssh_disable_agent". Trace:

$ make 11.0-20170510-zfs 
exec /Applications/Xcode.app/Contents/Developer/usr/bin/make _build PROVIDER=vmware-iso EXTRA_OPTS="" TEMPLATE=11.0-amd64-20170510-zfs.json
`go env GOPATH`/bin/packer build -only=vmware-iso -var boot_wait=35s  11.0-amd64-20170510-zfs.json
vmware-iso output will be in this color.

1 error(s) occurred:

* unknown configuration key: "ssh_disable_agent"
make[1]: *** [_build] Error 1
make: *** [11.0-20170510-zfs] Error 2

Based on hashicorp/packer#3261 , I think that the packer configuration has unfortunately introduced a breaking change, so any projects that want to target the latest version of packer need to use ssh_private_key_file instead.

As a workaround, one can specify an earlier version of packer for installation. For example:

$ cd $GOPATH/src/github.com/hashicorp/packer
$ git checkout -b v1.0.4 v1.0.4
$ go install
$ packer -v
1.0.4
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