Automate Patching/Rolling Reboot
For anyone who does patching, you know this can be ultra-tedious, especially if you have large numbers of servers. However, I have put together a script that will roll through a list of CentOS/RHEL/Fedora servers, patch them, reboot them, and run a command or two once they’re back up (if you need to).
- You’re using CentOS/RHEL/Fedora
- You are using root to connect from the server this is running on to connect to root on the target servers
- You have ssh pub/priv keys set up between said accounts
If you’re worried about someone hacking into your environment, escalating privileges, and pivoting from the server running this script, it’s definitely not the one for you. I totally get that.
But if you’re sick of having to do it all manually, you can either move to AWS and adopt a “cattle” mentality, or you can use this script. 🙂
Here you are: Patching Script