aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/apt.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/apt.pp')
-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,
}