Add rpcpassword support to bitcoin snap recipe
This commit is contained in:
parent
97ae73c987
commit
c98be94404
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user