Schedule Maintenance with a script
-
Is there a way to schedule maintenance on a node from a script (or another automated way to schedule maintenance)?
I want to automate putting the node into maintenance when a process has finished and closed, reboot the node, and then come out of maintenance an hour later. I can do everything I want except get the node out of maintenance.
Thank you
Gary
-
The only option I see is to set custom attributes with maintenance entrance time on EnterMaintenance($node) function execution. Create a script that will go through all nodes every minute and will check the custom attribute with maintenance start and will initiate maintenance leave in case if the note is in maintenance more than an hour.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login