From 85ddd696219533b6155164498f97f48753d9b648 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 May 2020 20:57:13 -0300 Subject: Hiera 5 migration --- manifests/daemon.pp | 6 +++--- manifests/gitweb.pp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/manifests/daemon.pp b/manifests/daemon.pp index cdb8639..40ca0b8 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -1,7 +1,7 @@ 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": diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index d546349..1d670be 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -1,9 +1,9 @@ # 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 -- cgit v1.2.3