{"type": "shell-local","command": "env vm_name={{user `vm_name`}} ./packer/scripts/do-something-with-name.sh",}
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/98cca778-50ff-448b-a662-6504fe4d5db2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Jan 26, 2018 17:57, "'Andreas Sommer' via Packer" <packe...@googlegroups.com> wrote:
--{"type": "shell-local","command": "env vm_name={{user `vm_name`}} ./packer/scripts/do-something-with-name.sh",}This won't work because it's not a user variable. Since I have several builders (different hypervisors to choose from), the name might differ between them. Is it possible somehow to pass the builder-specific vm_name value to a provisioner?Best,Andreas
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9c5336f2-1111-4683-9d70-ea4b72b222d3%40googlegroups.com.