diff options
-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, } |