-
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
Adding support for Redis6 config and new features #388
Conversation
@@ -42,849 +43,1033 @@ repositories. | |||
|
|||
## Classes | |||
|
|||
### `redis` | |||
### <a name="redis"></a>`redis` |
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.
Could you regenerate REFERENCE.md
prior to the changes in a separate commit to make reviewing easier?
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.
@ekohl I did the split to two commits
@@ -679,7 +679,7 @@ class { 'redis::globals': | |||
|
|||
it do | |||
if facts[:operatingsystem] == 'Ubuntu' && facts[:operatingsystemmajrelease] == '16.04' | |||
is_expected.not_to contain_file(config_file_orig).with_content(%r{protected-mode}) | |||
is_expected.not_to contain_file(config_file_orig).with_content(%r{^protected-mode$}) |
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 regex isn't really needed. In fact, I'd say it's better not to be strict. It's expecting that protected-mode
isn't present at all, regardless of where in the file it shows up.
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.
I would say it's better to be strict.
If we only set variables, without touching documentation inside the file, so people can use them for reference then
# protected-mode example
would be shown somewhere which is caught by the previous regexp and the test fails
spec/classes/redis_spec.rb
Outdated
'ensure' => 'running', | ||
'enable' => 'true', |
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.
Generally it makes it easier to review if you separate out the visual changes to a separate commit.
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.
Removed from the scope of this changes
This now has a merge conflict. |
Pull Request (PR) description
This commit introduces the latest config for Redis6 and Sentinel, with new parameters. Additionally, the MemoryPolicy type is introduced with some small adjustments in the rest of the code.
As discussed previously on voxpupuli IRC this is a base commit, and depending on the review I will make changes accordingly.