Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Commit 0a63250

Browse files
authored
Merge pull request #138 from wazuh/137-release-4.2.4
Release v4.2.4
2 parents 7c41121 + 5372df3 commit 0a63250

File tree

20 files changed

+55
-100
lines changed

20 files changed

+55
-100
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## Wazuh Chef v4.2.4
5+
6+
### Added
7+
8+
- Update to Wazuh [v4.2.4](https://github.com/wazuh/wazuh/blob/v4.2.4/CHANGELOG.md#v424)
9+
10+
### Fixed
11+
12+
- References to ossec- files were modified by the new wazuh- nomenclature.
13+
- Checks on the ossec-init.conf file, which does not exist since version 4.1.0, have been removed.
14+
415
## Wazuh Chef v4.0.4_1.11.0
516

617
### Added

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Deploy the Wazuh platform using Chef cookbooks. Chef recipes are prepared for in
1111

1212
| Wazuh version | Elastic | ODFE |
1313
|---------------|---------|--------|
14+
| v4.2.4 | v7.10.2 | v1.13.2|
1415
| v4.0.4 | v7.9.3 | v1.11.0|
1516

1617
## Dependencies

cookbooks/elastic-stack/attributes/versions.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
# ELK
88
default['elk']['major_version'] = '7.x'
9-
default['elk']['patch_version'] = '7.9.3'
9+
default['elk']['patch_version'] = '7.11.2'
1010

1111
# Wazuh
1212
default['wazuh']['major_version'] = '4.x'
13-
default['wazuh']['minor_version'] = '4.0'
14-
default['wazuh']['patch_version'] = '4.0.4'
13+
default['wazuh']['minor_version'] = '4.2'
14+
default['wazuh']['patch_version'] = '4.2.4'
1515

1616
# Kibana
17-
default['wazuh']['kibana_plugin_version'] = '4.0.4_7.9.3'
17+
default['wazuh']['kibana_plugin_version'] = '4.2.4_7.10.2'

cookbooks/elastic-stack/recipes/kibana.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
source 'kibana.yml.erb'
3636
owner 'kibana'
3737
group 'kibana'
38-
mode 0o755
38+
mode 0755
3939
variables({
4040
server_port: node['kibana']['yml']['server']['port'],
4141
server_host: node['kibana']['yml']['server']['host'],

cookbooks/filebeat-oss/attributes/versions.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
# ELK
66
default['elk']['major_version'] = "7.x"
7-
default['elk']['patch_version'] = "7.9.1"
7+
default['elk']['patch_version'] = "7.10.2"
88

99
# Wazuh
1010
default['wazuh']['major_version'] = "4.x"
11-
default['wazuh']['minor_version'] = "4.0"
12-
default['wazuh']['patch_version'] = "4.0.4"
11+
default['wazuh']['minor_version'] = "4.2"
12+
default['wazuh']['patch_version'] = "4.2.4"

cookbooks/filebeat/attributes/versions.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
# ELK
66
default['elk']['major_version'] = "7.x"
7-
default['elk']['patch_version'] = "7.9.3"
7+
default['elk']['patch_version'] = "7.10.2"
88

99
# Wazuh
1010
default['wazuh']['major_version'] = "4.x"
11-
default['wazuh']['minor_version'] = "4.0"
12-
default['wazuh']['patch_version'] = "4.0.4"
11+
default['wazuh']['minor_version'] = "4.2"
12+
default['wazuh']['patch_version'] = "4.2.4"

cookbooks/opendistro/attributes/versions.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# Author:: Wazuh <[email protected]>
66

77
# Elastic Stack
8-
default['elk']['patch_version'] = '7.9.1'
8+
default['elk']['patch_version'] = '7.10.2'
99

1010
# Opendistro
11-
default['odfe']['patch_version'] = '1.11.0'
11+
default['odfe']['patch_version'] = '1.13.2'
1212

1313
# Wazuh
1414
default['wazuh']['major_version'] = '4.x'
15-
default['wazuh']['minor_version'] = '4.0'
16-
default['wazuh']['patch_version'] = '4.0.4'
15+
default['wazuh']['minor_version'] = '4.2'
16+
default['wazuh']['patch_version'] = '4.2.4'
1717

1818
# Kibana
19-
default['wazuh']['kibana_plugin_version'] = '4.0.4_7.9.1'
19+
default['wazuh']['kibana_plugin_version'] = '4.2.4_7.10.2'
2020

2121
# Search guard
2222
default['searchguard']['version'] = '1.8'

cookbooks/opendistro/recipes/kibana.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
server_host: (node['kibana']['yml']['server']['host']).to_s,
4141
elasticsearch_hosts: node['kibana']['yml']['elasticsearch']['hosts']
4242
})
43-
mode 0o755
43+
mode 0755
4444
end
4545

4646
# Update the optimize and plugins directories permissions

cookbooks/opendistro/recipes/prerequisites.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252

5353
if node['platform_version'] >= '8'
5454
dnf_package 'Install prerequisites packages' do
55-
package_name %w[java-11-openjdk-devel libcap]
55+
package_name %w[java-11-openjdk libcap]
5656
action :install
5757
end
5858
else
5959
yum_package 'Install prerequisites packages' do
60-
package_name %w[java-11-openjdk-devel libcap]
60+
package_name %w[java-11-openjdk libcap]
6161
action :install
6262
end
6363
end
6464
when 'opensuseleap', 'suse'
6565
# Install zypper prerequisites
6666
zypper_package 'Install prerequisites packages' do
67-
package_name %w[libcap2 java-11-openjdk-devel]
67+
package_name %w[libcap2 java-11-openjdk]
6868
end
6969
else
7070
raise 'Currently platforn not supported yet. Feel free to open an issue on https://www.github.com/wazuh/wazuh-chef if you consider that support for a specific OS should be added'

cookbooks/opendistro/test/integration/opendistro/prerequisites_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
it { should be_installed }
3737
end
3838

39-
describe package('java-11-openjdk-devel') do
39+
describe package('java-11-openjdk') do
4040
it { should be_installed }
4141
end
4242
when 'suse'
4343
describe package('libcap2') do
4444
it { should be_installed }
4545
end
4646

47-
describe package('java-11-openjdk-devel') do
47+
describe package('java-11-openjdk') do
4848
it { should be_installed }
4949
end
5050
end

cookbooks/wazuh_agent/attributes/version.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Author:: Wazuh <[email protected]
44

55
default['wazuh']['major_version'] = "4.x"
6-
default['wazuh']['minor_version'] = "4.0"
7-
default['wazuh']['patch_version'] = "4.0.4"
6+
default['wazuh']['minor_version'] = "4.2"
7+
default['wazuh']['patch_version'] = "4.2.4"

cookbooks/wazuh_agent/recipes/common.rb

-13
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@
1717
# limitations under the License.
1818
#
1919

20-
ruby_block 'ossec install_type' do
21-
block do
22-
File.open('/var/ossec/etc/ossec-init.conf') do |file|
23-
file.each_line do |line|
24-
if line =~ /^TYPE="([^"]+)"/
25-
type = Regexp.last_match(1)
26-
break
27-
end
28-
end
29-
end
30-
end
31-
end
32-
3320
# Gyoku renders the XML.
3421
chef_gem 'gyoku' do
3522
compile_time false if respond_to?(:compile_time)

cookbooks/wazuh_agent/test/integration/wazuh_agent/common_test.rb

+4-15
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,24 @@
99
its('exit_status') { should eq 0 }
1010
end
1111

12-
describe command('ps -ef | grep ossec-logcollector') do
12+
describe command('ps -ef | grep wazuh-logcollector') do
1313
its('exit_status') { should eq 0 }
1414
end
1515

16-
describe command('ps -ef | grep ossec-syscheckd') do
16+
describe command('ps -ef | grep wazuh-syscheckd') do
1717
its('exit_status') { should eq 0 }
1818
end
1919

20-
describe command('ps -ef | grep ossec-execd') do
20+
describe command('ps -ef | grep wazuh-execd') do
2121
its('exit_status') { should eq 0 }
2222
end
2323

24-
describe command('ps -ef | grep ossec-agentd') do
24+
describe command('ps -ef | grep wazuh-agentd') do
2525
its('exit_status') { should eq 0 }
2626
end
2727

2828
# Check OSSEC dir
2929

30-
describe file('/var/ossec/etc/ossec-init.conf') do
31-
it { should be_symlink }
32-
end
33-
3430
describe file('/var/ossec') do
3531
it { should be_directory }
3632
its('mode') { should cmp '0750' }
@@ -45,13 +41,6 @@
4541
its('group') { should cmp 'ossec' }
4642
end
4743

48-
describe file('/etc/ossec-init.conf') do
49-
it { should exist }
50-
its('owner') { should cmp 'root' }
51-
its('group') { should cmp 'ossec' }
52-
its('mode') { should cmp '0640' }
53-
end
54-
5544
describe file('/var/ossec/etc/ossec.conf') do
5645
it { should exist }
5746
its('owner') { should cmp 'root' }

cookbooks/wazuh_manager/attributes/versions.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Author:: Wazuh <[email protected]
44

55
default['wazuh']['major_version'] = "4.x"
6-
default['wazuh']['minor_version'] = "4.0"
7-
default['wazuh']['patch_version'] = "4.0.4"
6+
default['wazuh']['minor_version'] = "4.2"
7+
default['wazuh']['patch_version'] = "4.2.4"

cookbooks/wazuh_manager/recipes/common.rb

-9
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
type = 'local'
99
else
1010
type = "test"
11-
12-
File.open('/var/ossec/etc/ossec-init.conf') do |file|
13-
file.each_line do |line|
14-
if line =~ /^TYPE="([^"]+)"/
15-
type = Regexp.last_match(1)
16-
break
17-
end
18-
end
19-
end
2011
end
2112

2213
node.normal['ossec']['install_type'] = type

cookbooks/wazuh_manager/recipes/manager.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
# Auth need to be enable only in master node.
4646
if node['ossec']['conf']['cluster']['node_type'] == 'master'
4747
execute 'Enable Authd' do
48-
command '/var/ossec/bin/ossec-control enable auth'
49-
not_if "ps axu | grep ossec-authd | grep -v grep"
48+
command '/var/ossec/bin/wazuh-control enable auth'
49+
not_if "ps axu | grep wazuh-authd | grep -v grep"
5050
end
5151
end
5252

cookbooks/wazuh_manager/templates/default/api.yaml.erb

-13
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
host: <%= @host %>
44
port: <%= @port %>
55

6-
# Set this option to "yes" in case the API is running behind a proxy server. Values: yes, no
7-
behind_proxy_server: no
8-
9-
# Advanced configuration
10-
11-
https:
12-
enabled: yes
13-
key: "api/configuration/ssl/server.key"
14-
cert: "api/configuration/ssl/server.crt"
15-
use_ca: False
16-
ca: "api/configuration/ssl/ca.crt"
17-
ssl_cipher: "TLSv1.2"
18-
196
# Logging configuration
207
# Values for API log level: disabled, info, warning, error, debug, debug2 (each level includes the previous level).
218
logs:

cookbooks/wazuh_manager/test/integration/wazuh_manager/common_test.rb

+8-19
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,44 @@
1717
its('exit_status') { should eq 0 }
1818
end
1919

20-
describe command('ps -ef | grep ossec-monitord') do
20+
describe command('ps -ef | grep wazuh-monitord') do
2121
its('exit_status') { should eq 0 }
2222
end
2323

24-
describe command('ps -ef | grep ossec-logcollector') do
24+
describe command('ps -ef | grep wazuh-logcollector') do
2525
its('exit_status') { should eq 0 }
2626
end
2727

28-
describe command('ps -ef | grep ossec-remoted') do
28+
describe command('ps -ef | grep wazuh-remoted') do
2929
its('exit_status') { should eq 0 }
3030
end
3131

32-
describe command('ps -ef | grep ossec-syscheckd') do
32+
describe command('ps -ef | grep wazuh-syscheckd') do
3333
its('exit_status') { should eq 0 }
3434
end
3535

36-
describe command('ps -ef | grep ossec-analysisd') do
36+
describe command('ps -ef | grep wazuh-analysisd') do
3737
its('exit_status') { should eq 0 }
3838
end
3939

40-
describe command('ps -ef | grep ossec-execd') do
40+
describe command('ps -ef | grep wazuh-execd') do
4141
its('exit_status') { should eq 0 }
4242
end
4343

4444
describe command('ps -ef | grep wazuh-db') do
4545
its('exit_status') { should eq 0 }
4646
end
4747

48-
describe command('ps -ef | grep ossec-authd') do
48+
describe command('ps -ef | grep wazuh-authd') do
4949
its('exit_status') { should eq 0 }
5050
end
5151

52-
describe command('ps -ef | grep ossec-apid') do
52+
describe command('ps -ef | grep wazuh-apid') do
5353
its('exit_status') { should eq 0 }
5454
end
5555

5656
# Check OSSEC dir
5757

58-
describe file('/var/ossec/etc/ossec-init.conf') do
59-
it { should be_symlink }
60-
end
61-
6258
describe file('/var/ossec') do
6359
it { should be_directory }
6460
its('mode') { should cmp '0750' }
@@ -73,13 +69,6 @@
7369
its('group') { should cmp 'ossec' }
7470
end
7571

76-
describe file('/etc/ossec-init.conf') do
77-
it { should exist }
78-
its('owner') { should cmp 'root' }
79-
its('group') { should cmp 'ossec' }
80-
its('mode') { should cmp '0640' }
81-
end
82-
8372
describe file('/var/ossec/etc/shared/default/agent.conf') do
8473
it { should exist }
8574
its('owner') { should cmp 'ossec' }

cookbooks/wazuh_manager/test/integration/wazuh_manager/manager_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
describe port(1515) do
1717
it { should be_listening }
18-
its('processes') {should include 'ossec-authd'}
18+
its('processes') {should include 'wazuh-authd'}
1919
end
2020

2121
describe port(1514) do
2222
it { should be_listening }
23-
its('processes') {should include 'ossec-remoted'}
23+
its('processes') {should include 'wazuh-remoted'}
2424
end

metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache 2.0'
55
description 'Installs/Configures Wazuh with chef cookbooks'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '4.0.4'
7+
version '4.2.4'
88
chef_version '>= 15.0'
99

1010
%w(redhat centos oracle).each do |el|

0 commit comments

Comments
 (0)