Greg Karékinian 6f696d7634 Define access rules in the PostgreSQL primary recipe
Access is done for the IP of a server for all users and all databases
for ejabberd and gitea
2020-06-11 18:20:04 +02:00

18 lines
340 B
Ruby

#
# Cookbook:: kosmos_gitea
# Recipe:: pg_db
#
# Copyright:: 2020, Kosmos Developers, All Rights Reserved.
gitea_data_bag_item = data_bag_item("credentials", "gitea")
postgresql_user "gitea" do
action :create
password gitea_data_bag_item["postgresql_password"]
end
postgresql_database "gitea" do
owner "gitea"
action :create
end