diff options
author | Antoine Beaupre <anarcat@koumbit.org> | 2008-07-03 18:05:58 -0400 |
---|---|---|
committer | Antoine Beaupre <anarcat@koumbit.org> | 2008-07-03 18:05:58 -0400 |
commit | 3ecbee6a271e986229348deca91dbf338d98d735 (patch) | |
tree | 8935e9cdc865fea18d56ae7d6d00cd88b035af88 /manifests | |
parent | 45e01f3eb9d492c5383a6b14aa2585ae37b0dbce (diff) |
move backports in a seperate class, add the Cache-Limit hack to all configs, try to depend on lsb-release properly
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 3eb7448..acdda5c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,7 +14,7 @@ class apt { default => $apt_clean, } - package { apt: ensure => installed } + package { [ 'lsb-release', 'apt' ]: ensure => installed } # a few templates need lsbdistcodename include assert_lsbdistcodename @@ -25,8 +25,8 @@ class apt { } default: { config_file { "/etc/apt/sources.list": - content => $custom_sources_list - require => Exec[assert_lsbdistcodename]; + content => $custom_sources_list, + require => Exec[assert_lsbdistcodename], } } } @@ -52,7 +52,7 @@ class apt { require => File["/etc/apt/sources.list"]; # little default settings which keep the system sane "/etc/apt/apt.conf.d/from_puppet": - content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\n", + content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\nAPT::Cache-Limit 22582912;\n", before => File[apt_config]; } @@ -63,7 +63,7 @@ class apt { exec { # "&& sleep 1" is workaround for older(?) clients - "/usr/bin/apt-get update && sleep 1 #on refresh": + "/usr/bin/apt-get update #on refresh": refreshonly => true, subscribe => [ File["/etc/apt/sources.list"], File["/etc/apt/preferences"], File["/etc/apt/apt.conf.d"], @@ -78,10 +78,16 @@ class apt { case $lsbdistcodename { etch: { ## This package should really always be current - package { - [ "debian-archive-keyring", "debian-backports-keyring" ]: - ensure => latest, - } + package { "debian-archive-keyring": ensure => latest, } + } + } +} + +class apt::backports inherits apt { + $custom_sources_list = template("apt/sources.list+backports.erb") + case $lsbdistcodename { + etch: { + package { "debian-backports-keyring": ensure => latest, } # This key was downloaded from # http://backports.org/debian/archive.key |