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

Adds logic for installing redid-sentinel package #254

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

petems
Copy link
Member

@petems petems commented Dec 12, 2017

# 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
Copy link

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

Copy link

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.

Copy link
Member Author

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

Copy link
Member Author

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 👍

@petems petems force-pushed the update_debian_package_for_sentinel branch from 50ad996 to 21ed840 Compare December 12, 2017 16:15
@@ -87,4 +87,26 @@
}
end

describe 'on Debian Stretch' do
Copy link

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! 👍

@petems petems force-pushed the update_debian_package_for_sentinel branch from 21ed840 to 7c0e40c Compare December 12, 2017 17:33
@petems petems merged commit 3a42f48 into master Dec 13, 2017
@ekohl ekohl deleted the update_debian_package_for_sentinel branch November 13, 2019 12:12
cegeka-jenkins pushed a commit to cegeka/puppet-redis that referenced this pull request Feb 16, 2021
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