I noticed the following message whilst provisioning using this module:

notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: mysqladmin: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2)

Even though it's not fatal, it's cleaner for Exec['set_mysql_rootpw'] to require File['/etc/mysql/conf.d'].
This commit is contained in:
Greg Trahair 2012-04-23 13:06:39 +03:00
parent 12a4410e63
commit 097879bad3

View file

@ -75,7 +75,8 @@ class mysql::config(
logoutput => true,
unless => "mysqladmin -u root -p${root_password} status > /dev/null",
path => '/usr/local/sbin:/usr/bin',
notify => Exec['mysqld-restart']
notify => Exec['mysqld-restart'],
require => File['/etc/mysql/conf.d'],
}
file { '/root/.my.cnf':