-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add option to restart node after chef-client update. #71
Comments
@timbrown5 Can you elaborate on the need to reboot the node after the chef client is updated. I haven't heard of anyone rebooting nodes post chef upgrade and that's something I've never done in the environments I managed. |
We use chef in a test environment to manage our test clients and make sure that they have the correct version of our tools installed before we run a test. Adding a "reboot" option to post_install_action will allow us to integrate this into our current system as instead of leaving the VM on and not connection to CI - which then requires manual intervention to reboot. It will also allow you to keep the current behaviour of not allowing 'exec' option on Windows. |
I have added the option here: Note: I tried using reboot resource to schedule the reboot, but this didn't work for me (as it tried to use the new install, which isn't configured for our environment yet). |
Since this functionality is not required by the updater, wouldn't you be able to accomplish this by notifying the reboot resource? |
It's tricky since the update resource never actually finishes. It does the kill or the exec mid run. |
Fixture is done in #78 . Closing the issue. Thanks!! |
We use chef to manage a lot of VMs and we have a scheduled task that runs chef-client on boot - and reboots is there are any installs/updates that might not have completed yet. At the moment this recipe leaves the VMs on, but not doing anything, after the chef-client is updated, which require manual intervention. As such it would be really useful if this recipe would allow us to reboot the target after the chef-client has been updated, so that the run may then continue after a reboot.
Note: We use Windows and Linux (Windows doesn't currently support 'exec', it forces 'kill', with seemingly no workaround - which BTW is REALLY annoying behavior!).
The text was updated successfully, but these errors were encountered: