I see that I can schedule tasks to run at a set interval. But I've not had any luck finding a way to set a task to run at a specific time. I added this into my crontab on my master:
0 20 * * * salt 'theta*' system.shutdown
It works, but feels like hanging a picture with a slege hammer. Is there a way to do something like:
schedule:
scheduled_task:
function: system.shutdown
time: 0 20 * * *
I used the crontab notation here, but that's just a stand in. The important thing is that I want to schedule various computers to shutdown at various times. But I currently only see a way run something after a certain amount of time. while the idea of shutting everyone's computer down at random times through the day is remarkably amusing, the result (everyone in my office complaining) is not so amusing. SO. that would be good.
Further it would be really nifty if it could be set to run over a range of time. for example, the library computers not only should be shutdown at the end of the day, but they should keep themselves off until morning to keep students from staying up all night.
Is there anything that can do these sorts of things?