Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CentOS/RHEL fact #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pall-valmundsson
Copy link

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.

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 fsalum#39 in part.
@fsalum
Copy link
Owner

fsalum commented Jun 16, 2015

We use the version fact to use the correct redis.conf template. This change would break that.

@bplunkert
Copy link

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants