Skip to content

Commit

Permalink
Merge pull request #289 from skillstream/allow-protected-mode-no
Browse files Browse the repository at this point in the history
Allow protected-mode to be set to 'no'
  • Loading branch information
brianbianco authored Aug 26, 2016
2 parents 6dad3ef + 2a0ae38 commit 48597c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
'rdbchecksum' => 'yes',
'dbfilename' => nil,
'slaveof' => nil,
'protected_mode' => false,
'protected_mode' => nil, # unspecified by default but could be set explicitly to 'yes' or 'no'
'masterauth' => nil,
'slaveservestaledata' => 'yes',
'slavereadonly' => 'yes',
Expand Down
4 changes: 2 additions & 2 deletions templates/default/redis.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ tcp-backlog <%= @tcpbacklog %>
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
<% if @protected_mode %>
protected-mode yes
<% unless @protected_mode.nil? %>
protected-mode <%= @protected_mode %>
<% end %>

# Specify the path for the Unix socket that will be used to listen for
Expand Down

0 comments on commit 48597c1

Please sign in to comment.