You can't. The only way I can think about it so wrap packer in a script, use the file provisioner to download some information you want in the manifest, and use jq to write the data into the manifest json after packer finishes.
On Thu, Sep 27, 2018, 00:26 Ibrahim Buamod <[email protected]> wrote: > Let's say I installed a shell script and I need to return a value from the > script and put it in the manifest ?! How ? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/fc23eb3b-40ce-40ed-8eb1-da8699dde17e%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/fc23eb3b-40ce-40ed-8eb1-da8699dde17e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-a6C_%3DfdOZNXdbhNUQ8shdKOLuqcb%2BcXwAapO6NKcovw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
