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

Merge 4.6.0 #1

Merged
merged 113 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
e1e49e1
bump 4.4.2 version
vcerenu Apr 28, 2023
8972054
Revision update
teddytpc1 May 17, 2023
0a03db2
Merge pull request #663 from wazuh/bump-4-4-2
teddytpc1 May 18, 2023
4020191
Merge branch '4.5' into merge-44-into-45
teddytpc1 May 18, 2023
025d434
Merge pull request #666 from wazuh/merge-44-into-45
teddytpc1 May 18, 2023
8269614
Bump to 4.4.3
rauldpm May 25, 2023
a1e57c9
Merge pull request #672 from wazuh/bump-4.4.3
rauldpm May 26, 2023
e6e5e8b
Merge remote-tracking branch 'origin/4.4' into 4.5-merge-4.4
rauldpm May 29, 2023
3090255
Merge pull request #677 from wazuh/4.5-merge-4.4
rauldpm May 29, 2023
6a9ccb0
bump 4.4.4 version
vcerenu Jun 6, 2023
124d06b
change revision
vcerenu Jun 6, 2023
f6d0c24
bump 4.4.5 version
vcerenu Jun 6, 2023
548f038
Revision bump
teddytpc1 Jun 12, 2023
6d79729
Revision bump
teddytpc1 Jun 12, 2023
d5bdea2
Merge pull request #679 from wazuh/pr-4-4-4-to-4-4
teddytpc1 Jun 13, 2023
0297d72
Merge branch '4.4.5' into merge-4.4-into-4.4.5
teddytpc1 Jun 14, 2023
99480ca
Merge pull request #681 from wazuh/merge-4.4-into-4.4.5
teddytpc1 Jun 14, 2023
f7a60ed
Merge branch '4.5' into merge-4.4.5-into-4.5
teddytpc1 Jun 14, 2023
44fcd5a
Merge pull request #682 from wazuh/merge-4.4.5-into-4.5
teddytpc1 Jun 14, 2023
9c873a2
Bump 4.6.0 to 4.6.0 branch
c-bordon Jun 23, 2023
abfc127
Merge pull request #685 from wazuh/Bump-4.6.0-to4.6.0
vcerenu Jun 23, 2023
0bfcfa0
bump version 4.5.0
vcerenu Jun 26, 2023
d4bc655
bump version 4.5.1
vcerenu Jun 26, 2023
cd1ee63
Merge pull request #688 from wazuh/bump-4-5-1
vcerenu Jun 26, 2023
6eae98b
Merge pull request #694 from wazuh/4.4.4
teddytpc1 Jul 7, 2023
f04dc27
Bump to 4.4.5
c-bordon Jul 7, 2023
349126f
Merge pull request #695 from wazuh/bump_4.4.5
teddytpc1 Jul 7, 2023
7ebcffa
Bump revision to branch 4.4.5
c-bordon Jul 10, 2023
b5cd17f
Merge pull request #696 from wazuh/Bump-Revision-RC2-to-4.4.5
c-bordon Jul 10, 2023
4f16bb5
Merge pull request #698 from wazuh/merge-4.4.5-into-4.4
vcerenu Jul 11, 2023
c719751
Merge 4.4 into 4.5.0
c-bordon Jul 11, 2023
a192cdd
Merge pull request #699 from wazuh/Merge-4.4-to-4.5.0
c-bordon Jul 11, 2023
901c022
Merge 4.5.0 into 4.5.1
c-bordon Jul 11, 2023
8dac088
merge 4.5.0 with 4.5.1
c-bordon Jul 11, 2023
0563f95
Merge pull request #701 from wazuh/merge-4.5.0-into-4.5.1
vcerenu Jul 11, 2023
77590db
Merge 4.5.1 into 4.6.0
c-bordon Jul 11, 2023
1cd2f64
Added merge missing
c-bordon Jul 11, 2023
b307f60
Merge pull request #702 from wazuh/merge-4.5.1-into-4.6.0
vcerenu Jul 11, 2023
31d3868
delete update_from_year parameter
vcerenu Jul 18, 2023
93a75b3
Merge pull request #708 from wazuh/706-deprecate-update
teddytpc1 Jul 18, 2023
96d33bf
Bump to 4.5.2
vcerenu Jul 19, 2023
ac19be9
Merge pull request #710 from wazuh/bump-4.5.2
teddytpc1 Jul 19, 2023
ccad32b
Merge pull request #713 from wazuh/merge-4.5.0-into-4.5.1
teddytpc1 Jul 21, 2023
afd0796
Merge pull request #714 from wazuh/merge-4.5.1-into-4.5.2
vcerenu Jul 21, 2023
93f631a
resolving merge conflicts
vcerenu Jul 21, 2023
8058841
Merge pull request #715 from wazuh/merge-4.5.2-into-4.6.0
teddytpc1 Jul 21, 2023
f490163
Rocky Linux Agent Support
derekmpage Jul 26, 2023
dd45ea4
Merge branch '4.5.2' into rocky44
vcerenu Jul 31, 2023
d0f8f9b
Merge pull request #720 from derekmpage/rocky44
vcerenu Jul 31, 2023
fc58dae
delete dependency from activeresponse to param_manager
vcerenu Aug 3, 2023
58f6134
Merge pull request #723 from wazuh/722-decouple-param_managerpp-from-…
teddytpc1 Aug 3, 2023
2deaa7e
Updating the vulnerability detector default configuration block with …
pereyra-m Aug 8, 2023
c444b0a
Merge pull request #727 from wazuh/10774-alma-support
teddytpc1 Aug 9, 2023
c059255
add suse vd options
vcerenu Aug 10, 2023
4065930
remove stretch and add rhel 9 into vd options
vcerenu Aug 10, 2023
ca8cf4f
Merge pull request #732 from wazuh/merge-4.5.2-into-4.6.0
davidcr01 Aug 11, 2023
6e13327
add SO versions into VD
vcerenu Aug 11, 2023
37595a5
Merge pull request #729 from wazuh/728-update-the-vulnerability-detec…
teddytpc1 Aug 14, 2023
43c881a
Changed revision to 40502
c-bordon Aug 17, 2023
ecb0f96
Merge pull request #738 from wazuh/Bump-revision-to-4.5.1
teddytpc1 Aug 17, 2023
5f45b86
Changed revision to 40503
c-bordon Aug 17, 2023
e7f9559
Merge pull request #739 from wazuh/Bump-revision-to-4.5.1-40503
teddytpc1 Aug 17, 2023
797d265
resolving conflicts
vcerenu Aug 24, 2023
7498c28
Merge pull request #744 from wazuh/merge-4.5.1-into-4.5.2
teddytpc1 Aug 24, 2023
951b742
resolving conflicts
vcerenu Aug 24, 2023
4992747
Merge pull request #745 from wazuh/merge-4.5.2-into-4.6.0
teddytpc1 Aug 24, 2023
ea031b5
Add Debian Bookworm VDT support
Aug 25, 2023
5a52b3b
Merge pull request #749 from wazuh/18542-vdt-bookworm-support
teddytpc1 Aug 25, 2023
a25fb3b
Bump to 4.5.3
davidcr01 Aug 29, 2023
6109f69
Merge pull request #752 from wazuh/bump-4.5.3
teddytpc1 Aug 29, 2023
0cb8f57
Bump revision to 40505
davidcr01 Sep 4, 2023
930c86d
Merge pull request #754 from wazuh/bump-revision-40505
davidjiglesias Sep 4, 2023
3210319
fix os provider for suse
vcerenu Sep 5, 2023
42dfcaa
Merge pull request #757 from wazuh/fix-os-provider
teddytpc1 Sep 5, 2023
0882fba
resolving conflicts
vcerenu Sep 5, 2023
53dabb0
Merge pull request #758 from wazuh/merge-4.5.2-into-4.6.0
teddytpc1 Sep 5, 2023
97976ce
Updated config dir
c-bordon Sep 6, 2023
b3c84bb
Merge pull request #760 from wazuh/759-update-config-dir-from-usrshar…
teddytpc1 Sep 6, 2023
56da880
Removed config dir
c-bordon Sep 6, 2023
0025fdf
Merge pull request #761 from wazuh/759-fix-config-dir
teddytpc1 Sep 6, 2023
1c44dcc
Merge branch '4.5.2' into merge-4.5.2-into-4.5.3
davidcr01 Sep 7, 2023
6a5adac
Merge pull request #765 from wazuh/merge-4.5.2-into-4.5.3
teddytpc1 Sep 7, 2023
095937f
Merge branch '4.5.3' into merge-4.5.3-into-4.6.0
davidcr01 Sep 7, 2023
d69eb7b
Added empty line to changelog
davidcr01 Sep 7, 2023
6e5490a
Merge pull request #766 from wazuh/merge-4.5.3-into-4.6.0
teddytpc1 Sep 7, 2023
dc462f7
Updated wazuh_extensions_version variable
davidcr01 Sep 11, 2023
d7493db
Updated wazuh_extensions_version variable to v4.6.0
davidcr01 Sep 12, 2023
236d9c7
Merge pull request #770 from wazuh/bug/769-wazuh_extensions_version-fix
teddytpc1 Sep 12, 2023
4a9723d
Revision Bump
teddytpc1 Sep 22, 2023
d4469c5
Merge pull request #781 from wazuh/bump-4.6.0-revision
teddytpc1 Sep 22, 2023
f58599b
Bump revision to 40507
davidcr01 Sep 28, 2023
e976765
Merge pull request #783 from wazuh/change/782-bump-revision-4.5.3-rc2
teddytpc1 Sep 28, 2023
c1f71e0
Fixed Wazuh indexer deployment error in Ubuntu 18
davidcr01 Oct 5, 2023
f0c6a84
Merge pull request #784 from wazuh/bug/19409-fix-error-runuser-comman…
teddytpc1 Oct 5, 2023
01d2316
Bump 4.5.3 revision
teddytpc1 Oct 5, 2023
49a66f5
Merge pull request #786 from wazuh/bump-4.5.3-revision
teddytpc1 Oct 5, 2023
da48e8b
Merge branch '4.5.3' into merge-4.5.3-into-4.6.0
davidcr01 Oct 6, 2023
d433718
Merge pull request #788 from wazuh/merge-4.5.3-into-4.6.0
davidcr01 Oct 6, 2023
2a5f051
Bump revision to 40602
davidcr01 Oct 6, 2023
41f4e3e
Merge pull request #790 from wazuh/bump-revision-4.6.0
teddytpc1 Oct 6, 2023
cfcfdc0
add path parameter add remove paths for commands
vcerenu Oct 12, 2023
80c106e
add path parameter add remove paths for commands
vcerenu Oct 12, 2023
3357672
Merge pull request #797 from wazuh/19607-alerts-not-displaying-on-waz…
teddytpc1 Oct 12, 2023
ad2a908
bump 4.5.4 version
vcerenu Oct 17, 2023
a1822ba
Merge pull request #803 from wazuh/bump-version-4.5.4
vcerenu Oct 17, 2023
bf6e75f
Bump revision to 40510
davidcr01 Oct 19, 2023
566335f
Merge pull request #806 from wazuh/bump-revision-40510
davidcr01 Oct 19, 2023
97db575
Added v4.5.4 to CHANGELOG.md
davidcr01 Oct 23, 2023
753ce86
Merge branch '4.5.4' into merge-4.5.4-into-4.6.0
davidcr01 Oct 23, 2023
ceaa9bf
Merge pull request #808 from wazuh/merge-4.5.4-into-4.6.0
davidcr01 Oct 23, 2023
4bffa05
bump revision
vcerenu Oct 23, 2023
7420632
Merge pull request #816 from wazuh/bump-revision-4.6.0
vcerenu Oct 23, 2023
6dedb2a
Merge tag 'tags/v4.6.0' into merge-4.6.0
vaskosmihaylov Nov 7, 2023
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
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,60 @@ All notable changes to this project will be documented in this file.

- Support to 4.6.0 Wazuh release.

## Wazuh Puppet v4.5.4

### Added

- Support to 4.5.4 Wazuh release.

## Wazuh Puppet v4.5.3

### Added

- Support to 4.5.3 Wazuh release.

## Wazuh Puppet v4.5.2

### Added

- Support to 4.5.2 Wazuh release.

## Wazuh Puppet v4.5.1

### Added

- Support to 4.5.1 Wazuh release.

## Wazuh Puppet v4.5.0

### Added

- Support to 4.5.0 Wazuh release.

## Wazuh Puppet v4.4.5

### Added

- Support to 4.4.5 Wazuh release.

## Wazuh Puppet v4.4.4

### Added

- Support to 4.4.4 Wazuh release.

## Wazuh Puppet v4.4.3

### Added

- Support to 4.4.3 Wazuh release.

## Wazuh Puppet v4.4.2

### Added

- Support to 4.4.2 Wazuh release.

## Wazuh Puppet v4.4.1

### Added
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
WAZUH-PUPPET_VERSION="v4.6.0"
REVISION="40600"
REVISION="40603"
VERSION=4.6.0
3 changes: 0 additions & 3 deletions manifests/activeresponse.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
$before_arg = undef,
$content_arg = 'wazuh/fragments/_activeresponse.erb'
) {

require wazuh::params_manager

concat::fragment { $active_response_name:
target => $target_arg,
order => $order_arg,
Expand Down
5 changes: 3 additions & 2 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
}
}'Amazon':{
$apply_template_os = 'amazon'
}'CentOS','Centos','centos','AlmaLinux':{
}'CentOS','Centos','centos','AlmaLinux','Rocky':{
$apply_template_os = 'centos'
}
default: { fail('OS not supported') }
Expand Down Expand Up @@ -575,8 +575,9 @@
${agent_auth_option_manager} ${agent_auth_option_agent} ${agent_auth_option_password} ${agent_auth_option_address}"

