-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filebeat Wazuh module can not be updated automatically #587
Comments
Agree valid (edge-)case. One solution would be a compare of the current filebeat wazuh module version and the wanted version. That could be done via a fact (to collect the version) or an exec resource that also then can remove the directory. wazuh-puppet/manifests/filebeat_oss.pp Line 16 in 1a5be33
Edit: 😒 as far as i could found there exist no versioning of the filebeat module at all. The wazuh module has |
Hi @cruelsmith , I've also found the reference to the As we have only the URL, I've implemented the following strategy :
It seems to work with my first tests. |
Hi @poloz-lab, is that setup not again more complicated than the exec we had before here? wazuh-puppet/manifests/filebeat_oss.pp Lines 61 to 73 in c064588
With this code we will always get the latest version of the tar that has been set via the parameters and it will be extracted when a new version has been downloaded. |
Hi @cruelsmith , Yes the The only drawbacks is that we can't cleanup the archive or it will be downloaded again, and restart the service. I've submitted my code so everyone can compare. |
The archive resource that unpack the Filebeat Wazuh module is not able to manage the update of the module.
The
creates
parameter doesn't handle any version information. So if a new version of the module is specified, it will not be downloaded unless the actual module is manually removed.I'm working on a PR to manage that case with Puppet.
The text was updated successfully, but these errors were encountered: