# This class handles a gitweb installation. class git::gitweb( $protocol = lookup('git::web::protocol', undef, undef, 'git'), $hosting_domain = lookup('apache::site::domain', undef, undef, $::domain), $implementation = lookup('git::daemon::implementation', undef, undef, 'gitolite') ) { # the needed packages package { gitweb: ensure => installed } # gitweb config file file { "/etc/gitweb.conf": owner => "root", group => "root", mode => '0644', ensure => present, content => template('git/gitweb.conf.erb'), } }