exec { 'agent-auth-linux':
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
command => $agent_auth_command,
unless => "/bin/egrep -q '.' ${::wazuh::params_agent::keys_file}",
unless => "egrep -q '.' ${::wazuh::params_agent::keys_file}",
require => Concat['agent_ossec.conf'],
before => Service[$agent_service_name],
notify => Service[$agent_service_name],
Expand Down
2 changes: 1 addition & 1 deletion manifests/dashboard.pp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
}

unless $use_keystore {
file { '/usr/share/wazuh-dashboard/config/opensearch_dashboards.keystore':
file { '/etc/wazuh-dashboard/opensearch_dashboards.keystore':
ensure => absent,
require => Package['wazuh-dashboard'],
before => Service['wazuh-dashboard'],
Expand Down
10 changes: 6 additions & 4 deletions manifests/filebeat_oss.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$filebeat_oss_elastic_password = 'admin',
$filebeat_oss_version = '7.10.2',
$wazuh_app_version = '4.6.0_7.10.2',
$wazuh_extensions_version = '4.6',
$wazuh_extensions_version = 'v4.6.0',
$wazuh_filebeat_module = 'wazuh-filebeat-0.2.tar.gz',

$filebeat_fileuser = 'root',
Expand Down Expand Up @@ -46,10 +46,12 @@
# Needed since GitHub can only ETAG and result in changes of the mtime everytime.
# TODO: Include file into the wazuh/wazuh-puppet project or use file { checksum => '..' } for this instead of the exec construct.
exec { 'cleanup /etc/filebeat/wazuh-template.json':
command => '/bin/rm -f /etc/filebeat/wazuh-template.json',
onlyif => '/bin/test -f /etc/filebeat/wazuh-template.json',
unless => "/bin/curl -s 'https://raw.githubusercontent.com/wazuh/wazuh/${wazuh_extensions_version}/extensions/elasticsearch/7.x/wazuh-template.json' | /bin/cmp -s '/etc/filebeat/wazuh-template.json'",
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
command => 'rm -f /etc/filebeat/wazuh-template.json',
onlyif => 'test -f /etc/filebeat/wazuh-template.json',
unless => "curl -s 'https://raw.githubusercontent.com/wazuh/wazuh/${wazuh_extensions_version}/extensions/elasticsearch/7.x/wazuh-template.json' | cmp -s '/etc/filebeat/wazuh-template.json'",
}

-> file { '/etc/filebeat/wazuh-template.json':
owner => 'root',
group => 'root',
Expand Down
2 changes: 1 addition & 1 deletion manifests/indexer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}

exec { 'Initialize the Opensearch security index in Wazuh indexer':
path => ['/usr/bin', '/bin', '/usr/sbin'],
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
command => "/usr/share/wazuh-indexer/bin/indexer-security-init.sh && touch ${indexer_security_init_lockfile}",
creates => $indexer_security_init_lockfile,
require => Service['wazuh-indexer'],
Expand Down
13 changes: 10 additions & 3 deletions manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,11 @@
$vulnerability_detector_provider_redhat = $wazuh::params_manager::vulnerability_detector_provider_redhat,
$vulnerability_detector_provider_redhat_enabled = $wazuh::params_manager::vulnerability_detector_provider_redhat_enabled,
$vulnerability_detector_provider_redhat_os = $wazuh::params_manager::vulnerability_detector_provider_redhat_os,
$vulnerability_detector_provider_redhat_update_from_year = $wazuh::params_manager::vulnerability_detector_provider_redhat_update_from_year,
$vulnerability_detector_provider_redhat_update_interval = $wazuh::params_manager::vulnerability_detector_provider_redhat_update_interval,

$vulnerability_detector_provider_nvd = $wazuh::params_manager::vulnerability_detector_provider_nvd,
$vulnerability_detector_provider_nvd_enabled = $wazuh::params_manager::vulnerability_detector_provider_nvd_enabled,
$vulnerability_detector_provider_nvd_os = $wazuh::params_manager::vulnerability_detector_provider_nvd_os,
$vulnerability_detector_provider_nvd_update_from_year = $wazuh::params_manager::vulnerability_detector_provider_nvd_update_from_year,
$vulnerability_detector_provider_nvd_update_interval = $wazuh::params_manager::vulnerability_detector_provider_nvd_update_interval,
#lint:endignore

Expand All @@ -193,13 +191,22 @@

$vulnerability_detector_provider_alas = $wazuh::params_manager::vulnerability_detector_provider_alas,
$vulnerability_detector_provider_alas_enabled = $wazuh::params_manager::vulnerability_detector_provider_alas_enabled,
$vulnerability_detector_provider_alas_os = $wazuh::params_manager::vulnerability_detector_provider_alas_os,
$vulnerability_detector_provider_alas_os = $wazuh::params_manager::vulnerability_detector_provider_alas_os,
$vulnerability_detector_provider_alas_update_interval = $wazuh::params_manager::vulnerability_detector_provider_alas_update_interval,

$vulnerability_detector_provider_suse = $wazuh::params_manager::vulnerability_detector_provider_suse,
$vulnerability_detector_provider_suse_enabled = $wazuh::params_manager::vulnerability_detector_provider_suse_enabled,
$vulnerability_detector_provider_suse_os = $wazuh::params_manager::vulnerability_detector_provider_suse_os,
$vulnerability_detector_provider_suse_update_interval = $wazuh::params_manager::vulnerability_detector_provider_suse_update_interval,

$vulnerability_detector_provider_msu = $wazuh::params_manager::vulnerability_detector_provider_msu,
$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: 6 additions & 1 deletion manifests/params_agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
}
}
}
/^(wheezy|stretch|buster|bullseye|sid|precise|trusty|vivid|wily|xenial|bionic|focal|groovy|jammy)$/: {
/^(wheezy|stretch|buster|bullseye|bookworm|sid|precise|trusty|vivid|wily|xenial|bionic|focal|groovy|jammy)$/: {
$server_service = 'wazuh-manager'
$server_package = 'wazuh-manager'
$wodle_openscap_content = undef
Expand Down Expand Up @@ -463,6 +463,11 @@
$ossec_service_provider = 'redhat'
}
}
'Rocky': {
if ( $::operatingsystemrelease =~ /^8.*/ ) {
$ossec_service_provider = 'redhat'
}
}
default: { fail('This ossec module has not been tested on your distribution') }
}
}
Expand Down
34 changes: 25 additions & 9 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -170,30 +170,28 @@
$vulnerability_detector_provider_canonical_enabled = 'no'
$vulnerability_detector_provider_canonical_os = ['trusty',
'xenial',
'bionic'
'bionic',
'focal',
'jammy'
]
$vulnerability_detector_provider_canonical_update_interval = '1h'


