Re: [packer] Is it possible to pass output from one post-processor to another?

2016-10-11 Thread Alvaro Miranda Aguilera
Hello

On the github code there is a new post-processor called manifest:
https://github.com/mitchellh/packer/blob/d310de8cf5871354bd1d12996a87020803d373ea/website/source/docs/post-processors/manifest.html.md

is not yet on the build I think, so you should try to build from the source
with make dev

that will create a json file that you could parse with the script.

Alvaro.

On Tue, Oct 11, 2016 at 10:21 PM, Evans Tucker 
wrote:

> For example, would it be possible to pass the AMI ID that's created by an
> amazon-import post-processor to local shell post-processor? Something like
> this:
>
>
> { "post-processors":
>   [
> {
>   "type": "amazon-import",
>   ...
> },
> {
>   "type": "shell-local",
>   "inline": ["myscript.sh {{.ami_id}}"]
> }
>   ]
> }
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/3da7ec33-8d8c-45eb-8161-f60d79a7e74a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ewemzPUFJyV_nQp0kPas7rg_bqP_cp2LY1z%2B8nTjSu9Ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[packer] Is it possible to pass output from one post-processor to another?

2016-10-11 Thread Evans Tucker
For example, would it be possible to pass the AMI ID that's created by an 
amazon-import post-processor to local shell post-processor? Something like 
this:


{ "post-processors":
  [
{
  "type": "amazon-import",
  ...
},
{
  "type": "shell-local",
  "inline": ["myscript.sh {{.ami_id}}"]
} 
  ]
}

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/3da7ec33-8d8c-45eb-8161-f60d79a7e74a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.