summaryrefslogtreecommitdiff
path: root/manifests/web/repo/lighttpd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/web/repo/lighttpd.pp')
-rw-r--r--manifests/web/repo/lighttpd.pp9
1 files changed, 6 insertions, 3 deletions
diff --git a/manifests/web/repo/lighttpd.pp b/manifests/web/repo/lighttpd.pp
index b6269b1..b7ba9fd 100644
--- a/manifests/web/repo/lighttpd.pp
+++ b/manifests/web/repo/lighttpd.pp
@@ -3,9 +3,12 @@ define git::web::repo::lighttpd(
$gitweb_url,
$gitweb_config
){
- include git::web::lighttpd
- file{"/etc/lighttpd/gitweb.d/${name}.conf":
- notify => Service['lighttpd'],
+ if $ensure == 'present' { include git::web::lighttpd }
+ file{"/etc/lighttpd/gitweb.d/${name}.conf": }
+ if defined(Service['lighttpd']) {
+ File["/etc/lighttpd/gitweb.d/${name}.conf"]{
+ notify => Service['lighttpd'],
+ }
}
if $ensure == 'present' {
File["/etc/lighttpd/gitweb.d/${name}.conf"]{