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

Wazuh service cannot be created in AL2023

Open lokasandeep opened this issue 1 year ago • 1 comments

I am trying to install wazuh 4.7.1 on Al2023 AMI. getting the below error for the service resource type

[1;31mError: /Stage[main]/Wazuh::Agent/Service[wazuh-agent]/ensure: change from 'stopped' to 'running' failed: Could not enable wazuh-agent: Execution of '/sbin/chkconfig --add wazuh-agent' returned 1: error reading information on service wazuh-agent: No such file or directory

we faced the same issue for other modules, but fixed it by updating the Provider as 'systemd' for service resource type. I could not find that in Wazuh module. please advice if any override parameters can be passed to Provider attribute.

provider => 'systemd',

lokasandeep avatar Jan 16 '24 17:01 lokasandeep

Puppet version: 6.13.0

lokasandeep avatar Jan 23 '24 19:01 lokasandeep

Hello. Yes, this behavior is expected as our Puppet deployment didn't support the installation in Amazon Linux 2.

In the v4.8.0 Wazuh version, we added the support for Amazon Linux 2023 in the following PR: https://github.com/wazuh/wazuh-puppet/pull/1000 The v4.8.0 Wazuh version will be available in the next weeks. You can wait to this version to be released or use the 4.8.0 branch to perform this deployment, but take into account that this branch is in development currently.

Hope it helps.

davidcr01 avatar Jun 10 '24 08:06 davidcr01

Thank you @davidcr01 for the update !.

lokasandeep avatar Jun 10 '24 18:06 lokasandeep