aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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,
}
}
}