From e614163d9dac78a80568b74ec587c26e48a6e548 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 11 Aug 2015 12:34:06 -0300 Subject: Manage www_folder --- manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'manifests') 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 -- cgit v1.2.3