diff --git a/CHANGELOG.md b/CHANGELOG.md index a5c82416..48458b2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ All notable changes to this project will be documented in this file. ### Fixed +- Add condition to execute apt update ([#1256](https://github.com/wazuh/wazuh-puppet/pull/1256)) +- Fix certificates.pp ([#1255](https://github.com/wazuh/wazuh-puppet/pull/1255)) - Modify the version used into the Wazuh indexer and Wazuh manager deployment ([#1229](https://github.com/wazuh/wazuh-puppet/pull/1229)) ### Deleted diff --git a/manifests/certificates.pp b/manifests/certificates.pp index 4fb8866d..1dc2a9eb 100644 --- a/manifests/certificates.pp +++ b/manifests/certificates.pp @@ -2,7 +2,7 @@ # Wazuh repository installation class wazuh::certificates ( $wazuh_repository = 'packages.wazuh.com', - $wazuh_version = '4.8', + $wazuh_version = '4.11', $indexer_certs = [], $manager_certs = [], $manager_master_certs = [], diff --git a/manifests/repo.pp b/manifests/repo.pp index 69d8838b..eaf2c209 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -53,15 +53,15 @@ content => "deb [signed-by=/usr/share/keyrings/wazuh.gpg] $wazuh_repo_url $repo_release main\n", order => '01', require => File['/usr/share/keyrings/wazuh.gpg'], + before => Exec['apt-update'], } } default: { fail('This ossec module has not been tested on your distribution (or lsb package not installed)') } } # Define an exec resource to run 'apt-get update' exec { 'apt-update': - command => '/usr/bin/apt-get update', - refreshonly => true, - path => ['/bin', '/usr/bin'], + command => 'apt-get update', + path => ['/bin', '/usr/bin'], } } 'Linux', 'RedHat', 'Suse' : {