diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-05 16:31:38 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-05 16:31:38 -0200 |
commit | 1bf9d1addc805e8512cd14e6ef25e7bcd6137b03 (patch) | |
tree | 5d41e3b0fabe7cb2fad416a183f69ab9b9298c30 /files | |
parent | becd5bb65d22d2925ae3d6656d4a8a2b3eb5ba13 (diff) | |
download | puppet-apt-1bf9d1addc805e8512cd14e6ef25e7bcd6137b03.tar.gz puppet-apt-1bf9d1addc805e8512cd14e6ef25e7bcd6137b03.tar.bz2 |
Adding unnatended-upgrades config for lucid
Diffstat (limited to 'files')
-rw-r--r-- | files/lucid/50unattended-upgrades | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/files/lucid/50unattended-upgrades b/files/lucid/50unattended-upgrades new file mode 100644 index 0000000..8478073 --- /dev/null +++ b/files/lucid/50unattended-upgrades @@ -0,0 +1,36 @@ +// this file is managed by puppet ! +// +//See https://wiki.ubuntu.com/AutomaticUpdates for more details about this feature. + +// allowed (origin, archive) pairs +Unattended-Upgrade::Allowed-Origins { + "${distro_id} stable"; + "${distro_id} ${distro_codename}"; + "${distro_id} ${distro_codename}-main"; + "${distro_id} ${distro_codename}-security"; + "${distro_id} ${distro_codename}-updates"; +}; + +APT::Periodic::Update-Package-Lists "1"; +APT::Periodic::Unattended-Upgrade "1"; +Unattended-Upgrade::Mail "root"; + +APT::UnattendedUpgrades::LogDir "/var/log/"; +APT::UnattendedUpgrades::LogFile "unattended_upgrades.log"; + +Unattended-Upgrade::Package-Blacklist { + // we don't want the kernel to be updated so nagios still can give a warning if there is + // a manual update (and reboot) left + + "linux-image-*"; + + // unfortunately there seems to be a bug in unattended-upgrades <= 0.62 that wildcards aren't recognized: + //2009-12-11 13:41:43,267 INFO Initial blacklisted packages: linux-image-* + //2009-12-11 13:41:43,267 INFO Starting unattended upgrades script + //2009-12-11 13:41:43,267 INFO Allowed origins are: ["['Debian', 'stable']", "['Debian-Security', 'stable']"] + //2009-12-11 13:41:45,233 INFO Packages that are upgraded: linux-image-2.6.26-2-amd64 + //2009-12-11 13:41:45,233 INFO Writing dpkg log to '/var/log/unattended-upgrades-dpkg_2009-12-11_13:41:45.233713.log' + //2009-12-11 13:42:11,988 INFO All upgrades installed + +}; + |