summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-11 13:33:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-11 13:33:44 -0300
commit10524f282a920d4227fa398609e8582a40626c70 (patch)
treee1d61e2f9823970d6561fada1531c48f459a9fbe
parent4ad1d13d770327a612c9296099316e73e83f17e6 (diff)
downloadpuppet-bitcoind-10524f282a920d4227fa398609e8582a40626c70.tar.gz
puppet-bitcoind-10524f282a920d4227fa398609e8582a40626c70.tar.bz2
Setting rpcpassword
-rw-r--r--manifests/init.pp2
-rw-r--r--templates/bitcoin.conf.erb1
2 files changed, 2 insertions, 1 deletions
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