aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-07 00:07:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-07 00:07:18 -0200
commit22083ce934930cd85c523292fb2df519bc4bc05f (patch)
tree6c8effc60ab1690b9d4c00f2baebeec625365534 /manifests/init.pp
parent476bf78182c57e9f195fedc680fc52e8168bdccb (diff)
downloadpuppet-ikiwiki-22083ce934930cd85c523292fb2df519bc4bc05f.tar.gz
puppet-ikiwiki-22083ce934930cd85c523292fb2df519bc4bc05f.tar.bz2
Defining parent site folder
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp10
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,
}
}
}