Skip to content

Commit

Permalink
protected_mode: ignore config option if unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 10, 2020
1 parent 7307936 commit 22763bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions manifests/sentinel.pp
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@
}
}

$sentinel_bind_arr = delete_undef_values([$sentinel_bind].flatten)

file { $config_file_orig:
ensure => file,
owner => $service_user,
Expand Down
2 changes: 2 additions & 0 deletions templates/redis-sentinel.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ port <%= @sentinel_port %>
dir <%= @working_dir %>
daemonize <%= @daemonize ? 'yes' : 'no' %>
pidfile <%= @pid_file %>
<% if @supports_protected_mode -%>
protected-mode <%= @protected_mode ? 'yes' : 'no' %>
<% end -%>

sentinel monitor <%= @master_name %> <%= @redis_host %> <%= @redis_port %> <%= @quorum %>
sentinel down-after-milliseconds <%= @master_name %> <%= @down_after %>
Expand Down

0 comments on commit 22763bd

Please sign in to comment.