Skip to content

Commit

Permalink
Updating the vulnerability detector default configuration block with …
Browse files Browse the repository at this point in the history
…AlmaLinux provider
  • Loading branch information
pereyra-m committed Aug 8, 2023
1 parent 8058841 commit 2deaa7e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@
$vulnerability_detector_provider_msu_enabled = $wazuh::params_manager::vulnerability_detector_provider_msu_enabled,
$vulnerability_detector_provider_msu_update_interval = $wazuh::params_manager::vulnerability_detector_provider_msu_update_interval,

$vulnerability_detector_provider_almalinux = $wazuh::params_manager::vulnerability_detector_provider_almalinux,
$vulnerability_detector_provider_almalinux_enabled = $wazuh::params_manager::vulnerability_detector_provider_almalinux_enabled,
$vulnerability_detector_provider_almalinux_os = $wazuh::params_manager::vulnerability_detector_provider_almalinux_os,
$vulnerability_detector_provider_almalinux_update_interval = $wazuh::params_manager::vulnerability_detector_provider_almalinux_update_interval,

# syslog
$syslog_output = $wazuh::params_manager::syslog_output,
Expand Down
7 changes: 7 additions & 0 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@
$vulnerability_detector_provider_msu_enabled = 'no'
$vulnerability_detector_provider_msu_update_interval = '1h'

$vulnerability_detector_provider_almalinux = 'yes'
$vulnerability_detector_provider_almalinux_enabled = 'no'
$vulnerability_detector_provider_almalinux_os = ['8',
'9'
]
$vulnerability_detector_provider_almalinux_update_interval = '1h'

$syslog_output = false
$syslog_output_level = 2
$syslog_output_port = 514
Expand Down
11 changes: 11 additions & 0 deletions templates/fragments/_vulnerability_detector.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,15 @@
<% if @vulnerability_detector_provider_msu_update_interval %><update_interval><%= @vulnerability_detector_provider_msu_update_interval %></update_interval><% end %>
</provider>
<% end %>
<% if @vulnerability_detector_provider_almalinux %>
<provider name="almalinux">
<% if @vulnerability_detector_provider_almalinux_enabled %><enabled><%= @vulnerability_detector_provider_almalinux_enabled %></enabled><% end %>
<% if !@vulnerability_detector_provider_almalinux_os.empty? %>
<% @vulnerability_detector_provider_almalinux_os.each do |os| %>
<os><%= os %></os>
<% end %>
<% end %>
<% if @vulnerability_detector_provider_almalinux_update_interval %><update_interval><%= @vulnerability_detector_provider_almalinux_update_interval %></update_interval><% end %>
</provider>
<% end %>
</vulnerability-detector>

0 comments on commit 2deaa7e

Please sign in to comment.