From 04e5d019718a63414e2bdc16f0731d697a2a9065 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 6 Jun 2014 18:33:02 -0300 Subject: Squeeze LTS support (2) --- manifests/subsystem/apt.pp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index 68f3c71..038b503 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -62,7 +62,7 @@ class nodo::subsystem::apt { $squeeze_lts = 'http://http.debian.net/debian/ squeeze-lts main contrib non-free' - # See https://wiki.debian.org/LTS/Development#Add_squeeze-lts_to_your_sources.list + # See https://wiki.debian.org/LTS/Using ::apt::sources_list { 'squeeze-lts.list': content => "deb ${squeeze_lts}\ndeb-src ${squeeze_lts}", ensure => $::lsbdistcodename ? { @@ -71,6 +71,17 @@ class nodo::subsystem::apt { } } + file { '/etc/apt/apt.conf.d/80default-release': + owner => root, + group => root, + mode => 0644, + content => "APT::Default-Release \"squeeze-lts\";\n", + ensure => $::lsbdistcodename ? { + 'squeeze' => present, + default => absent, + } + } + package { 'apt-transport-https': ensure => present, } -- cgit v1.2.3