$vulnerability_detector_provider_debian = 'yes'
$vulnerability_detector_provider_debian_enabled = 'no'
$vulnerability_detector_provider_debian_os = ['wheezy',
'stretch',
'jessie',
'buster'
$vulnerability_detector_provider_debian_os = ['buster',
'bullseye'
]
$vulnerability_detector_provider_debian_update_interval = '1h'
$vulnerability_detector_provider_redhat = 'yes'
$vulnerability_detector_provider_redhat_enabled = 'no'
$vulnerability_detector_provider_redhat_os = ['5','6','7','8']
$vulnerability_detector_provider_redhat_update_from_year = '2010'
$vulnerability_detector_provider_redhat_os = ['5','6','7','8','9']
$vulnerability_detector_provider_redhat_update_interval = '1h' # syslog


$vulnerability_detector_provider_nvd = 'yes'
$vulnerability_detector_provider_nvd_enabled = 'no'
$vulnerability_detector_provider_nvd_os = []
$vulnerability_detector_provider_nvd_update_from_year = '2010'
$vulnerability_detector_provider_nvd_update_interval = '1h'

$vulnerability_detector_provider_arch = 'yes'
Expand All @@ -207,10 +205,28 @@
]
$vulnerability_detector_provider_alas_update_interval = '1h'

