summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0a72f80..287b2f5 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -108,11 +108,12 @@ class apache {
&& [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'",
notify => Exec["reload-apache2"],
}
- file { "${docroot}":
+ @file { "${docroot}":
ensure => directory,
owner => root,
group => root,
mode => 0755,
+ tag => "apache_docroot",
}
}
'absent': {
@@ -165,4 +166,7 @@ class apache {
command => "/etc/init.d/apache2 force-reload",
refreshonly => true,
}
+
+ # Realize all docroot resources
+ File <| tag == "apache_docroot" |>
}