Skip to content

Commit

Permalink
manifests/reports.pp: add capabilitie to use multiple email targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenidd committed Dec 22, 2020
1 parent 89c167f commit 0cc2e1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/reports.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Optional[String] $r_srcip = undef,
Optional[String] $r_user = undef,
String $r_title = '',
String $r_email_to = '',
$r_email_to = '',
Optional[Enum['yes', 'no']] $r_showlogs = undef,
) {

Expand Down
6 changes: 5 additions & 1 deletion templates/fragments/_reports.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
<user><%= @r_user %></user>
<%- end -%>
<title><%= @r_title %></title>
<email_to><%= @r_email_to %></email_to>
<% if @r_email_to != '' -%>
<% @r_email_to.each do |gr| -%>
<email_to><%= gr %></email_to>
<% end %>
<% end %>
<%- if defined?(@r_showlogs) -%>
<showlogs><%= @r_showlogs %></showlogs>
<%- end -%>
Expand Down

0 comments on commit 0cc2e1c

Please sign in to comment.