# # Cookbook Name:: kosmos-mastodon # Recipe:: pg_db # postgresql_data_bag_item = data_bag_item('credentials', 'postgresql') postgresql_user 'mastodon' do action :create password postgresql_data_bag_item['mastodon_user_password'] end postgresql_database 'mastodon' do owner 'mastodon' action :create end