(#10390) Manage /etc/mysql directory.
/etc/mysql/my.cnf was being managed and /etc/mysql was not. This was causing failures if the directory was not created by the package. This commit manages it in case it was not created by the package.
This commit is contained in:
parent
bc6ed1dfc6
commit
319644cec5
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ class mysql::config(
|
|||
notify => Exec['mysqld-restart'],
|
||||
require => Package['mysql-server']
|
||||
}
|
||||
file { '/etc/mysql':
|
||||
ensure => directory,
|
||||
mode => '755',
|
||||
}
|
||||
|
||||
file { '/etc/mysql/my.cnf':
|
||||
content => template('mysql/my.cnf.erb'),
|
||||
|
|
Loading…
Reference in a new issue