]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commit - templates
unattended_upgrades: Fix matching security archive
authorDaniele Sluijters <github@daenney.net>
Thu, 27 Mar 2014 12:51:08 +0000 (13:51 +0100)
committerDaniele Sluijters <github@daenney.net>
Thu, 27 Mar 2014 12:56:25 +0000 (13:56 +0100)
commiteaebe2f82d6b9f27be5f5d5d8258fafad230af2a
tree00756c95be3a77ced7667328caf9f39bd99f28db
parent9ebbeae2ec306ae4d360c51e159fbfabe8636f6b
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