From a688d071bf6e7d60f451de5533c3f290c1dbe84c Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Tue, 22 Apr 2014 11:16:08 +0300 Subject: [PATCH] raid: Don't replace existing mdadm.conf We don't want to erase existing ARRAY configs. Using augeas would be better, but it didn't work on this file on CentOS 5. --- raid/manifests/init.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/raid/manifests/init.pp b/raid/manifests/init.pp index 7a3787b..fad8c2f 100644 --- a/raid/manifests/init.pp +++ b/raid/manifests/init.pp @@ -55,6 +55,7 @@ class raid::tools::mdadm { "centos", "fedora": { file { "/etc/mdadm.conf": ensure => present, + replace => false, content => "MAILADDR root\n", mode => "0644", owner => "root",