From ebb51cf7547017ffbfca96090aaddb4e40614cdf Mon Sep 17 00:00:00 2001 From: david Date: Tue, 3 Jul 2007 10:20:19 +0000 Subject: 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 --- manifests/init.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'manifests') 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 -- cgit v1.2.3