From: Silvio Rhatto Date: Sat, 11 Aug 2012 16:33:44 +0000 (-0300) Subject: Setting rpcpassword X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=10524f282a920d4227fa398609e8582a40626c70;p=puppet-bitcoind.git Setting rpcpassword --- diff --git a/manifests/init.pp b/manifests/init.pp index c8599f0..d086b50 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,4 +1,4 @@ -class bitcoind($daemon_args = '-daemon') { +class bitcoind($daemon_args = '-daemon', $rpcpassword) { package { 'bitcoind': ensure => installed, } diff --git a/templates/bitcoin.conf.erb b/templates/bitcoin.conf.erb index e56c43c..b51bde0 100644 --- a/templates/bitcoin.conf.erb +++ b/templates/bitcoin.conf.erb @@ -34,6 +34,7 @@ # You must set rpcuser and rpcpassword to secure the JSON-RPC api #rpcuser=Ulysseys #rpcpassword=YourSuperGreatPasswordNumber_385593 +rpcpassword=<%= rpcpassword %> # By default, only RPC connections from localhost are allowed. Specify # as many rpcallowip= settings as you like to allow connections from