Add a way to specify a timeout for the apt::force define.

This commit is contained in:
sathlan 2012-07-09 05:24:49 +03:00
parent 710b1c6a66
commit fcb90f7b6c

View file

@ -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,
}
}