From: Silvio Rhatto Date: Thu, 7 May 2020 23:56:11 +0000 (-0300) Subject: Hiera 5 migration X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=puppet-bitcoind.git Hiera 5 migration --- diff --git a/manifests/init.pp b/manifests/init.pp index 6a95f55..f957176 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,9 +1,9 @@ class bitcoind( - $daemon_args = hiera('bitcoind::daemon_args', '-daemon'), - $rpcuser = hiera('bitcoind::rpcuser', ''), - $rpcpassword = hiera('bitcoind::rpcpassword', ''), - $ensure = hiera('bitcoind::ensure', 'running'), - $maxconnections = hiera('bitcoind::maxconnections', 25) + $daemon_args = lookup('bitcoind::daemon_args', undef, undef, '-daemon'), + $rpcuser = lookup('bitcoind::rpcuser', undef, undef, ''), + $rpcpassword = lookup('bitcoind::rpcpassword', undef, undef, ''), + $ensure = lookup('bitcoind::ensure', undef, undef, 'running'), + $maxconnections = lookup('bitcoind::maxconnections', undef, undef, 25) ) { case $rpcuser { '': { fail("You need to define etherpad database password! Please set bitcoind::rpcuser in your config") }