Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Chef::Exceptions::Exec: yum_package[xinetd] (os-hardening::yum line 50) #57
I run Centos 6.5. If i run the os-hardening the first time, it fails with the following error. But the second chef run is successful. I can provide you the virtual machine for testing.
Managed to reproduce it with your image, thanks for that!
As it turns out, hardening and chef both work correctly: The package "xinetd" is called to be purged if it exists. In case of this image, it is installed, so the uninstall runs. For the release of chef we're using here, it is this, or translated:
When I run this manually on the box, I get this:
So this is an uninstall error which happens in CentOS. There isn't much we can do on our end, unfortunately. The package removal still works as advertised and the error only appears during the first run and is gone during all other runs.