# This class handles a gitweb installation. class gitweb( $protocol = hiera('git::web::protocol', 'git'), $hosting_domain = hiera('apache::site::domain', $::domain), $implementation = hiera('git::daemon::implementation', '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'), } }