From 5ed7396a313474f79d516c6fb2c894ef14f85423 Mon Sep 17 00:00:00 2001 From: Raoul Bhatia Date: Thu, 26 Jun 2014 20:03:04 +0200 Subject: [PATCH] Enable auto-update for Debian squeeze-lts Quoting https://wiki.debian.org/LTS Official security support for Debian GNU/Linux 6.0 (code name "Squeeze") has ended on 31 May 2014. However long term support for the distribution is going to be extended until February 2016, i.e. five years after the initial release. See https://wiki.debian.org/LTS for more details. --- manifests/params.pp | 3 ++- spec/classes/unattended_upgrades_spec.rb | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 4e974ba48b..f635b5801c 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -12,7 +12,8 @@ $backports_location = 'http://backports.debian.org/debian-backports' $legacy_origin = true $origins = ['${distro_id} oldstable', - '${distro_id} ${distro_codename}-security'] + '${distro_id} ${distro_codename}-security', + '${distro_id} ${distro_codename}-lts'] } 'wheezy': { $backports_location = 'http://ftp.debian.org/debian/' diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index a2fb48b126..8494f0410d 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -60,6 +60,8 @@ it { should contain_file(file_unattended).with_content( /^Unattended-Upgrade::Allowed-Origins/ + ).with_content( + /"\${distro_id} \${distro_codename}-lts";/ ).with_content( /"\${distro_id} \${distro_codename}-security";/ ).with_content(