Fix root password ordering issue

This commit fixes an ordering issue for setting the 
mysql root password.
This commit is contained in:
Gary Larizza 2011-06-16 15:35:16 -07:00
parent 6b98633cc8
commit 1d16d45f4e

View file

@ -13,7 +13,7 @@ class mysql::server::redhat(
unless => "mysqladmin -u root -p${root_password} status > /dev/null",
path => '/usr/local/sbin:/usr/bin',
require => [Package['mysql-server'], Service['mysqld']],
before => File['/root/.my.cnf'],
before => File['/root/.my.cnf', '/etc/my.cnf'],
notify => Exec['mysqld-restart'],
}
file{['/root/.my.cnf', '/etc/my.cnf']: