Ensure error log is present before trying to manage ownership

If mysql generates an error log in between puppet runs, the log's
ownership and group might not match the ownership and group set by the
file resource. This means sequential puppet runs will appear not to be
idempotent. This patch makes sure the file is there from the start so
that it doesn't have to change its ownership later.
This commit is contained in:
Colleen Murphy 2014-10-07 14:28:00 -07:00
parent e6dceb13da
commit ec6b97ea5d

View file

@ -10,8 +10,9 @@ class mysql::server::service {
}
file { $mysql::params::log_error:
owner => 'mysql',
group => 'mysql',
ensure => present,
owner => 'mysql',
group => 'mysql',
}
service { 'mysqld':