File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 $port = 6379
3535 $rdbcompression = true
3636 $requirepass = undef
37+ $sentinel_auth_pass = undef
3738 $sentinel_config_file_mode = ' 0644'
3839 $sentinel_config_group = ' root'
3940 $sentinel_config_owner = ' redis'
Original file line number Diff line number Diff line change 44#
55# == Parameters:
66#
7+ #
8+ # [*auth_pass*]
9+ # The password to use to authenticate with the master and slaves.
10+ #
11+ # Default: undef
12+ #
713# [*config_file*]
814# The location and name of the sentinel config file.
915#
138144# }
139145#
140146class redis::sentinel (
147+ $auth_pass = $::redis::params::sentinel_auth_pass,
141148 $config_file = $::redis::params::sentinel_config_file,
142149 $config_file_orig = $::redis::params::sentinel_config_file_orig,
143150 $config_file_mode = $::redis::params::sentinel_config_file_mode,
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ sentinel monitor <%= @master_name %> <%= @redis_host %> <%= @redis_port %> <%= @
77sentinel down-after-milliseconds <%= @master_name %> <%= @down_after %>
88sentinel parallel-syncs <%= @master_name %> <%= @parallel_sync %>
99sentinel failover-timeout <%= @master_name %> <%= @failover_timeout %>
10+ <% if @auth_pass -%>
11+ sentinel auth-pass <%= @master_name %> <%= @auth_pass %>
12+ <% end -%>
1013<% if @notification_script -%>
1114sentinel notification-script <%= @master_name %> <%= @notification_script %>
1215<% end -%>
You can’t perform that action at this time.
0 commit comments