I am looking to include a step in an existing process for a project that currently does automated patching for our various systems. The problem that I’m facing is that sometimes after installing updates, the server needs to reboot.
After rebooting, there can be additional updates available which would require another install and reboot, and so on. The current solution is to have many copies of the same check for updates and reboot script in the process so that there is enough to be sure that all updates are installed, but this solution looks cluttered and I would like a cleaner solution.
The obvious answer would be a loop that calls this script until no updates are left to install, but from my knowledge Octopus does not support loops within the process. I also though of using a loop within the powershell script but it doesn’t work because the script will exit the loop once the target machine restarts. As such, I was hoping someone could lend insight into what the best way to achieve my goals is.