summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp7
-rw-r--r--templates/bitcoin.conf.erb2
2 files changed, 5 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 04ff701..549e9ce 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,7 +1,8 @@
class bitcoind(
- $daemon_args = hiera('bitcoind::daemon_args', '-daemon'),
- $rpcpassword = hiera('bitcoind::rpcpassword', ''),
- $ensure = hiera('bitcoind::ensure', 'running')
+ $daemon_args = hiera('bitcoind::daemon_args', '-daemon'),
+ $rpcpassword = hiera('bitcoind::rpcpassword', ''),
+ $ensure = hiera('bitcoind::ensure', 'running'),
+ $maxconnections = hiera('bitcoind::maxconnections', 25)
) {
case $rpcpassword {
'': { fail("You need to define etherpad database password! Please set bitcoind::rpcpassword in your config") }
diff --git a/templates/bitcoin.conf.erb b/templates/bitcoin.conf.erb
index b51bde0..1e68b85 100644
--- a/templates/bitcoin.conf.erb
+++ b/templates/bitcoin.conf.erb
@@ -23,7 +23,7 @@
#noirc=1
# Maximum number of inbound+outbound connections.
-#maxconnections=
+maxconnections=<%= maxconnections %>
# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)