summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-07 14:44:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-07 14:44:00 -0300
commit8ba82fa7dd6e24f29e129a216b0c82b2107dec38 (patch)
tree4717995eac86e0d938ea3e0faa245a28ae2ea1e8
parent0534cb4e00d21df8b2f08cc976c4f4ab8c417088 (diff)
downloadpuppet-bitcoind-8ba82fa7dd6e24f29e129a216b0c82b2107dec38.tar.gz
puppet-bitcoind-8ba82fa7dd6e24f29e129a216b0c82b2107dec38.tar.bz2
Adding maxconnections parameter
-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)