summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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