From 90815bb274154ae70d82ff921a6afe7f74f51965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 8 May 2019 16:58:47 +0200 Subject: [PATCH] Fix the postgresql credentials for the backup attributes --- site-cookbooks/kosmos-mastodon/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-mastodon/recipes/default.rb b/site-cookbooks/kosmos-mastodon/recipes/default.rb index 5c82721..a9c866f 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/default.rb +++ b/site-cookbooks/kosmos-mastodon/recipes/default.rb @@ -212,7 +212,7 @@ unless node.chef_environment == "development" node.override["backup"]["postgresql"]["host"] = "localhost" unless platform?('ubuntu') && node[:platform_version].to_f < 18.04 node.override["backup"]["postgresql"]["username"] = "mastodon" - node.override["backup"]["postgresql"]["password"] = postgres_password + node.override["backup"]["postgresql"]["password"] = postgresql_data_bag_item['mastodon_user_password'] else node.override["backup"]["postgresql"]["username"] = "postgres" node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres']