Skip to content

Commit ec6b97e

Browse files
author
Colleen Murphy
committed
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.
1 parent e6dceb1 commit ec6b97e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/server/service.pp

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
}
1111

1212
file { $mysql::params::log_error:
13-
owner => 'mysql',
14-
group => 'mysql',
13+
ensure => present,
14+
owner => 'mysql',
15+
group => 'mysql',
1516
}
1617

1718
service { 'mysqld':

0 commit comments

Comments
 (0)