Update .gitignore
[puppet-modules/puppetlabs-apt.git] / manifests / force.pp
index 45c5679292b601c9d13954efc401b5377d071130..75634b476dd8fe7cac2517cbdbefcc89b758dc13 100644 (file)
@@ -3,7 +3,8 @@
 
 define apt::force(
   $release = 'testing',
-  $version = false
+  $version = false,
+  $timeout = 300
 ) {
 
   $version_string = $version ? {
@@ -16,7 +17,8 @@ define apt::force(
     default => "/usr/bin/dpkg -s ${name} | grep -q 'Version: ${version}'",
   }
   exec { "/usr/bin/aptitude -y -t ${release} install ${name}${version_string}":
-    unless => $install_check,
+    unless    => $install_check,
+    logoutput => 'on_failure',
+    timeout   => $timeout,
   }
-
 }