Skip to content

Commit

Permalink
Merge pull request #328 from wazuh/fix-reports-settings
Browse files Browse the repository at this point in the history
Fix reports settings
  • Loading branch information
Zenidd authored Dec 22, 2020
2 parents 6546f6c + 0cc2e1c commit 61b3b50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/reports.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
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,
) {

require wazuh::params_manager

concat::fragment { $name:
target => 'ossec.conf',
target => 'manager_ossec.conf',
order => 70,
content => template('wazuh/fragments/_reports.erb')
}
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 61b3b50

Please sign in to comment.