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

enable sentinel bind usage with multi ip #365

Merged
merged 4 commits into from
Sep 22, 2020

Conversation

ragingdave
Copy link

@ragingdave ragingdave commented Sep 16, 2020

Pull Request (PR) description

There is currently an issue where if you use the allowed array of IP for the sentinel bind, this fails and the template becomes something completely broken as the resulting template shows:

bind ["10.0.0.155", "127.0.0.1"]

This PR fixes that by using the same technique in the base redis usage to force it into an array and flatten it to generate a correct bind line.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

The type also allows undef and this ends up with an empty bind statement and breaks the tests. Please have a look at that.

manifests/sentinel.pp Outdated Show resolved Hide resolved
@bastelfreak
Copy link
Member

@ragingdave thanks for the PR! Can you add a unit test for this change?

manifests/sentinel.pp Outdated Show resolved Hide resolved
@bastelfreak bastelfreak merged commit d443861 into voxpupuli:master Sep 22, 2020
@ragingdave ragingdave deleted the redis-sentinel-fix branch September 23, 2020 15:21
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 8, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
@bastelfreak bastelfreak mentioned this pull request Oct 8, 2020
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
bastelfreak added a commit to bastelfreak/puppet-redis that referenced this pull request Oct 10, 2020
chronological order:
* voxpupuli#272 was opened
* voxpupuli#365 was opened
* voxpupuli#365 was merged
* voxpupuli#272 was merged without a rebase
* tests are broken
cegeka-jenkins pushed a commit to cegeka/puppet-redis that referenced this pull request Feb 16, 2021
enable sentinel bind usage with multi ip
@ekohl ekohl added the enhancement New feature or request label Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants