]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Manage www_folder
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Aug 2015 15:34:06 +0000 (12:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Aug 2015 15:34:06 +0000 (12:34 -0300)
manifests/init.pp

index e77517e0b4706d9afb823a0de07b876d9732fc8b..7d62a0cd22b73765a966dade63fa2891074102f1 100644 (file)
@@ -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