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

2018-09-26 Thread Ibrahim Buamod
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 r

Re: [packer] How to publish some parameters from a provisioned shell into the manifest

2018-09-26 Thread Rickard von Essen
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 wrote: > Let's say I inst

Re: [packer] How to publish some parameters from a provisioned shell into the manifest

2018-09-26 Thread Ibrahim Buamod
Thanks sounds like a plan On Thu, Sep 27, 2018, 12:24 AM Rickard von Essen, < rickard.von.es...@gmail.com> wrote: > 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