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") }
}
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
#rpcuser=Ulysseys
#rpcpassword=YourSuperGreatPasswordNumber_385593
+rpcuser=<%= rpcuser %>
rpcpassword=<%= rpcpassword %>
# By default, only RPC connections from localhost are allowed. Specify