diff options
| author | root <nadir-technik@nadir.org> | 2009-12-11 17:51:49 +0100 | 
|---|---|---|
| committer | root <nadir-technik@nadir.org> | 2009-12-11 17:51:49 +0100 | 
| commit | 854f3c10b09b46ef9d9fce5293dd0665b619065e (patch) | |
| tree | 26e18d1021eb8be0674f751d99ce7fccb2f8b572 /files/50unattended-upgrades | |
| parent | 2b2950b20e2b171c2798e1265cde62a44382616f (diff) | |
| download | puppet-apt-854f3c10b09b46ef9d9fce5293dd0665b619065e.tar.gz puppet-apt-854f3c10b09b46ef9d9fce5293dd0665b619065e.tar.bz2  | |
Added apt::unattended_upgrades class, and extra template for "deb-src"
Diffstat (limited to 'files/50unattended-upgrades')
| -rw-r--r-- | files/50unattended-upgrades | 43 | 
1 files changed, 43 insertions, 0 deletions
diff --git a/files/50unattended-upgrades b/files/50unattended-upgrades new file mode 100644 index 0000000..06036bf --- /dev/null +++ b/files/50unattended-upgrades @@ -0,0 +1,43 @@ +// 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 { +	"Debian stable"; +	"Debian-Security stable"; +//	"Debian testing"; +}; + +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 warnig if there is  +	// a manual update (and reboot) left +	 +        "linux-image-*"; +	 +	// unfortunately there seems to be a bug in unattended-upgrades <= 0.25.1 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 +         +	"linux-image-2.6.18-5-vserver-686"; +	"linux-image-2.6.18-5-xen-vserver-686"; +        "linux-image-2.6.18-6-vserver-686"; +	"linux-image-2.6.18-6-xen-vserver-686"; +        "linux-image-2.6.24.3"; +        "linux-image-2.6.26-1-686"; +        "linux-image-2.6.26-2-xen-amd64"; +        "linux-image-2.6.26-2-xen-686"; +	"linux-image-2.6.26-2-amd64"; +}; +  | 
