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 ability to secure Sentinel #399

Merged
merged 5 commits into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions manifests/sentinel.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
# @param redis_port
# Specify the port of the master redis server.
#
# @param requirepass
# Specify the password to require client authentication via the AUTH command, however this feature is only available starting with Redis 5.0.1.
#
# @param protected_mode
# Whether protected mode is enabled or not. Only applicable when no bind is set.
#
Expand Down Expand Up @@ -119,6 +122,7 @@
String[1] $master_name = 'mymaster',
Stdlib::Host $redis_host = '127.0.0.1',
Stdlib::Port $redis_port = 6379,
Optional[String[1]] $requirepass = undef,
String[1] $package_name = $redis::params::sentinel_package_name,
String[1] $package_ensure = 'present',
Integer[0] $parallel_sync = 1,
Expand Down
3 changes: 3 additions & 0 deletions templates/redis-sentinel.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ sentinel notification-script <%= @master_name %> <%= @notification_script %>
<% if @client_reconfig_script -%>
sentinel client-reconfig-script <%= @master_name %> <%= @client_reconfig_script %>
<% end -%>
<% if @requirepass -%>
requirepass <%= @requirepass %>
<% end -%>

loglevel <%= @log_level %>
logfile <%= @log_file %>