class git::daemon (
- $implementation = hiera('git::daemon::implementation', 'gitolite'),
- $inetd = hiera('git::daemon::inetd', true),
- $groups = hiera('git::daemon::groups', [ 'puppet' ]),
+ $implementation = lookup('git::daemon::implementation', undef, undef, 'gitolite'),
+ $inetd = lookup('git::daemon::inetd', undef, undef, true),
+ $groups = lookup('git::daemon::groups', undef, undef, [ 'puppet' ]),
) {
# directory for git user and repositories
file { "/var/git":
# This class handles a gitweb installation.
class git::gitweb(
- $protocol = hiera('git::web::protocol', 'git'),
- $hosting_domain = hiera('apache::site::domain', $::domain),
- $implementation = hiera('git::daemon::implementation', 'gitolite')
+ $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