From: Silvio Rhatto Date: Sun, 8 Nov 2009 15:40:44 +0000 (-0200) Subject: Declaring docroot folders as virtual resources X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7af38edb568033153c4a8a7696cf77bbea117e02;p=puppet-apache.git Declaring docroot folders as virtual resources --- 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" |> }