]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Hiera 5 migration
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:57:13 +0000 (20:57 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:57:13 +0000 (20:57 -0300)
manifests/daemon.pp
manifests/gitweb.pp

index cdb863953047d833010b5ec621451a48a63a6b69..40ca0b865603945d10a5c5246422b9aaa5d75410 100644 (file)
@@ -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":
index d546349a289b8be8ab8475f41064b781185fe730..1d670bec4de0e8137c56b9f3b03d93fb0e2e9aa7 100644 (file)
@@ -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