Closed ecottom closed 3 years ago
I think chef-splunk's systemd?
helper should be removed in favor of the one included with chef-client. In the meantime there is a workaround over at https://github.com/chef/chef/issues/11528#issuecomment-833701887.
Although, chef-splunk's metadata states chef_version, >= 13, this declaration hadn't been updated for a long time and was made long before Chef 17 was released. This issue and a few other issues should be taken up as a single PR in chef-splunk to upgrade the cookbook for chef17, IMHO.
Brief Description
Any service resource with this cookbook as a dependency that is not action nothing throws
NameError undefined local variable or method 'node' for Chef::Provider::Service::Systemd:Class
Potential Cause
systemd?
in Chef::Provider::Service::Systemd:Class seem to conflict with ::ChefSplunk::Helpers.systemd?.Steps To Reproduce
Run the following recipe with chef-splunk as a dependency on rhel8 with chef-client v17.1.35
Chef Run Output