Skip to content

Commit

Permalink
Ensure error log is present before trying to manage ownership
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Colleen Murphy committed Oct 7, 2014
1 parent e6dceb1 commit ec6b97e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/server/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
}

file { $mysql::params::log_error:
owner => 'mysql',
group => 'mysql',
ensure => present,
owner => 'mysql',
group => 'mysql',
}

service { 'mysqld':
Expand Down

0 comments on commit ec6b97e

Please sign in to comment.