Packer build based on command output

21 views
Skip to first unread message

Sean O'Reilly

unread,
Sep 29, 2017, 4:09:58 PM9/29/17
to Packer
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

Rickard von Essen

unread,
Oct 15, 2017, 1:05:34 AM10/15/17
to packe...@googlegroups.com
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.

 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/aea4f5d7-0d80-4397-b704-5dc5cb7f81d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages