aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-07-03 10:20:19 +0000
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-07-03 10:20:19 +0000
commitebb51cf7547017ffbfca96090aaddb4e40614cdf (patch)
treedec1ab7e2339af16bf90e64fe903cec1f9323e59
parent624475288ef7eb2c3a7a94f489b46dca22ad3502 (diff)
downloadpuppet-apt-ebb51cf7547017ffbfca96090aaddb4e40614cdf.tar.gz
puppet-apt-ebb51cf7547017ffbfca96090aaddb4e40614cdf.tar.bz2
use dselect to update dpkg's available file
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@102 f03ff2f1-f02d-0410-970d-b9634babeaa1
-rw-r--r--manifests/init.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 2e4398c..b626aad 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -14,6 +14,10 @@ class apt {
default => $apt_clean,
}
+ package {
+ [apt, dselect]: ensure => installed,
+ }
+
# a few templates need lsbdistcodename
include assert_lsbdistcodename
@@ -57,12 +61,12 @@ class apt {
exec {
# "&& sleep 1" is workaround for older(?) clients
- "/usr/bin/apt-get -y update && sleep 1 #on refresh":
+ "/usr/bin/dselect update && sleep 1 #on refresh":
refreshonly => true,
subscribe => [ File["/etc/apt/sources.list"],
File["/etc/apt/preferences"], File["/etc/apt/apt.conf.d"],
File[apt_config] ];
- "/usr/bin/apt-get -y update && /usr/bin/apt-get autoclean #hourly":
+ "/usr/bin/dselect update && /usr/bin/apt-get autoclean #hourly":
require => [ File["/etc/apt/sources.list"],
File["/etc/apt/preferences"], File[apt_config] ],
# Another Semaphor for all packages to reference