summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-02 17:23:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-02 17:23:01 -0300
commit32afd174079e33b85f3439bb02b7dcea2efad9b3 (patch)
treead5d4e537bb43346fc3c57b0c3e22f56a297a942 /manifests
parent1e4df528b6cf4a536cc19f5bba16a64031d1c015 (diff)
downloadpuppet-bitcoind-32afd174079e33b85f3439bb02b7dcea2efad9b3.tar.gz
puppet-bitcoind-32afd174079e33b85f3439bb02b7dcea2efad9b3.tar.bz2
Adding rpcuser parameter
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3081978..5139b1d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,9 +1,14 @@
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)
) {
+ case $rpcuser {
+ '': { fail("You need to define etherpad database password! Please set bitcoind::rpcuser in your config") }
+ }
+
case $rpcpassword {
'': { fail("You need to define etherpad database password! Please set bitcoind::rpcpassword in your config") }
}