From: sathlan Date: Mon, 9 Jul 2012 02:24:49 +0000 (+0300) Subject: Add a way to specify a timeout for the apt::force define. X-Git-Tag: 1.0.0~7^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fcb90f7b6c716ce0f491fd8b19fb84a3ca253ba8;p=puppet-modules%2Fpuppetlabs-apt.git Add a way to specify a timeout for the apt::force define. --- diff --git a/manifests/force.pp b/manifests/force.pp index d3d5962..75634b4 100644 --- a/manifests/force.pp +++ b/manifests/force.pp @@ -3,7 +3,8 @@ define apt::force( $release = 'testing', - $version = false + $version = false, + $timeout = 300 ) { $version_string = $version ? { @@ -18,5 +19,6 @@ define apt::force( exec { "/usr/bin/aptitude -y -t ${release} install ${name}${version_string}": unless => $install_check, logoutput => 'on_failure', + timeout => $timeout, } }