2020-02-29 14:42:29 +00:00
|
|
|
Unattended-Upgrade::Origins-Pattern {
|
2020-08-29 19:10:22 +00:00
|
|
|
"origin=Debian,codename=${os_release},label=Debian";
|
|
|
|
"origin=Debian,codename=${os_release},label=Debian-Security";
|
|
|
|
|
|
|
|
% if node_has_backports:
|
|
|
|
"a=${os_release}-backports,n=${os_release}-backports";
|
|
|
|
% endif
|
2020-02-29 14:42:29 +00:00
|
|
|
|
|
|
|
// External packages
|
2020-05-23 15:01:30 +00:00
|
|
|
% for item in sorted(data.get('origins', set())):
|
|
|
|
"${item}";
|
2020-02-29 14:42:29 +00:00
|
|
|
% endfor
|
|
|
|
};
|
|
|
|
|
|
|
|
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
2020-05-29 18:06:33 +00:00
|
|
|
Unattended-Upgrade::MinimalSteps "false";
|
2020-02-29 14:42:29 +00:00
|
|
|
|
|
|
|
% if data.get('mail', None):
|
|
|
|
Unattended-Upgrade::Mail "${data['mail']}";
|
|
|
|
Unattended-Upgrade::MailOnlyOnError "false";
|
|
|
|
% endif
|
|
|
|
|
|
|
|
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
|
|
|
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
|
|
|
|
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
|
|
|
|
2020-06-08 08:08:16 +00:00
|
|
|
% if data.get('reboot', True):
|
2020-02-29 14:42:29 +00:00
|
|
|
Unattended-Upgrade::Automatic-Reboot "true";
|
|
|
|
% else:
|
|
|
|
Unattended-Upgrade::Automatic-Reboot "false";
|
|
|
|
% endif
|