From: Silvio Rhatto Date: Thu, 7 May 2020 23:58:41 +0000 (-0300) Subject: Hiera 5 migration X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=47f1bd66a341d47d76b4beade5f06e2f99b3559f;p=puppet-pyroscope.git Hiera 5 migration --- diff --git a/manifests/init.pp b/manifests/init.pp index efb74f3..54e612f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,7 @@ class pyroscope( - $password = hiera('pyroscope::password', ''), - $homedir = hiera('pyroscope::homedir', '/var/cache/torrent'), - $groups = hiera('pyroscope::groups', [ 'incoming' ]), + $password = lookup('pyroscope::password', undef, undef, ''), + $homedir = lookup('pyroscope::homedir', undef, undef, '/var/cache/torrent'), + $groups = lookup('pyroscope::groups', undef, undef, [ 'incoming' ]), ) { case $password { '': { fail("You need to define torrent user password! Please set pyroscope::password in your config") }