From: Silvio Rhatto Date: Thu, 7 Jan 2010 02:07:18 +0000 (-0200) Subject: Defining parent site folder X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=22083ce934930cd85c523292fb2df519bc4bc05f;p=puppet-ikiwiki.git Defining parent site folder --- diff --git a/manifests/init.pp b/manifests/init.pp index c2c6736..0e0b67c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -43,6 +43,7 @@ class ikiwiki { group => gitosis, recurse => true, notify => Exec["ikiwiki --setup /etc/ikiwiki/$name.setup"], + require => File["${apache_sites_folder}/${name}"], } } @@ -53,6 +54,15 @@ class ikiwiki { group => gitosis, recurse => true, notify => Exec["ikiwiki --setup /etc/ikiwiki/$name.setup"], + require => File["${apache_sites_folder}/${name}"], + } + } + + if !defined(File["${apache_sites_folder}/${name}"]) { + file { "${apache_sites_folder}/${name}": + ensure => directory, + owner => root, + group => root, } } }