Skip to content

Fix CentOS/RHEL fact#48

Open
pall-valmundsson wants to merge 1 commit intofsalum:masterfrom
pall-valmundsson:rhel-version-fact-fix
Open

Fix CentOS/RHEL fact#48
pall-valmundsson wants to merge 1 commit intofsalum:masterfrom
pall-valmundsson:rhel-version-fact-fix

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