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

index efb74f3bfbd1eaaedc3c5e20de1083be31af8406..54e612fb2d5ae10d65fb2ebed670574a9c9157ab 100644 (file)
@@ -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") }