add apt bundle
This commit is contained in:
parent
e5539d508b
commit
ad7b164533
3 changed files with 96 additions and 0 deletions
27
bundles/apt/files/apt.conf-unattended-upgrades
Normal file
27
bundles/apt/files/apt.conf-unattended-upgrades
Normal file
|
@ -0,0 +1,27 @@
|
|||
Unattended-Upgrade::Origins-Pattern {
|
||||
"origin=Debian,codename=\$\{distro_codename\},label=Debian";
|
||||
"origin=Debian,codename=\$\{distro_codename\},label=Debian-Security";
|
||||
|
||||
// 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
|
Loading…
Add table
Add a link
Reference in a new issue