aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-06-06 18:33:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-06-06 18:33:02 -0300
commit04e5d019718a63414e2bdc16f0731d697a2a9065 (patch)
tree0bf62fcbacf8507225d5863cdf61cdf4dbc3db97 /manifests
parentd9a2443c7bb4e0ba328ee66fe81b66ab841e6a79 (diff)
downloadpuppet-nodo-04e5d019718a63414e2bdc16f0731d697a2a9065.tar.gz
puppet-nodo-04e5d019718a63414e2bdc16f0731d697a2a9065.tar.bz2
Squeeze LTS support (2)
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/apt.pp13
1 files changed, 12 insertions, 1 deletions
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,
}