puppetlabs/puppetlabs-mysql — pull request #129 by m00t (2012-11-01 11:27:05+00:00)
Title: Load old root password from /root/.my.cnf when changing password

Given there is no installed mysql server
When I run class { 'mysql::server': config_hash => { 'root_password' => 'foo' } }
And after that I run class { 'mysql::server': config_hash => { 'root_password' => 'bar' } }
Then mysql root password should be "bar"

Instead of it error produced: access denied for root@localhost using password: NO

Because when mysqladmin is called, $HOME is undefined and /root/.my.cnf file not loaded. So we
load it explicitly