diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 00:07:18 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 00:07:18 -0200 |
commit | 22083ce934930cd85c523292fb2df519bc4bc05f (patch) | |
tree | 6c8effc60ab1690b9d4c00f2baebeec625365534 | |
parent | 476bf78182c57e9f195fedc680fc52e8168bdccb (diff) | |
download | puppet-ikiwiki-22083ce934930cd85c523292fb2df519bc4bc05f.tar.gz puppet-ikiwiki-22083ce934930cd85c523292fb2df519bc4bc05f.tar.bz2 |
Defining parent site folder
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 10 insertions, 0 deletions
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, } } } |