puppetlabs/puppetlabs-mysql — pull request #67 by inkblot (2012-05-02 23:36:09+00:00)
Title: Specify the defaults file to use when executing the mysql command

I ran into a problem with the mysql providers when running 'sudo puppet agent -t'. The mysql command did not look in root's home directory for the defaults file as expected, but rather in the home directory of the user running the sudo command, because puppet had not been run in a root login session. The simple fix for this is to specify the defaults file.