Skip to content

Commit

Permalink
Merge pull request #77 from jwcarman/master
Browse files Browse the repository at this point in the history
Add Array Handling Logic
  • Loading branch information
saz committed Sep 22, 2014
2 parents 6dab1b2 + a42e0aa commit b3f58c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions manifests/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@
}

if $content != undef {
$content_real = "${content}\n"
if is_array($content) {
$content_real = join($content, "\n")
} else {
$content_real = $content
}

} else {
$content_real = undef
}
Expand All @@ -94,7 +99,7 @@
group => $sudo::params::config_file_group,
mode => '0440',
source => $source,
content => $content_real,
content => "${content_real}\n",
notify => $notify_real,
}

Expand Down

0 comments on commit b3f58c5

Please sign in to comment.