-
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
Make it possible to install sentinel independently #389
base: master
Are you sure you want to change the base?
Conversation
Regarding the puppet5/ubuntu 20.04 tests, the errors don't look like they were caused by my changes... |
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 looks good to me though it needs the addition of tests that show the presence or absence of the redis class based on the new require_redis parameter.
README.md
Outdated
@@ -133,6 +133,15 @@ class { '::redis::sentinel': | |||
} | |||
``` | |||
|
|||
If installation without redis-server is desired, set `require_redis` parameter to false, i.e | |||
```puppet | |||
class { '::redis::sentinel': |
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.
style nit - drop the leading ::
so it reads redis::sentinel
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.
Ok thanks for the tests suggestion. I will take a look at it :)
Dear @tomsajan, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Hi, Can i help to push this PR? thanks |
@gizmo15 it's probably best to submit your own PR. |
Thanks for taking interest in this. To be honest, this slipped from my mind. I'll try to make it work.
|
Hi, so I merged it to the current master. Not sure though on how to tackle tests to verify the presence or absence of the redis class... Also, this MR still has the labe Thanks and have a great day :) |
I would recommend to rebase it on master. We don't like it when a PR merges in master. Though I think the bot may not be able to remove the label. |
Hello, any news about this PR ? |
It doesn't appear it was ever updated as requested during the review, so it can't be merged as-is. The original author would have to update it, or someone else could create a new pull request based on it. |
Let me give it a try for a day or two :) |
d82cdb5
to
a290a1b
Compare
a290a1b
to
79d3493
Compare
So I squashed my changes and rebased it all to current master. I am not sure I will be able to test this code as I don't use puppet anymore in my infrastructure, but I will try to come up with something tomorrow. |
@tomsajan Hello, thanks for your feedback. I don't really understand the Puppet CI error 🤷♂️ |
Pull Request (PR) description
This PR introduces the possibility to install
redis::sentinel
standalone, withoutredis::server
. It comes in handy when you need your sentinels to be for example on a different node than your redis server.The change itself is a pretty straightforward, I am just adding a
require_redis
parameter, that makes the requirement ofredis
class conditional. The default value is true, which includes theredis
and it is therefore backward compatible with the current setup.The only downside of this approach I see currently is that in case someone needs a standalone
redis-sentinel
from a managed repository, the repository must be added manually as theredis::preinstall
is no longer included (as was previously with theredis
class)This Pull Request (PR) fixes the following issues
Thank you for any input :)