-
Notifications
You must be signed in to change notification settings - Fork 293
Add protected-mode option to template config files #209
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
Conversation
defaults/main.yml:
* Add redis_protected_mode for redis server config
* Add redis_sentinel_protected_mode for redis sentinel config
templates/redis.conf.j2:
* Add redis_protected_mode variable for redis server config template
templates/redis_sentinel.conf.j2:
* Add redis_sentinel_protected_mode variable for redis sentinel
server config template
Signed-off-by: Tuan T. Pham <tuan@vt.edu>
|
Thanks! This closes #237 |
|
@DavidWittman you think you can merge this one soon, one less fork to manage |
defaults/main.yml
Outdated
| ## Redis sentinel configs | ||
| # Set this to true on a host to configure it as a Sentinel | ||
| redis_sentinel: false | ||
| redis_sentinel_protected_mode: yes |
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.
coerce to string "yes"
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.
Thanks @rromanchuk. I updated the PR.
defaults/main.yml: * Coerce value to string with double quote. Otherwise, .conf.j2 will write True CC: @rromanchuck Signed-off-by: Tuan T. Pham <tuan@vt.edu>
|
Thanks @rromanchuk and @neofob! |
* Add protected-mode option to template config files
defaults/main.yml:
* Add redis_protected_mode for redis server config
* Add redis_sentinel_protected_mode for redis sentinel config
templates/redis.conf.j2:
* Add redis_protected_mode variable for redis server config template
templates/redis_sentinel.conf.j2:
* Add redis_sentinel_protected_mode variable for redis sentinel
server config template
Signed-off-by: Tuan T. Pham <tuan@vt.edu>
* Update default setting to string
defaults/main.yml:
* Coerce value to string with double quote. Otherwise,
.conf.j2 will write True
CC: @rromanchuck
Signed-off-by: Tuan T. Pham <tuan@vt.edu>
|
protected mode was added in redis version 3.2, since there is no version check this will cause redis to fail with fatal config file error. In the future, it might be a good idea to version protect directives to maintain backwards compatibility. |
defaults/main.yml:
* Add redis_protected_mode for redis server config
* Add redis_sentinel_protected_mode for redis sentinel config
templates/redis.conf.j2:
* Add redis_protected_mode variable for redis server config template
templates/redis_sentinel.conf.j2:
* Add redis_sentinel_protected_mode variable for redis sentinel
server config template
Signed-off-by: Tuan T. Pham tuan@vt.edu