Skip to content

Commit

Permalink
resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Aug 24, 2023
2 parents e7f9559 + 37595a5 commit 797d265
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## Wazuh Puppet v4.5.2

### Added

- Support to 4.5.2 Wazuh release.

## Wazuh Puppet v4.5.1

### Added
Expand Down
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
WAZUH-PUPPET_VERSION="v4.5.1"
REVISION="40503"
VERSION=4.5.1
WAZUH-PUPPET_VERSION="v4.5.2"
REVISION="40504"
VERSION=4.5.2
2 changes: 1 addition & 1 deletion kitchen/test/integration/agent/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe package('wazuh-agent') do
it { is_expected.to be_installed }
its('version') { is_expected.to eq '4.5.1-1' }
its('version') { is_expected.to eq '4.5.2-1' }
end

describe service('wazuh-agent') do
Expand Down
2 changes: 1 addition & 1 deletion kitchen/test/integration/mngr/manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe package('wazuh-manager') do
it { is_expected.to be_installed }
its('version') { is_expected.to eq '4.5.1-1' }
its('version') { is_expected.to eq '4.5.2-1' }
end

# Verifying service
Expand Down
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
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
2 changes: 1 addition & 1 deletion manifests/dashboard.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class wazuh::dashboard (
$dashboard_package = 'wazuh-dashboard',
$dashboard_service = 'wazuh-dashboard',
$dashboard_version = '4.5.1',
$dashboard_version = '4.5.2',
$indexer_server_ip = 'localhost',
$indexer_server_port = '9200',
$dashboard_path_certs = '/etc/wazuh-dashboard/certs',
Expand Down
2 changes: 1 addition & 1 deletion manifests/filebeat_oss.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$filebeat_oss_elastic_user = 'admin',
$filebeat_oss_elastic_password = 'admin',
$filebeat_oss_version = '7.10.2',
$wazuh_app_version = '4.5.1_7.10.2',
$wazuh_app_version = '4.5.2_7.10.2',
$wazuh_extensions_version = '4.5',
$wazuh_filebeat_module = 'wazuh-filebeat-0.2.tar.gz',

Expand Down
2 changes: 1 addition & 1 deletion manifests/indexer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$indexer_node_max_local_storage_nodes = '1',
$indexer_service = 'wazuh-indexer',
$indexer_package = 'wazuh-indexer',
$indexer_version = '4.5.1-1',
$indexer_version = '4.5.2-1',
$indexer_fileuser = 'wazuh-indexer',
$indexer_filegroup = 'wazuh-indexer',

Expand Down
7 changes: 6 additions & 1 deletion manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,14 @@

$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,
Expand Down
7 changes: 6 additions & 1 deletion manifests/params_agent.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2015, Wazuh Inc.
# Wazuh-Agent configuration parameters
class wazuh::params_agent {
$agent_package_version = '4.5.1'
$agent_package_version = '4.5.2'
$agent_package_revision = '1'
$agent_service_ensure = 'running'
$agent_msi_download_location = 'https://packages.wazuh.com/4.x/windows'
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
27 changes: 19 additions & 8 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'Linux': {

# Installation
$server_package_version = '4.5.1-1'
$server_package_version = '4.5.2-1'

$manage_repos = true
$manage_firewall = false
Expand Down Expand Up @@ -170,22 +170,22 @@
$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_os = ['5','6','7','8','9']
$vulnerability_detector_provider_redhat_update_interval = '1h' # syslog


Expand All @@ -205,6 +205,17 @@
]
$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'
Expand Down Expand Up @@ -566,7 +577,7 @@
$keys_group = 'Administrators'
$agent_service = 'WazuhSvc'
$agent_package = 'Wazuh Agent 4.5.1'
$agent_package = 'Wazuh Agent 4.5.2'
$server_service = ''
$server_package = ''
$api_service = ''
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
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wazuh-wazuh",
"version": "4.5.1",
"version": "4.5.2",
"author": "WAZUH",
"summary": "Install and configure Wazuh-HIDS client and server",
"license": "Apache-2.0",
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 @@ -60,6 +60,17 @@
<% 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 %>
Expand Down

0 comments on commit 797d265

Please sign in to comment.