From 10524f282a920d4227fa398609e8582a40626c70 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 11 Aug 2012 13:33:44 -0300 Subject: Setting rpcpassword --- manifests/init.pp | 2 +- templates/bitcoin.conf.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3