Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
710b1c6
)
Add a way to specify a timeout for the apt::force define.
author
sathlan
<mypublicaddress-code@yahoo.com>
Mon, 9 Jul 2012 02:24:49 +0000
(
05:24
+0300)
committer
sathlan
<mypublicaddress-code@yahoo.com>
Mon, 9 Jul 2012 02:24:49 +0000
(
05:24
+0300)
manifests/force.pp
patch
|
blob
|
history
diff --git
a/manifests/force.pp
b/manifests/force.pp
index d3d5962d0889a5975c81d62b8acd468015319ea2..75634b476dd8fe7cac2517cbdbefcc89b758dc13 100644
(file)
--- 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,
}
}