-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config: add reboot_window
for datetime constrained reboots
#13
Comments
Should the |
TZ topic gets tricky quickly (countries changing the TZ they are in, TZ being redefined through the year, daylight-saving being a different TZ label, daylight switching). And I think locksmith was pretty much unaware of all of that (but I'd need to double check). I don't have a good solution here. Perhaps one of these two approaches could work:
Sidenote, if the environment is properly configured for UTC, option 2 could be seen a more complex/rich way to achieve option 1. |
Maybe default to UTC and have a flag for using local time? |
For reference, this is the set of configuration knobs we added to Zincati: https://coreos.github.io/zincati/usage/updates-strategy/#periodic-strategy |
Airlock needs to have additional knobs to configure a "maintenance window" for reboots. Those needs to added both for the default group, and for specific custom groups.
A reboot window works in conjunction (logical AND) with existing counting-semaphore logic.
Entries to be added to the
lock
section:default_reboot_window_days
: a set of short-day-names (like date %a, i.e. [ "Mon", "Wed" ])default_reboot_window_start
: start time, in 24h format (i.e. 23:45)default_reboot_window_duration
: length, in minutesEntries to be added for each
lock.groups
section (these override defaults, if set):reboot_window_days
reboot_window_start
reboot_window_duration
Note: this relies on the system clock of the environment where an airlock process is running.
The text was updated successfully, but these errors were encountered: