puppet-redis
puppet-redis copied to clipboard
Fix CentOS/RHEL fact
The version fact currently supplies the available redis version regardless of whether it's installed or not. The result is that all nodes contain a fact that implies that the latest available redis version seems to be installed.
This change switches from using yum to rpm to query the locally installed package database. It has the added benefit of not querying yum, which can be costly.
Addresses #39 in part.
We use the version fact to use the correct redis.conf template. This change would break that.
I think using rpm instead of yum makes a lot of sense, since a broken yum install or network connection could cause this fact to hang and timeout. I think running rpm instead of yum would be more efficient. 👍