unattended_upgrades: Fix matching security archive
authorDaniele Sluijters <github@daenney.net>
Thu, 27 Mar 2014 12:51:08 +0000 (13:51 +0100)
committerAshley Penney <ashley.penney@puppetlabs.com>
Tue, 22 Apr 2014 22:36:40 +0000 (00:36 +0200)
commit156eaac061edb8643f6d56084063af38a5538de6
tree572328c1663bbf6d811dc115e66b300ecb2a1798
parentc230e21c1d27c0062720255eab5cbfa60e3aa9fd
unattended_upgrades: Fix matching security archive

The default configuration we were writing for Debian was only working
for Squeeze, from Wheezy and onwards this wasn't working anymore. This
has to do with the fact that we should now be using Origins-Pattern
according to the unattended-upgrades docs. However, Ubuntu didn't
entirely get with the program yet...

This change reflects the defaults that unattended-upgrade installs on
every platform we support. In order to do so the unattended-upgrades
Debian archive for Squeeze, Wheezy, Lucid, Precise and Trusty were
downloaded and the default /etc/apt/apt.conf.d/50unattended-upgrades
checked for its content with regard to using Allow-Origins or
Origins-Pattern.

Fixes #277
manifests/params.pp
manifests/unattended_upgrades.pp
spec/classes/unattended_upgrades_spec.rb
templates/50unattended-upgrades.erb