Add rpcpassword support to bitcoin snap recipe

This commit is contained in:
Basti 2020-08-18 14:44:23 +02:00
parent 97ae73c987
commit c98be94404
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -47,10 +47,14 @@ directory bitcoin_datadir do
action :create
end
bitcoin_config = node['bitcoin']['conf'].merge({
rpcpassword: credentials["rpcpassword"]
})
template "#{bitcoin_datadir}/bitcoin.conf" do
owner bitcoin_user
group bitcoin_group
variables conf: node['bitcoin']['conf'],
variables conf: bitcoin_config,
mainnet_conf: node['bitcoin']['mainnet_conf'],
testnet_conf: node['bitcoin']['testnet_conf'],
regtest_conf: node['bitcoin']['regtest_conf']