-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sets unattended-upgrades reboot time to daily_reboot_time
Revision, based on discussion. It turns out that setting reboot time to "now" causes reboots even during download-only stages, which isn't the behavior we want. Let's stagger the actions: * apt-get update * apt-get upgrade * reboot all approximately 1h apart (with 20m random delay on the apt-get actions). This reverts commit bddeb5e.
- Loading branch information
Conor Schaefer
committed
Mar 9, 2021
1 parent
b349d71
commit 74fadb8
Showing
5 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
install_files/ansible-base/roles/common/templates/80securedrop.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
install_files/ansible-base/roles/common/templates/apt-daily-timer-override.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[Timer] | ||
OnCalendar= | ||
OnCalendar=*-*-* {{ (daily_reboot_time|int - 1) % 24 }}:00 | ||
OnCalendar=*-*-* {{ daily_update_time }}:00 | ||
RandomizedDelaySec=20m | ||
Persistent=true |
2 changes: 1 addition & 1 deletion
2
install_files/ansible-base/roles/common/templates/apt-daily-upgrade-timer-override.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[Timer] | ||
OnCalendar= | ||
OnCalendar=*-*-* {{ daily_reboot_time }}:00 | ||
OnCalendar=*-*-* {{ daily_upgrade_time }}:00 | ||
RandomizedDelaySec=20m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters