-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a reboot resource is used in a chef provisioner packer fails #6346
Comments
Similar hashicorp/terraform#19155 |
@tas50 did you ever find a workaround for this issue? |
String together Chef resources with a packer reboot resource in between. It’s clunky but it works |
hi, I'm facing the same issue. Could someone provide a solution? I'm using Packer, AWS and Windows. |
For anyone who is dealing with this issue, instead of having reboot in chef recipes, you will do reboot in Packer, and logically separate the recipes so that you can add reboot in the middle. Say you have a recipe that removed Windows Defender and after it we need to reboot then continue on the next recipe "default". This is how you can do it in your Packer json file under provisioners (sorry for formatting, it won't let me format well): "provisioners": [ |
This issue has been automatically migrated to hashicorp/packer-plugin-chef#13 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-chef#13. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Chef includes a
reboot
resource which allows rebooting a system (imagine that). When the reboot resource runs it exits the Chef client with an exit code of 35. This code is considered a non-fatal code in Chef, but packer is picking that up as a failure and fails the whole build.The text was updated successfully, but these errors were encountered: