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

Request removal of custom fact #39

Open
dansajner opened this issue Sep 16, 2014 · 6 comments
Open

Request removal of custom fact #39

dansajner opened this issue Sep 16, 2014 · 6 comments

Comments

@dansajner
Copy link

Hi. I really like this module except for the lookup of the redis version. This fact gets executed on every server regardless of its redis intentions and the yum command can be very inefficient. Anyway I can convince you to remove it and just require a version be provided?

@fsalum
Copy link
Owner

fsalum commented Nov 25, 2014

Hi @dansajner, I understand your concerns. We opted for that so the module will be very straightforward to use, without requiring the user to know in advance what version of redis they will be installing since that changes a lot between the different versions of the same OS.

pall-valmundsson added a commit to pall-valmundsson/puppet-redis that referenced this issue Mar 29, 2015
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.
@danieldreier
Copy link

I also find this fact to be frustrating. We have redis on a handful of nodes, yet this fact executes on hundreds of systems with every run -- it's extremely inefficient.

@ikryten
Copy link

ikryten commented Oct 19, 2015

At the very least you could call yum with the '--cacheonly' flag. But I agree, this is really inefficient for a fact.

@danielparks
Copy link

It's now causing warnings because it uses :timeout, which is not supported in Puppet 4.

@alex-harvey-z3q
Copy link

I'm hitting this issue too. Is this module still being maintained?

@grantholly
Copy link

This is also a problem if you have a Redis 3.x deployment as redis_version.rb has a case statement with a default value of nil. Subsequent puppet runs will completely nuke your redis.conf file, like cat /dev/null > /etc/redis.conf kind of behavior because the template redis.conf.erb doesn't contain a block for Redis 3.x.

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

No branches or pull requests

7 participants