anchor.diff:  # use a very strong password otherwise it will be very easy to break.
   #
   # requirepass foobared
  -<% unless node["redis"]["requirepass"].empty? %>
  +<% unless node["redis"].fetch("requirepass", "").empty? %>
   requirepass <%= node["redis"]["requirepass"] %>
   <% end %>
   
  
positive.code: # refuse the slave request.
  #
  # masterauth <master-password>
  <% unless node["redis"]["masterauth"].empty? %>
  masterauth <%= node["redis"]["masterauth"] %>
  <% end %>
  
  
negative.code: # different interval, or to listen to another port, and so on.
  #
  # slaveof <masterip> <masterport>
  <% unless node["redis"].fetch("slaveof", "").empty? %>
  slaveof <%= node["redis"]["slaveof"] %>
  <% end %>
  
  