diff options
author | mh <mh@immerda.ch> | 2010-07-06 00:13:38 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-07-06 00:13:38 +0200 |
commit | a1b5d4209109b1c3fae9e7b80a1b22bcf3d5211d (patch) | |
tree | c64e269c36ad5332bcaff30bf902f397f6a88a13 /manifests/web/repo/lighttpd.pp | |
parent | dae75da745ffbba2cfab1b7f60f686c019c55be5 (diff) |
adjust to new lighttpd module
Diffstat (limited to 'manifests/web/repo/lighttpd.pp')
-rw-r--r-- | manifests/web/repo/lighttpd.pp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/manifests/web/repo/lighttpd.pp b/manifests/web/repo/lighttpd.pp index f5201e7..111cc5e 100644 --- a/manifests/web/repo/lighttpd.pp +++ b/manifests/web/repo/lighttpd.pp @@ -5,20 +5,8 @@ define git::web::repo::lighttpd( ){ if $ensure == 'present' { include git::web::lighttpd } - file{"/etc/lighttpd/conf.d/${name}.gitweb.conf": } - if $ensure == 'present' { - File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{ - content => template('git/web/lighttpd'), - owner => root, group => 0, mode => 0644 - } - } else { - File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{ - ensure => $ensure, - } - } - if defined(Service['lighttpd']) { - File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{ - notify => Service['lighttpd'], - } + lighttpd::vhost::file{$name: + ensure => $ensure, + content => template('git/web/lighttpd'); } } |