Do not pass the password on the command line anymore to fix a warning

Since email notifications work now we do not want warnings. Write an
option file with the credentials for mysqldump
(https://dev.mysql.com/doc/refman/5.7/en/option-files.html)
This commit is contained in:
Greg Karékinian
2018-11-09 14:01:33 +01:00
parent 7073e5d574
commit ffc6858dcc
2 changed files with 18 additions and 15 deletions

View File

@@ -40,7 +40,6 @@ end
Database::MySQL.defaults do |db|
db.host = "<%= node["backup"]["mysql"]["host"] %>"
db.username = "<%= node["backup"]["mysql"]["username"] %>"
db.password = "<%= node["backup"]["mysql"]["password"] %>"
db.additional_options = ['--quick', '--single-transaction']
end
<%- end -%>