Can I write a class to make sure a software package is at a minimum level only if the software is installed?

asked 2017-06-22 08:08:01 -0600

sboss gravatar image

Due to security issues, we have to make sure various RPMs are at a minimum level IF they are installed. Can I write a class to check to see if the RPM is installed, and if so, that it is at (or greater) than a given level?

I have searched but my google-fu is weak today. Any advice would be greatly appreciated.

thanks sb

edit retag flag offensive close merge delete



I don't believe there is an easy way other than writing a custom fact that would check it. Puppet is good at doing what you tell it to do, It's not really designed to conditionally ensure things. You are probably looking for a tool like

DarylW gravatar imageDarylW ( 2017-06-22 09:11:43 -0600 )edit

DarylW that is what I thought but hoped there was a way to use puppet to make sure. Thanks! sb

sboss gravatar imagesboss ( 2017-06-22 10:57:11 -0600 )edit