-
Notifications
You must be signed in to change notification settings - Fork 183
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
Adds logic for installing redid-sentinel package #254
Conversation
manifests/sentinel.pp
Outdated
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775414 for context | ||
if (versioncmp($::operatingsystemmajrelease, '16.04') >= 0 or $::redis::manage_repo) { | ||
if ( | ||
versioncmp($::operatingsystemmajrelease, '16.04') >= 0 or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also include something like $::operatingsystem == "ubuntu"
and below the same for "debian"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and still I think the condition should go to params.pp. This way it is still broken for debian-jessie and older, as the require => Package[$package_name];
some lines later will fail otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, the edgecase is unlikely (Ubuntu on 9 or earlier) but might as well protect against it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The require package name works fine, because on Jessie the package is redis instead of redis-sentinel. The tests work, both unit and acceptance 👍
50ad996
to
21ed840
Compare
spec/classes/redis_sentinel_spec.rb
Outdated
@@ -87,4 +87,26 @@ | |||
} | |||
end | |||
|
|||
describe 'on Debian Stretch' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be "on Debian Jessie".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! 👍
* Debian Stretch also added a separate package also: https://packages.debian.org/stretch/redis-sentinel * Closes #253
21ed840
to
7c0e40c
Compare
* Debian Stretch also added a separate package also: https://packages.debian.org/stretch/redis-sentinel * Closes voxpupuli#253
also: https://packages.debian.org/stretch/redis-sentinel