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']