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

Adding support for Redis6 config and new features #388

Closed
wants to merge 8 commits into from

Conversation

dom-nie
Copy link
Contributor

@dom-nie dom-nie commented Jan 31, 2021

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.

@@ -42,849 +43,1033 @@ repositories.

## Classes

### `redis`
### <a name="redis"></a>`redis`
Copy link
Member

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?

Copy link
Contributor Author

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$})
Copy link
Member

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.

Copy link
Contributor Author

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

Comment on lines 46 to 47
'ensure' => 'running',
'enable' => 'true',
Copy link
Member

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.

Copy link
Contributor Author

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

@ekohl
Copy link
Member

ekohl commented Apr 27, 2021

This now has a merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants