wazuh/wazuh-puppet

Improve package revision set up for Wazuh manager and Wazuh indexer packages

Closed this issue · 0 comments

Description

It has been detected that the installation methods for Wazuh manager and Wazuh indexer have hardcoded the package revision to -1. The same change that Wazuh Dashboard has should be applied so that it always takes the latest available revision:

# assign version according to the package manager
case $facts['os']['family'] {
'Debian': {
$dashboard_version_install = "${dashboard_version}-*"
}
'Linux', 'RedHat', default: {
$dashboard_version_install = $dashboard_version
}
}
# install package
package { 'wazuh-dashboard':
ensure => $dashboard_version_install,
name => $dashboard_package,
}

Related