]> gitweb.fluxo.info Git - puppet-bitcoind.git/commitdiff
Adding maxconnections parameter
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 17:44:00 +0000 (14:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 17:44:00 +0000 (14:44 -0300)
manifests/init.pp
templates/bitcoin.conf.erb

index 04ff7018e5d987cf9ec0c2e79377db725a088d68..549e9ce790f1a1bad2d112af470e426626e2ce7a 100644 (file)
@@ -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") }
index b51bde0995ffcc097da5d942fad67ed31b81d353..1e68b85f87235e160608e4a14b8063c508a5750b 100644 (file)
@@ -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)