Add a way to specify a timeout for the apt::force define.
This commit is contained in:
parent
710b1c6a66
commit
fcb90f7b6c
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue