I have a number of servers that I want to perform the same jobs on, one server per day, once the final server has been acted upon the script should return to server1 and start over again.
The jobs are a series of scripts, doing different things, throughout the day.
My idea is to use cron to schedule the day's activities on server1. I'll use a script to setup the crontab for the day, and on the next day it'll clear the crontab and set up the jobs for server2. This 'scheduler' script will itself run daily via cron.
One bit I'm struggling with is how to persistently store which server is today (or which is tomorrow) then loop back to server1 when server9 is done. For persistence I reckon I'll need to store the state in a file but I don't know how to structure the file to achieve what I need.
Any advice?