summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-02-07 09:54:39 +0100
committermh <mh@immerda.ch>2013-02-07 09:54:39 +0100
commit6c5c5942e3626f2686112b7d760a296dc54fbe48 (patch)
treead18cce14c257a7773a310242fb282e3c5db5a09 /manifests
parentfe4113a36c48128474a2d7c3784c50d5af3e3931 (diff)
ensure that necessary directories for the service are done before the service is managed
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vhost/webdir.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/vhost/webdir.pp b/manifests/vhost/webdir.pp
index a6ec229..c9729f0 100644
--- a/manifests/vhost/webdir.pp
+++ b/manifests/vhost/webdir.pp
@@ -85,6 +85,7 @@ define apache::vhost::webdir(
mode => $real_mode;
$logdir:
ensure => directory,
+ before => Service['apache'],
owner => $real_documentroot_owner,
group => $real_documentroot_group,
mode => '0660';
@@ -97,6 +98,7 @@ define apache::vhost::webdir(
if $manage_docroot {
file{$documentroot:
ensure => directory,
+ before => Service['apache'],
recurse => $documentroot_recurse,
owner => $real_documentroot_owner,
group => $real_documentroot_group,