Skip to content

Commit

Permalink
Sets unattended-upgrades reboot time to "now"
Browse files Browse the repository at this point in the history
"Now" was the default value, we previously set it to the
'daily_reboot_time' to provide some predictability around reboots, but
that came at the cost of separating the package updates from the reboot
logic. Ideally, we'll have as narrow gap as possible between:

  * apt update
  * apt upgrade
  * reboot

and these changes implement that.
  • Loading branch information
Conor Schaefer committed Mar 9, 2021
1 parent 34fdc7a commit bddeb5e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{% if ansible_distribution_release == "focal" %}
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "{{ daily_reboot_time }}:00";
// Reboot should happen after nightly upgrades. Timing of upgrade
// is configured via apt.daily.timer
Unattended-Upgrade::Automatic-Reboot-Time "now";
{% endif %}
// Don't install packages from "Recommends" field, we'll manage dependencies
// explicitly to avoid pulling in packages from e.g. universe.
Expand Down

0 comments on commit bddeb5e

Please sign in to comment.