20 lines
414 B
Ruby
20 lines
414 B
Ruby
#
|
|
# Cookbook Name:: kosmos-bitcoin
|
|
# Recipe:: lndhub-go_pg_db
|
|
#
|
|
|
|
credentials = data_bag_item('credentials', 'lndhub-go')
|
|
|
|
postgres_user = node['lndhub-go']['postgres']['user']
|
|
postgres_db = node['lndhub-go']['postgres']['database']
|
|
|
|
postgresql_user postgres_user do
|
|
action :create
|
|
password credentials['postgresql_password']
|
|
end
|
|
|
|
postgresql_database postgres_db do
|
|
owner postgres_user
|
|
action :create
|
|
end
|