diff options
author | Micah Anderson <micah@riseup.net> | 2008-03-21 14:17:10 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-03-21 14:17:10 +0000 |
commit | 27ba1fab79a3471a5d2f1135f212c2b20da41239 (patch) | |
tree | e83a9c79cb5e145892650dd4e3f3b970fda0368b /manifests/vserver.pp | |
parent | f87a31007cc48f14db8e82ce4a66e387d149a680 (diff) | |
download | puppet-virtual-27ba1fab79a3471a5d2f1135f212c2b20da41239.tar.gz puppet-virtual-27ba1fab79a3471a5d2f1135f212c2b20da41239.tar.bz2 |
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
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r-- | manifests/vserver.pp | 2 |
1 files changed, 1 insertions, 1 deletions
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}", } |