Use new postgres client role and config

Fixes btcpay having still used the old postgres master, and integrating
it into the global client config setup from here on out.
This commit is contained in:
Basti 2021-01-26 11:49:20 +01:00
parent f7d3abc307
commit 5a5db43de3
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
3 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,8 @@
"hostname": "bitcoin-2",
"ipaddress": "192.168.122.148",
"roles": [
"btcpay"
"btcpay",
"postgresql_client"
],
"recipes": [
"kosmos-base",
@ -21,6 +22,7 @@
"kosmos-bitcoin::c-lightning",
"kosmos-bitcoin::lnd",
"kosmos-bitcoin::rtl",
"kosmos-postgresql::hostsfile",
"kosmos-bitcoin::dotnet",
"kosmos-bitcoin::nbxplorer",
"kosmos-bitcoin::btcpay",

View File

@ -1,6 +1,7 @@
name "btcpay"
run_list %w(
role[postgresql_client]
kosmos-bitcoin::dotnet
kosmos-bitcoin::nbxplorer
kosmos-bitcoin::btcpay

View File

@ -51,7 +51,7 @@ template node['btcpay']['config_path'] do
nbxplorer_url: "http://127.0.0.1:#{node['nbxplorer']['port']}",
btcpay_port: node['btcpay']['port'],
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_database: node['btcpay']['postgres']['database'],
postgres_user: node['btcpay']['postgres']['user'],