17 lines
321 B
Ruby
17 lines
321 B
Ruby
#
|
|
# Cookbook:: kosmos_akaunting
|
|
# Recipe:: pg_db
|
|
#
|
|
|
|
credentials = data_bag_item("credentials", "akaunting")
|
|
|
|
postgresql_user credentials["pg_username"] do
|
|
action :create
|
|
password credentials["pg_password"]
|
|
end
|
|
|
|
postgresql_database credentials["pg_database"] do
|
|
owner credentials["pg_username"]
|
|
action :create
|
|
end
|