summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-01-10 15:52:44 +0100
committermh <mh@immerda.ch>2010-01-10 15:52:44 +0100
commitc576e418a6c432c4bde62aeead376a6a561149a3 (patch)
tree39d336b7e4a0eb787e898d078659531912f68131 /manifests
parent4720548254319dac827a07d3b8782ab57ce6b3d7 (diff)
if we should remove everything if set to absent
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vhost/php/gallery2.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/vhost/php/gallery2.pp b/manifests/vhost/php/gallery2.pp
index a6e23f5..924e322 100644
--- a/manifests/vhost/php/gallery2.pp
+++ b/manifests/vhost/php/gallery2.pp
@@ -59,10 +59,13 @@ define apache::vhost::php::gallery2(
default => "${path}/g2data"
}
file{$gdatadir:
- ensure => directory,
+ ensure => $ensure ? {
+ 'present' => directory,
+ default => absent
+ },
owner => $documentroot_owner,
group => $documentroot_group,
- mode => 0770;
+ mode => 0660;
}
# create vhost configuration file