Fix the postgresql credentials for the backup attributes

This commit is contained in:
Greg Karékinian 2019-05-08 16:58:47 +02:00
parent 7271065c5b
commit 90815bb274

View File

@ -212,7 +212,7 @@ unless node.chef_environment == "development"
node.override["backup"]["postgresql"]["host"] = "localhost" node.override["backup"]["postgresql"]["host"] = "localhost"
unless platform?('ubuntu') && node[:platform_version].to_f < 18.04 unless platform?('ubuntu') && node[:platform_version].to_f < 18.04
node.override["backup"]["postgresql"]["username"] = "mastodon" 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 else
node.override["backup"]["postgresql"]["username"] = "postgres" node.override["backup"]["postgresql"]["username"] = "postgres"
node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres'] node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres']