Skip to content

Commit

Permalink
Add a parameter ossec_rootcheck_ignore_list
Browse files Browse the repository at this point in the history
Add parameters:
 - wazuh::manager::ossec_rootcheck_ignore_list
 - wazuh::agent::ossec_rootcheck_ignore_list
  • Loading branch information
Artur Molchanov committed Feb 14, 2020
1 parent 4885e89 commit b6f3f86
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
$ossec_rootcheck_check_ports = $wazuh::params_agent::ossec_rootcheck_check_ports,
$ossec_rootcheck_check_if = $wazuh::params_agent::ossec_rootcheck_check_if,
$ossec_rootcheck_frequency = $wazuh::params_agent::ossec_rootcheck_frequency,
$ossec_rootcheck_ignore_list = $wazuh::params_agent::ossec_rootcheck_ignore_list,
$ossec_rootcheck_rootkit_files = $wazuh::params_agent::ossec_rootcheck_rootkit_files,
$ossec_rootcheck_rootkit_trojans = $wazuh::params_agent::ossec_rootcheck_rootkit_trojans,
$ossec_rootcheck_skip_nfs = $wazuh::params_agent::ossec_rootcheck_skip_nfs,
Expand Down
1 change: 1 addition & 0 deletions manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
$ossec_rootcheck_check_ports = $wazuh::params_manager::ossec_rootcheck_check_ports,
$ossec_rootcheck_check_if = $wazuh::params_manager::ossec_rootcheck_check_if,
$ossec_rootcheck_frequency = $wazuh::params_manager::ossec_rootcheck_frequency,
$ossec_rootcheck_ignore_list = $wazuh::params_manager::ossec_rootcheck_ignore_list,
$ossec_rootcheck_rootkit_files = $wazuh::params_manager::ossec_rootcheck_rootkit_files,
$ossec_rootcheck_rootkit_trojans = $wazuh::params_manager::ossec_rootcheck_rootkit_trojans,
$ossec_rootcheck_skip_nfs = $wazuh::params_manager::ossec_rootcheck_skip_nfs,
Expand Down
1 change: 1 addition & 0 deletions manifests/params_agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
$ossec_rootcheck_check_ports = 'yes'
$ossec_rootcheck_check_if = 'yes'
$ossec_rootcheck_frequency = 43200
$ossec_rootcheck_ignore_list = []
$ossec_rootcheck_rootkit_files = '/var/ossec/etc/shared/rootkit_files.txt'
$ossec_rootcheck_rootkit_trojans = '/var/ossec/etc/shared/rootkit_trojans.txt'
$ossec_rootcheck_skip_nfs = 'yes'
Expand Down
1 change: 1 addition & 0 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
$ossec_rootcheck_check_ports = 'yes'
$ossec_rootcheck_check_if = 'yes'
$ossec_rootcheck_frequency = 43200
$ossec_rootcheck_ignore_list = []
$ossec_rootcheck_rootkit_files = '/var/ossec/etc/rootcheck/rootkit_files.txt'
$ossec_rootcheck_rootkit_trojans = '/var/ossec/etc/rootcheck/rootkit_trojans.txt'
$ossec_rootcheck_skip_nfs = 'yes'
Expand Down
7 changes: 6 additions & 1 deletion templates/fragments/_rootcheck.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
<% if @ossec_rootcheck_frequency-%>
<frequency><%= @ossec_rootcheck_frequency %></frequency>
<%- end -%>
<%- if @ossec_rootcheck_ignore_list -%>
<%- @ossec_rootcheck_ignore_list.each do |ignore_element| -%>
<ignore><%= ignore_element %></ignore>
<%- end -%>
<%- end -%>
<% if @ossec_rootcheck_rootkit_files-%>
<rootkit_files><%= @ossec_rootcheck_rootkit_files %></rootkit_files>
<%- end -%>
Expand All @@ -37,7 +42,7 @@
<%- end -%>
<% if @ossec_rootcheck_skip_nfs-%>
<skip_nfs><%= @ossec_rootcheck_skip_nfs%></skip_nfs>
<%- end -%>
<%- end -%>
</rootcheck>
<%- else -%>
<!-- Rootcheck files (static) -->
Expand Down

0 comments on commit b6f3f86

Please sign in to comment.