Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make syscheck file_limit configurable #603 #604

Open
wants to merge 1 commit into
base: 4.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@
$ossec_syscheck_synchronization_interval = $wazuh::params_agent::ossec_syscheck_synchronization_interval,
$ossec_syscheck_synchronization_max_eps = $wazuh::params_agent::ossec_syscheck_synchronization_max_eps,
$ossec_syscheck_synchronization_max_interval = $wazuh::params_agent::ossec_syscheck_synchronization_max_interval,
Wazuh::Enabled $ossec_syscheck_filelimit_enabled = $wazuh::params_agent::ossec_syscheck_filelimit_enabled,
Integer $ossec_syscheck_filelimit_entries = $wazuh::params_agent::ossec_syscheck_filelimit_entries,
$ossec_syscheck_nodiff = $wazuh::params_agent::ossec_syscheck_nodiff,
$ossec_syscheck_skip_nfs = $wazuh::params_agent::ossec_syscheck_skip_nfs,
$ossec_syscheck_windows_audit_interval = $wazuh::params_agent::windows_audit_interval,
Expand Down
2 changes: 2 additions & 0 deletions manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@
$ossec_syscheck_synchronization_interval = $wazuh::params_manager::ossec_syscheck_synchronization_interval,
$ossec_syscheck_synchronization_max_eps = $wazuh::params_manager::ossec_syscheck_synchronization_max_eps,
$ossec_syscheck_synchronization_max_interval = $wazuh::params_manager::ossec_syscheck_synchronization_max_interval,
Wazuh::Enabled $ossec_syscheck_filelimit_enabled = $wazuh::params_agent::ossec_syscheck_filelimit_enabled,
Integer $ossec_syscheck_filelimit_entries = $wazuh::params_agent::ossec_syscheck_filelimit_entries,

$ossec_syscheck_nodiff = $wazuh::params_manager::ossec_syscheck_nodiff,
$ossec_syscheck_skip_nfs = $wazuh::params_manager::ossec_syscheck_skip_nfs,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params_agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
$ossec_syscheck_synchronization_max_eps = '10'
$ossec_syscheck_synchronization_max_interval = '1h'

$ossec_syscheck_filelimit_enabled = 'yes'
$ossec_syscheck_filelimit_entries = '100000'

$ossec_syscheck_nodiff = '/etc/ssl/private.key'
$ossec_syscheck_skip_nfs = 'yes'

Expand Down
3 changes: 3 additions & 0 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@
$ossec_syscheck_synchronization_max_eps = '10'
$ossec_syscheck_synchronization_max_interval = '1h'

$ossec_syscheck_filelimit_enabled = 'yes'
$ossec_syscheck_filelimit_entries = '100000'

$ossec_syscheck_nodiff = '/etc/ssl/private.key'
$ossec_syscheck_skip_nfs = 'yes'

Expand Down
6 changes: 6 additions & 0 deletions templates/fragments/_syscheck.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<%- if @ossec_syscheck_auto_ignore -%>
<auto_ignore frequency="10" timeframe="3600"><%=@ossec_syscheck_auto_ignore%></auto_ignore>
<%- end -%>
<file_limit>
<%- if @ossec_syscheck_filelimit_enabled -%>
<enabled><%= @ossec_syscheck_filelimit_enabled %></enabled>
<%- end -%>
<entries><%= @ossec_syscheck_filelimit_entries %></entries>
</file_limit>
<%- if @ossec_syscheck_process_priority -%>
<process_priority><%=@ossec_syscheck_process_priority%></process_priority>
<%- end -%>
Expand Down
3 changes: 3 additions & 0 deletions types/enabled.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Type for allowed values when enabling/disabling Wazuh options
type Wazuh::Enabled = Enum['yes', 'no']