aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-17 13:34:33 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-17 13:34:33 -0200
commit3500757e75f2b92ff860f0b28b573f635c58125e (patch)
tree19015796f12206f6464e5d6d0d3a4aa493e294e0 /manifests
parent8d18a7c535d12ab4230b7ba6d3ec1ae7122d175f (diff)
downloadpuppet-virtual-3500757e75f2b92ff860f0b28b573f635c58125e.tar.gz
puppet-virtual-3500757e75f2b92ff860f0b28b573f635c58125e.tar.bz2
Trying to fix resource dependency
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vserver.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index a8a5a02..5121b7b 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -230,7 +230,8 @@ define vserver($ensure, $context, $in_domain = '', $mark = '', $legacy = false,
# we have to do it for each vserver, see
# http://linux-vserver.org/Secure_chroot_Barrier#Solution:_Secure_Barrier
exec { "setattr --barrier /etc/vservers/${vs_name}/vdir/../":
- unless => "showattr /etc/vservers/${vs_name}/vdir/../ | grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'"
+ unless => "showattr /etc/vservers/${vs_name}/vdir/../ | grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'"
+ require => Exec["vs_create_${vs_name}"],
}
case $ensure {