How to publish some parameters from a provisioned shell into the manifest

14 views
Skip to first unread message

Ibrahim Buamod

unread,
Sep 26, 2018, 6:26:38 PM9/26/18
to Packer
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 ?

Rickard von Essen

unread,
Sep 27, 2018, 12:24:44 AM9/27/18
to packe...@googlegroups.com
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 <ibrahim.t...@gmail.com> 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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/fc23eb3b-40ce-40ed-8eb1-da8699dde17e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ibrahim Buamod

unread,
Sep 27, 2018, 12:51:58 AM9/27/18
to packe...@googlegroups.com
Thanks sounds like a plan 

Reply all
Reply to author
Forward
0 new messages