From 90bd2dadb2dd8f735bd26b169fc7b73a8af10352 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 28 Jan 2022 17:33:22 -0600 Subject: [PATCH] Configure boltzd access for RTL --- site-cookbooks/kosmos-bitcoin/recipes/rtl.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/site-cookbooks/kosmos-bitcoin/recipes/rtl.rb b/site-cookbooks/kosmos-bitcoin/recipes/rtl.rb index 31b619e..1a170a6 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/rtl.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/rtl.rb @@ -43,7 +43,13 @@ rtl_config = { } ], multiPassHashed: credentials["multiPassHashed"] -}.to_json +} + +if node['boltz'] + # TODO adapt for multi-node usage + rtl_config[:nodes][0][:Authentication][:boltzMacaroonPath] = "#{node['boltz']['boltz_dir']}/macaroons" + rtl_config[:nodes][0][:Settings][:boltzServerUrl] = "https://#{node['boltz']['rest_host']}:#{node['boltz']['rest_port']}" +end application rtl_dir do owner bitcoin_user @@ -65,7 +71,7 @@ application rtl_dir do owner bitcoin_user group bitcoin_group mode '0640' - content rtl_config + content rtl_config.to_json notifies :restart, "systemd_unit[rtl.service]", :delayed end