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:
parent
12a4410e63
commit
097879bad3
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ class mysql::config(
|
||||||
logoutput => true,
|
logoutput => true,
|
||||||
unless => "mysqladmin -u root -p${root_password} status > /dev/null",
|
unless => "mysqladmin -u root -p${root_password} status > /dev/null",
|
||||||
path => '/usr/local/sbin:/usr/bin',
|
path => '/usr/local/sbin:/usr/bin',
|
||||||
notify => Exec['mysqld-restart']
|
notify => Exec['mysqld-restart'],
|
||||||
|
require => File['/etc/mysql/conf.d'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/root/.my.cnf':
|
file { '/root/.my.cnf':
|
||||||
|
|
Loading…
Reference in a new issue