From: Silvio Rhatto Date: Sat, 13 Apr 2013 14:24:59 +0000 (-0300) Subject: Using hiera X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=92bcdf3497bb8b65a20c7bff84808021e5a25d60;p=puppet-bitcoind.git Using hiera --- diff --git a/manifests/init.pp b/manifests/init.pp index 684154d..3271d4d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,4 +1,12 @@ -class bitcoind($daemon_args = '-daemon', $rpcpassword, $ensure = 'running') { +class bitcoind( + $daemon_args = hiera('bitcoind::daemon_args, '-daemon'), + $rpcpassword = hiera('bitcoind::rpcpassword', ''), + $ensure = hiera('bitcoind::ensure', 'running') +) { + case $rpcpassword { + '': { fail("You need to define etherpad database password! Please set bitcoind::rpcpassword in your config") } + } + package { 'bitcoind': ensure => installed, }