From fcb90f7b6c716ce0f491fd8b19fb84a3ca253ba8 Mon Sep 17 00:00:00 2001 From: sathlan Date: Mon, 9 Jul 2012 05:24:49 +0300 Subject: [PATCH] Add a way to specify a timeout for the apt::force define. --- manifests/force.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, } } -- 2.45.2