X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fforce.pp;h=75634b476dd8fe7cac2517cbdbefcc89b758dc13;hb=ffb89f6d5d806a27ad43129f5e74fdd7033bd2f3;hp=45c5679292b601c9d13954efc401b5377d071130;hpb=a758247f2632b3204167a8058fbb8903f0438841;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/force.pp b/manifests/force.pp index 45c5679..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 ? { @@ -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, } - }