From ec6b97ea5db1aa516b3f39d3655491fe9a1f4315 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Tue, 7 Oct 2014 14:28:00 -0700 Subject: [PATCH] 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. --- manifests/server/service.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 5131adf..95618fb 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -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':