Support unattended-upgrades rebooting the system based on logged in users

This commit is contained in:
Ryan Cavicchioni 2019-12-03 20:32:18 -06:00
parent 54a6e007b6
commit 962a6542be
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,8 @@ unattended_upgrades_mail: "{{ unattended_upgrades_mailto }}"
# Default: "now"
# unattended_upgrades_automatic_reboot_time: '02:00'
# unattended_upgrades_reboot_with_users: false
# Use apt bandwidth limit feature, this example limits the download
# speed to 70kb/sec
# unattended_upgrades_download_limit: 70

View File

@ -44,6 +44,9 @@ Unattended-Upgrade::Automatic-Reboot "{{ unattended_upgrades_automatic_reboot |
{% if unattended_upgrades_automatic_reboot_time is defined %}
Unattended-Upgrade::Automatic-Reboot-Time "{{ unattended_upgrades_automatic_reboot_time }}";
{% endif %}
{% if unattended_upgrades_reboot_with_users is defined %}
Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ unattended_upgrades_reboot_with_users | lower }}";
{% endif %}
{% if unattended_upgrades_download_limit is defined %}
Acquire::http::Dl-Limit "{{ unattended_upgrades_download_limit }}";
{% endif %}