Skip to content

Commit

Permalink
Merge pull request #720 from derekmpage/rocky44
Browse files Browse the repository at this point in the history
Rocky Linux Agent Support
  • Loading branch information
vcerenu authored Jul 31, 2023
2 parents afd0796 + dd45ea4 commit d0f8f9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
5 changes: 5 additions & 0 deletions manifests/params_agent.pp
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0f8f9b

Please sign in to comment.