diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 11:24:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 11:24:59 -0300 |
commit | 92bcdf3497bb8b65a20c7bff84808021e5a25d60 (patch) | |
tree | 463927d615af7411608e83431b3e19927de6ae8f | |
parent | fce2a855df65a0a4072aeb2d255eb587f1643782 (diff) | |
download | puppet-bitcoind-92bcdf3497bb8b65a20c7bff84808021e5a25d60.tar.gz puppet-bitcoind-92bcdf3497bb8b65a20c7bff84808021e5a25d60.tar.bz2 |
Using hiera
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 9 insertions, 1 deletions
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, } |