summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-11-08 13:40:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-11-08 13:40:44 -0200
commit7af38edb568033153c4a8a7696cf77bbea117e02 (patch)
tree9434447cfbca002344669c3ca26855a137c00931 /manifests
parent540c717433f655efad2a5fcb186fc03a680768a8 (diff)
downloadpuppet-apache-7af38edb568033153c4a8a7696cf77bbea117e02.tar.gz
puppet-apache-7af38edb568033153c4a8a7696cf77bbea117e02.tar.bz2
Declaring docroot folders as virtual resources
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" |>
}