diff options
author | mh <mh@immerda.ch> | 2010-01-09 15:25:37 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-01-09 15:25:37 +0100 |
commit | 88ba818826d5107ee7b9ddab1aa9168b2269272f (patch) | |
tree | f122cf225a1859cfb586adf35dc85a6f86d45906 /manifests/web/repo/lighttpd.pp | |
parent | 9e03ac65f6176029d3f81f2cd0d1b6811ba7e80e (diff) |
don't do web stuff if repo is absent
Diffstat (limited to 'manifests/web/repo/lighttpd.pp')
-rw-r--r-- | manifests/web/repo/lighttpd.pp | 9 |
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"]{ |