diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 287b2f5..f8dd454 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -108,12 +108,13 @@ class apache { && [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'", notify => Exec["reload-apache2"], } - @file { "${docroot}": - ensure => directory, - owner => root, - group => root, - mode => 0755, - tag => "apache_docroot", + if !defined(File["${docroot}"]) { + file { "${docroot}": + ensure => directory, + owner => root, + group => root, + mode => 0755, + } } } 'absent': { @@ -166,7 +167,4 @@ class apache { command => "/etc/init.d/apache2 force-reload", refreshonly => true, } - - # Realize all docroot resources - File <| tag == "apache_docroot" |> } |