Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
"undefined method `+' for false:FalseClass" when using package resources on CentOS 8 #8965
CentOS Linux release 8.0.1905 (Core)
Create a recipe that installs a package, for instance:
There is a related issue: #7988
but the problem is when it's trying to
yeah rhel8 doesn't have yum libraries so yum doesn't work and yum_package doesn't work. that isn't really a bug except for maybe having a better error message.
i think there are rpms that you can install even on rhel8 to get some kinds of backcompat with yum, but you shouldn't.
the fact that dnf_package doesn't work (and you seem to be reporting that it is wiring up the package provider to the yum_package provider) is the buggier part.
but i'm a bit suspicious that you've got some kind of horribly stripped down image without the right python libs and/or dnf itself, which will be hopeless and not a bug.
I get the same output as @vsingh-msys , no issue with dnf but a problem with yum, since rhel8/centos8 don't bring such libraries (and it's a bad idea to try to force its installation) then yum_package won't work in such platforms, I'm rewriting the recipe using the execute resource, thank you for the clarification!
@lamont-granquist indeed, I've reviewed the chef documentation and it states
Thank you for you help!