2020-02-29 14:42:29 +00:00
|
|
|
Unattended-Upgrade::Origins-Pattern {
|
2020-03-14 09:37:31 +00:00
|
|
|
"origin=Debian,codename=${node.metadata['os_release']},label=Debian";
|
|
|
|
"origin=Debian,codename=${node.metadata['os_release']},label=Debian-Security";
|
2020-02-29 14:42:29 +00:00
|
|
|
|
|
|
|
// External packages
|
|
|
|
% for item in sorted(data.get('origins')):
|
|
|
|
"origin=${item}";
|
|
|
|
% endfor
|
|
|
|
};
|
|
|
|
|
|
|
|
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
|
|
|
Unattended-Upgrade::MinimalSteps "true";
|
|
|
|
|
|
|
|
% 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";
|
|
|
|
|
|
|
|
% if data.get('reboot', False):
|
|
|
|
Unattended-Upgrade::Automatic-Reboot "true";
|
|
|
|
% else:
|
|
|
|
Unattended-Upgrade::Automatic-Reboot "false";
|
|
|
|
% endif
|