From 27ba1fab79a3471a5d2f1135f212c2b20da41239 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 21 Mar 2008 14:17:10 +0000 Subject: change the exec test on present, vserver status returns a non-zero exit code if the vserver is not running, which causes puppet to complain --- manifests/vserver.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/vserver.pp') diff --git a/manifests/vserver.pp b/manifests/vserver.pp index cfa5842..6b514d5 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -84,7 +84,7 @@ define vserver($ensure, $context, $in_domain = '', $mark = '', $legacy = false, present: { # don't start or stop the vserver, just make sure it exists, we just run a dummy status test here - exec { "vserver ${vs_name} status": + exec { "test -e \$(readlink -f /etc/vservers/${vs_name}/vdir)": require => Exec["vs_create_${vs_name}"], alias => "vs_restart_${vs_name}", } -- cgit v1.2.3