From 2a0c67462e0e8af3925b97e0e56d7899a0d05fba Mon Sep 17 00:00:00 2001 From: drebs Date: Sun, 20 Mar 2011 18:01:52 -0300 Subject: preventing from bug in exec's timeout --- manifests/vserver.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'manifests/vserver.pp') diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 6955ab9..d0269a9 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -149,7 +149,9 @@ define vs_create($in_domain, $context, $legacy = false, $distro = 'etch', creates => "/etc/vservers/${vs_name}", require => File["/usr/local/bin/build_vserver","/etc/vservers/.defaults/vdirbase"], alias => "vs_create_${vs_name}", - timeout => "-1", + # TODO: change when this is fixed: http://projects.puppetlabs.com/issues/4769 + timeout => $lsbdistcodename ? { "squeeze" => '999999999999999999999999999999', + default => '-1', }, } } } -- cgit v1.2.3