$vulnerability_detector_provider_suse = 'yes'
$vulnerability_detector_provider_suse_enabled = 'no'
$vulnerability_detector_provider_suse_os = ['11-server',
'11-desktop',
'12-server',
'12-desktop',
'15-server',
'15-desktop'
]
$vulnerability_detector_provider_suse_update_interval = '1h'

$vulnerability_detector_provider_msu = 'yes'
$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 Expand Up @@ -444,7 +460,7 @@
}
}
}
/^(wheezy|stretch|buster|bullseye|sid|precise|trusty|vivid|wily|xenial|bionic|focal|groovy|jammy)$/: {
/^(wheezy|stretch|buster|bullseye|bookworm|sid|precise|trusty|vivid|wily|xenial|bionic|focal|groovy|jammy)$/: {
$server_service = 'wazuh-manager'
$server_package = 'wazuh-manager'
$wodle_openscap_content = undef
Expand Down
4 changes: 2 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
server => 'pgp.mit.edu'
}
case $::lsbdistcodename {
/(jessie|wheezy|stretch|buster|bullseye|sid|precise|trusty|vivid|wily|xenial|yakketi|bionic|focal|groovy|jammy)/: {
/(jessie|wheezy|stretch|buster|bullseye|bookworm|sid|precise|trusty|vivid|wily|xenial|yakketi|bionic|focal|groovy|jammy)/: {

apt::source { 'wazuh':
ensure => present,
Expand All @@ -35,7 +35,7 @@
}
'Linux', 'RedHat' : {
case $::os[name] {
/^(CentOS|RedHat|OracleLinux|Fedora|Amazon|AlmaLinux)$/: {
/^(CentOS|RedHat|OracleLinux|Fedora|Amazon|AlmaLinux|Rocky)$/: {
if ( $::operatingsystemrelease =~ /^5.*/ ) {
$baseurl = 'https://packages.wazuh.com/4.x/yum/5/'
$gpgkey = 'http://packages.wazuh.com/key/GPG-KEY-WAZUH'
Expand Down
27 changes: 23 additions & 4 deletions templates/fragments/_vulnerability_detector.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<% if @vulnerability_detector_provider_redhat %>
<provider name="redhat">
<% if @vulnerability_detector_provider_redhat_enabled %><enabled><%= @vulnerability_detector_provider_redhat_enabled %></enabled><% end %>
<% if @vulnerability_detector_provider_redhat_update_from_year %><update_from_year><%= @vulnerability_detector_provider_redhat_update_from_year %></update_from_year><% end %>
<% if @vulnerability_detector_provider_redhat_update_interval %><update_interval><%= @vulnerability_detector_provider_redhat_update_interval %></update_interval><% end %>
<% if !@vulnerability_detector_provider_redhat_os.empty? %>
<% @vulnerability_detector_provider_redhat_os.each do |os| %>
Expand All @@ -41,9 +40,8 @@
<% if @vulnerability_detector_provider_nvd %>
<provider name="nvd">
<% if @vulnerability_detector_provider_nvd_enabled %><enabled><%= @vulnerability_detector_provider_nvd_enabled %></enabled><% end %>
<% if @vulnerability_detector_provider_nvd_update_from_year %><update_from_year><%= @vulnerability_detector_provider_nvd_update_from_year %></update_from_year><% end %>
<% if @vulnerability_detector_provider_nvd_update_interval %><update_interval><%= @vulnerability_detector_provider_nvd_update_interval %></update_interval><% end %>
</provider>
</provider>
<% end %>
<% if @vulnerability_detector_provider_arch %>
<provider name="arch">
Expand All @@ -62,11 +60,32 @@
<% end %>
</provider>
<% end %>
<% if @vulnerability_detector_provider_suse %>
<provider name="suse">
<% if @vulnerability_detector_provider_suse_enabled %><enabled><%= @vulnerability_detector_provider_suse_enabled %></enabled><% end %>
<% if @vulnerability_detector_provider_suse_update_interval %><update_interval><%= @vulnerability_detector_provider_suse_update_interval %></update_interval><% end %>
<% if !@vulnerability_detector_provider_suse_os.empty? %>
<% @vulnerability_detector_provider_suse_os.each do |os| %>
<os><%= os %></os>
<% end %>
<% end %>
</provider>
<% end %>
<% if @vulnerability_detector_provider_msu %>
<provider name="msu">
<% if @vulnerability_detector_provider_msu_enabled %><enabled><%= @vulnerability_detector_provider_msu_enabled %></enabled><% end %>
<% 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>