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 puppet-redis for Redis < 3 #77

Merged
merged 1 commit into from
Dec 6, 2015
Merged

Fix puppet-redis for Redis < 3 #77

merged 1 commit into from
Dec 6, 2015

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Dec 6, 2015

A recent commit [1] broke the support of Redis < 3 when using this
Puppet module.

The parameter 'cluster-enabled' was set to False by default, but since
Redis Clustering has been brought in Redis >= 3, Redis < 3 fails to
start [2]:
"FATAL CONFIG FILE ERROR"

It was an backwards-incompatible change in puppet-redis and we can fix
it by just not setting the paramter if 'cluster_enabled' is set to False
(default).

This patch drops the 'else' statement in the redis.conf template so by
default the cluster-enabled setting won't appear in the configuration
file. It will fix Redis < 3 support and when running Redis >=3, it will
just not activate clustering.

This change is compatible with both versions.

[1] 4fb33b9
[2] http://stackoverflow.com/questions/27835659/redis-cluster-support-in-redis-2-8-19

A recent commit [1] broke the support of Redis < 3 when using this
Puppet module.

The parameter 'cluster-enabled' was set to False by default, but since
Redis Clustering has been brought in Redis >= 3, Redis < 3 fails to
start [2]:
"FATAL CONFIG FILE ERROR"

It was an backwards-incompatible change in puppet-redis and we can fix
it by just not setting the paramter if 'cluster_enabled' is set to False
(default).

This patch drops the 'else' statement in the redis.conf template so by
default the cluster-enabled setting won't appear in the configuration
file. It will fix Redis < 3 support and when running Redis >=3, it will
just not activate clustering.

This change is compatible with both versions.

[1] 4fb33b9
[2] http://stackoverflow.com/questions/27835659/redis-cluster-support-in-redis-2-8-19
@arioch
Copy link
Contributor

arioch commented Dec 6, 2015

Ah! That's quite an obvious one.
My apologies for not having caught this myself.

@arioch arioch merged commit 5a11cc0 into voxpupuli:master Dec 6, 2015
@arioch
Copy link
Contributor

arioch commented Dec 6, 2015

And of course thanks for fixing it!

@EmilienM
Copy link
Contributor Author

EmilienM commented Dec 6, 2015

@arioch no problem at all! Thanks for your responsiveness!

@EmilienM EmilienM deleted the redis-2.x-support branch December 6, 2015 17:54
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.

2 participants