]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(#14138) Modify apt::ppa's update-apt exec to use the ${apt::params::provider} parame...
authorDaniel Thornton <relud@osuosl.org>
Mon, 23 Apr 2012 20:40:24 +0000 (20:40 +0000)
committerDaniel Thornton <relud@osuosl.org>
Mon, 23 Apr 2012 20:40:24 +0000 (20:40 +0000)
Previously the update-apt exec would always use /usr/bin/aptitude, which is not necessarily present. This change makes it use ${apt::params::provider} which defaults to /usr/bin/apt-get. This also adds some consistency so that ${apt::params::provider} is used everywhere.

manifests/ppa.pp

index 095d8f17b2b86d6318ca3ab24586ad90d314458a..94503669b757ae311596ba16cfcc5834f23cccf8 100644 (file)
@@ -13,7 +13,7 @@ define apt::ppa(
   }
 
   exec { "apt-update-${name}":
-    command     => '/usr/bin/aptitude update',
+    command     => "${apt::params::provider} update",
     refreshonly => true,
   }