refactor 50unattended-upgrades default file

The syntax is valid from v0.70 on (Debian Wheezy, Ubuntu Oneiric
and later).
It includes Unattended-Upgrade::Origins-Patterns both for Debian
and Ubuntu, which even work on systems with both package sources
enables. On Debian- or Ubuntu-only systems it doesn't hurt to have
both Patterns included.
This commit is contained in:
varac 2012-12-16 10:35:59 +01:00
parent 28f7fa6bc2
commit 2fa22c2268

View file

@ -1,12 +1,19 @@
// this file is managed by puppet !
Unattended-Upgrade::Origins-Pattern {
"o=${distro_id},n=${distro_codename}";
"o=${distro_id},n=${distro_codename}-updates";
"o=${distro_id},n=${distro_codename}-proposed-updates";
"o=${distro_id},n=${distro_codename},l=Debian-security";
// Debian
"o=${distro_id},a=${distro_codename}";
"o=${distro_id},a=${distro_codename},l=Debian-security";
"o=${distro_id} Backports,a=${distro_codename}-backports";
// Ubuntu specific
"o=${distro_id},a=${distro_codename}-security";
"o=${distro_id},a=${distro_codename}-backports";
"o=${distro_id},a=${distro_codename}-proposed";
};
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade::Mail "root";
Unattended-Upgrade::MailOnlyOnError "true";