From: Silvio Rhatto Date: Fri, 7 Jun 2013 17:44:00 +0000 (-0300) Subject: Adding maxconnections parameter X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8ba82fa7dd6e24f29e129a216b0c82b2107dec38;p=puppet-bitcoind.git Adding maxconnections parameter --- 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)