Re: [Puppet Users] facter to return version of an installed package

2019-05-14 Thread Ben Ford
You cannot pass a variable to facter, because that's not how its model is designed. Facter is a tool that runs to gather relatively static system information, called facts. A fact with a given name has a given value. In other words, you need one unique fact for every value you're gathering. (though

[Puppet Users] facter to return version of an installed package

2019-05-14 Thread Helmut Schneider
Hi, before I reinvent the wheel: Does anyone know a custom fact that returns the version of an installed package (if it is installed)? I assume it would be something like Facter.add(:package_version) do setcode do osfamily = Facter.value(:osfamily) case osfamily when /ubuntu|debia