Haven't done that my self. One way of accomplice this is to use as a file
provisioner to download a status file and wrap packer with a script that
determines if the build was failed or aborted due to no updates.



On 29 September 2017 at 22:09, 'Sean O'Reilly' via Packer <
[email protected]> wrote:

> Hi
>
> I want to configure packer to build an AMI based on the output of yum
> list-security.
>
> The idea is to spin up a base image and run yum list-security. If there
> are security updates available it will install the updates and create a new
> AMI. If not it will just fail (preferably gracefully)
>
> Has anyone done anything like this before that could give me a few
> pointers.
>
> Cheers
>
> Sean
>
> --
> 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/aea4f5d7-0d80-4397-b704-5dc5cb7f81d1%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/aea4f5d7-0d80-4397-b704-5dc5cb7f81d1%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_SeyMj59frDmpnRN3p0EZqS%2Bm226bPnMwTh1hg0k_13w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to