wazuh-puppet icon indicating copy to clipboard operation
wazuh-puppet copied to clipboard

validate_legacy() is deprecated from stdlib

Open alaunay opened this issue 1 year ago • 3 comments

Hello,

puppetlabs-stdlib deprecate'd the validate_legacy in 9.0.0 back in May. Thus, the current wazuh-puppet 4.7.1 produces an error when using it with a >=9.0.0 stdlib:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, deprecation. validate_legacy. This method is deprecated, please use Puppet data types to validate parameters at ["/etc/puppetlabs/code/environments/production/modules/wazuh/manifests/agent.pp", 255] (file: /etc/puppetlabs/code/environments/production/modules/wazuh/manifests/agent.pp, line: 255, column: 3) on node XXX

It's used quite a few times in the source:

wazuh-puppet $ grep -r validate_legacy | wc -l 17

Reference: https://github.com/puppetlabs/puppetlabs-stdlib/pull/1352

It could probably be replace with is_a: https://github.com/puppetlabs/puppetlabs-stdlib/blob/main/REFERENCE.md#is_a

alaunay avatar Dec 28 '23 13:12 alaunay

Same problem

fabian-technocite avatar Jul 25 '24 13:07 fabian-technocite

Same problem

Unfortunately, I have a feeling they absolutely do not care about issues created by anyone but themselves. Given the complete silent treatment, we're working on our own branch:

https://github.com/cusae/wazuh-puppet/tree/v4.7.2_cusae

And I don't think we'll be trying to push anything anymore. The most recent version of the module even embark another module hijacking, see #1038 ; and it does not seem any "official" are worried about that. Something has gone very wrong here.

alaunay avatar Jul 30 '24 15:07 alaunay

Same problem

Unfortunately, I have a feeling they absolutely do not care about issues created by anyone but themselves. Given the complete silent treatment, we're working on our own branch:

https://github.com/cusae/wazuh-puppet/tree/v4.7.2_cusae

And I don't think we'll be trying to push anything anymore. The most recent version of the module even embark another module hijacking, see #1038 ; and it does not seem any "official" are worried about that. Something has gone very wrong here.

There hasn't been a version of the puppet module that we can use. I'm not sure what is going on, but it seems like they don't have any idea how to write puppet code.

54-68-65-20-53-74-61-67 avatar Sep 04 '24 19:09 54-68-65-20-53-74-61-67