Packer: Environment variable injection fails on FreeBSD

Created on 5 Feb 2018  ยท  3Comments  ยท  Source: hashicorp/packer

2018/02/05 22:13:38 ui: digitalocean: PACKER_BUILDER_TYPE=digitalocean: Command not found.

If lines 368-373 are commented out in provisioner/shell/provisioner.go then it completes successfully. [1]

[1] https://gist.github.com/jesse-c/0ea1f9a289d7ec42e2c9d34e61861344#file-debug-log_no-createflattenedenvvars

provisioneshell question

All 3 comments

give this a shot and see if it works: https://www.packer.io/docs/provisioners/shell.html#freebsd-example

That worked! Sorry for missing the obvious documentation. I did have an exec_command in my actual template, but not the right one.

Thanks for triaging this so quickly.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings