Fix missing Mastodon/PosgreSQL backups

The backup cookbook was incomplete, and also there was no database
configured to be backed up.
This commit is contained in:
2018-09-08 12:54:51 +08:00
parent 214e69427e
commit 4bccf4dd88
4 changed files with 22 additions and 12 deletions

View File

@@ -17,7 +17,11 @@ KosmosBackup.new(:default, 'default backup') do
<%- end -%>
<%- if node["backup"]["postgresql"] -%>
database PostgreSQL
<%- node["backup"]["postgresql"]["databases"].each do |db_name| -%>
database PostgreSQL, :"<%= db_name.to_sym %>" do |db|
db.name = "<%= db_name %>"
end
<%- end -%>
<%- end -%>
<%- if node["mongodb"] -%>