Merge pull request 'BTCPay recipe fixes (compilation + PostgreSQL config)' (#296) from chore/btcpay_update_and_recipe_fix into master
Reviewed-on: #296
This commit is contained in:
commit
e3507879a1
@ -12,7 +12,8 @@
|
|||||||
"hostname": "bitcoin-2",
|
"hostname": "bitcoin-2",
|
||||||
"ipaddress": "192.168.122.148",
|
"ipaddress": "192.168.122.148",
|
||||||
"roles": [
|
"roles": [
|
||||||
"btcpay"
|
"btcpay",
|
||||||
|
"postgresql_client"
|
||||||
],
|
],
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"kosmos-base",
|
"kosmos-base",
|
||||||
@ -21,6 +22,7 @@
|
|||||||
"kosmos-bitcoin::c-lightning",
|
"kosmos-bitcoin::c-lightning",
|
||||||
"kosmos-bitcoin::lnd",
|
"kosmos-bitcoin::lnd",
|
||||||
"kosmos-bitcoin::rtl",
|
"kosmos-bitcoin::rtl",
|
||||||
|
"kosmos-postgresql::hostsfile",
|
||||||
"kosmos-bitcoin::dotnet",
|
"kosmos-bitcoin::dotnet",
|
||||||
"kosmos-bitcoin::nbxplorer",
|
"kosmos-bitcoin::nbxplorer",
|
||||||
"kosmos-bitcoin::btcpay",
|
"kosmos-bitcoin::btcpay",
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
name "btcpay"
|
name "btcpay"
|
||||||
|
|
||||||
run_list %w(
|
run_list %w(
|
||||||
|
role[postgresql_client]
|
||||||
kosmos-bitcoin::dotnet
|
kosmos-bitcoin::dotnet
|
||||||
kosmos-bitcoin::nbxplorer
|
kosmos-bitcoin::nbxplorer
|
||||||
kosmos-bitcoin::btcpay
|
kosmos-bitcoin::btcpay
|
||||||
|
@ -16,7 +16,10 @@ end
|
|||||||
|
|
||||||
bash 'build_btcpay' do
|
bash 'build_btcpay' do
|
||||||
cwd node['btcpay']['source_dir']
|
cwd node['btcpay']['source_dir']
|
||||||
code './build.sh'
|
code <<-EOH
|
||||||
|
systemctl stop btcpayserver.service
|
||||||
|
./build.sh
|
||||||
|
EOH
|
||||||
action :nothing
|
action :nothing
|
||||||
notifies :restart, "systemd_unit[btcpayserver.service]", :delayed
|
notifies :restart, "systemd_unit[btcpayserver.service]", :delayed
|
||||||
end
|
end
|
||||||
@ -48,7 +51,7 @@ template node['btcpay']['config_path'] do
|
|||||||
nbxplorer_url: "http://127.0.0.1:#{node['nbxplorer']['port']}",
|
nbxplorer_url: "http://127.0.0.1:#{node['nbxplorer']['port']}",
|
||||||
btcpay_port: node['btcpay']['port'],
|
btcpay_port: node['btcpay']['port'],
|
||||||
btcpay_log_path: node['btcpay']['log_path'],
|
btcpay_log_path: node['btcpay']['log_path'],
|
||||||
postgres_host: "192.168.122.1",
|
postgres_host: "pg.kosmos.local",
|
||||||
postgres_port: node['btcpay']['postgres']['port'],
|
postgres_port: node['btcpay']['postgres']['port'],
|
||||||
postgres_database: node['btcpay']['postgres']['database'],
|
postgres_database: node['btcpay']['postgres']['database'],
|
||||||
postgres_user: node['btcpay']['postgres']['user'],
|
postgres_user: node['btcpay']['postgres']['user'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user