From 9e0fa9b6cd905ccd6bd31a9b1a964853f3f9bf49 Mon Sep 17 00:00:00 2001 From: James Carman Date: Thu, 21 Aug 2014 09:54:46 -0400 Subject: [PATCH 1/3] Adding array handling logic. --- manifests/conf.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/conf.pp b/manifests/conf.pp index 294ff6f..25995ba 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -76,7 +76,12 @@ } if $content != undef { - $content_real = "${content}\n" + if is_array($content) { + $content_real = join($content, "\n") + } else { + $content_real = "${content}\n" + } + } else { $content_real = undef } @@ -94,7 +99,7 @@ group => $sudo::params::config_file_group, mode => '0440', source => $source, - content => $content_real, + content => "${content_real}\n", notify => $notify_real, } From 363990b2dc0dfa424ed49a203948e841d989860b Mon Sep 17 00:00:00 2001 From: James Carman Date: Thu, 21 Aug 2014 09:56:53 -0400 Subject: [PATCH 2/3] Adding array handling logic. --- manifests/conf.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/conf.pp b/manifests/conf.pp index 25995ba..a7f487c 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -79,7 +79,7 @@ if is_array($content) { $content_real = join($content, "\n") } else { - $content_real = "${content}\n" + $content_real = $content} } } else { From a42e0aa541404a1cf4c27db6a546fe1b3037cc03 Mon Sep 17 00:00:00 2001 From: James Carman Date: Thu, 21 Aug 2014 09:58:02 -0400 Subject: [PATCH 3/3] Adding array handling logic. --- manifests/conf.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/conf.pp b/manifests/conf.pp index a7f487c..b1fb9e3 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -79,7 +79,7 @@ if is_array($content) { $content_real = join($content, "\n") } else { - $content_real = $content} + $content_real = $content } } else {