From 1c59adb761351d949971e324d7c274b6f8cc6b3d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 22 Jan 2018 01:10:36 +0100 Subject: [PATCH] Implement new options from upstream package Signed-off-by: Knut Ahlers --- defaults/main.yml | 3 +++ templates/50unattended-upgrades | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 6c3d656..86d8571 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -14,4 +14,7 @@ unattended_mail: "mail@example.com" unattended_mail_only_on_error: false unattended_minimal_steps: false unattended_reboot_time: "now" +unattended_reboot_with_users: true unattended_remove_unused_dependencies: false +unattended_syslog_enable: false +unattended_syslog_facility: "daemon" diff --git a/templates/50unattended-upgrades b/templates/50unattended-upgrades index 9bf287d..66913d8 100644 --- a/templates/50unattended-upgrades +++ b/templates/50unattended-upgrades @@ -47,7 +47,16 @@ Unattended-Upgrade::Remove-Unused-Dependencies "{{ unattended_remove_unused_depe // if the file /var/run/reboot-required is found after the upgrade Unattended-Upgrade::Automatic-Reboot "{{ unattended_automatic_reboot | to_json }}"; +// Automatically reboot even if there are users currently logged in. +Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ unattended_reboot_with_users | to_json }}"; + // If automatic reboot is enabled and needed, reboot at the specific // time instead of immediately // Default: "now" Unattended-Upgrade::Automatic-Reboot-Time "{{ unattended_reboot_time }}"; + +// Enable logging to syslog. Default is False +Unattended-Upgrade::SyslogEnable "{{ unattended_syslog_enable | to_json }}"; + +// Specify syslog facility. Default is daemon +Unattended-Upgrade::SyslogFacility "{{ unattended_syslog_facility }}";