diff --git a/nodes/bitcoin-2.json b/nodes/bitcoin-2.json index c99a571..01bd552 100644 --- a/nodes/bitcoin-2.json +++ b/nodes/bitcoin-2.json @@ -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", diff --git a/roles/btcpay.rb b/roles/btcpay.rb index 05749c1..c3212d5 100644 --- a/roles/btcpay.rb +++ b/roles/btcpay.rb @@ -1,6 +1,7 @@ name "btcpay" run_list %w( + role[postgresql_client] kosmos-bitcoin::dotnet kosmos-bitcoin::nbxplorer kosmos-bitcoin::btcpay diff --git a/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb b/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb index e6cba45..562ef67 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb @@ -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'],