summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-11 12:34:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-11 12:34:06 -0300
commite614163d9dac78a80568b74ec587c26e48a6e548 (patch)
tree9ead92036d9fce26d89fb4ce742f7dce68aa3a13
parent0aadbfa32ff06595880c9021ebdffc0c72f86181 (diff)
downloadpuppet-apache-e614163d9dac78a80568b74ec587c26e48a6e548.tar.gz
puppet-apache-e614163d9dac78a80568b74ec587c26e48a6e548.tar.bz2
Manage www_folder
-rw-r--r--manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index e77517e..7d62a0c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -139,6 +139,13 @@ class apache(
notify => Service["apache"],
}
+ file { "${www_folder}":
+ ensure => directory,
+ owner => "root",
+ group => "root",
+ mode => 0755,
+ }
+
# icons folder
# http://larsjung.de/h5ai/
# http://recursive-design.com/blog/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/
@@ -155,6 +162,7 @@ class apache(
# Puppet will automatically set +x for directories
source => [ "puppet:///modules/site_apache/htdocs/$domain/icons",
"puppet:///modules/apache/icons", ]
+ require => File["${www_folder}"],
}
# Legacy configuration