can i patch ubuntu in cloud-init script

8 views
Skip to first unread message

tdub...@gmail.com

unread,
Sep 20, 2021, 11:55:43 AMSep 20
to Packer
Can i patch ubuntu during a packer build in the cloud-init script?

Alvaro Miranda Aguilera

unread,
Sep 21, 2021, 5:29:52 AMSep 21
to packe...@googlegroups.com
yes you can

packer can handle reboots too

cloud-init will be fire and forget, so you can have a script that checks for for file mark

ie

cloud-init creates a file:

/var/tmp/completed

and a script wait for that file to exists.

I personally would patch from a shell script, to control the reboot and wait, but cloud-init should work too


On Mon, Sep 20, 2021 at 5:55 PM tdub...@gmail.com <tdub...@gmail.com> wrote:
Can i patch ubuntu during a packer build in the cloud-init script?

--
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/hashicorp/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/45a53725-13a6-4392-98d2-06a0f8fe06acn%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages