Skip to content

Commit

Permalink
Merge pull request #812 from wazuh/merge-4.8.0-into-master
Browse files Browse the repository at this point in the history
Merge 4.8.0 into master
  • Loading branch information
davidcr01 authored Oct 23, 2023
2 parents 775f362 + 856650c commit 537f40e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ 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
Expand Down
3 changes: 2 additions & 1 deletion manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,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
8 changes: 5 additions & 3 deletions manifests/filebeat_oss.pp
Original file line number Diff line number Diff line change
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

0 comments on commit 537f40e

Please sign in to comment.