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

index 6a95f5587c4f6e41cc6d2aed4de5ae7a802d7fcf..f9571761ce787a53d33df4fb6b2f3af81f765baa 100644 (file)
@@ -1,9 +1,9 @@
 class bitcoind(
 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") }
 ) {
   case $rpcuser {
     '': { fail("You need to define etherpad database password! Please set bitcoind::rpcuser in your config") }