]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
use dselect to update dpkg's available file
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Tue, 3 Jul 2007 10:20:19 +0000 (10:20 +0000)
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Tue, 3 Jul 2007 10:20:19 +0000 (10:20 +0000)
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@102 f03ff2f1-f02d-0410-970d-b9634babeaa1

manifests/init.pp

index 2e4398c812e2729fc16664781461be6a9e7a78d1..b626aad48e69de48e2915aecb88e5abdba610b07 100644 (file)
@@ -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