Chef-Solo, Packer,& Windows - Oh My!

23 views
Skip to first unread message

Benjamin Mitchell

unread,
Dec 20, 2017, 12:55:51 AM12/20/17
to Packer
I'm using Packer (v1.1.3) to build out some Windows Golden AMIs for my company using chef-solo provisioner. I'm struggling with the 2012r2 build not handling the reboot inside the Chef Recipe gracefully. Seems like there is no way for me to inform packer to expect a reboot (or specific exit code) inside of chef-solo. Am I just missing this or is this really not possible? The reboot is handled via Chef Kitchen as part of the Jenkins build for 'testing' the recipes before moving to Packer for the final build (so I can't easily remove the reboot from the chef recipe). Any insight on how to get around what should be a simple issue would be greatly appreciated.


Regards,
Ben the Builder
Reply all
Reply to author
Forward
0 new messages