title: Chef and erb templates. How to use boolean code blocks
body: <p>I am new to chef, ruby, ruby DSL, and erb.  I come from python.
  In a ruby erb template I want to do something like this.</p>
  
  <pre><code>&lt;% if node[:monit][:server]=='nginx' -%&gt;
  
  ALL OF MY NGINX TEXT 
  
  &lt;% end -%&gt;
  
  &lt;% if node[:monit][:server]=='redis' -%&gt;
  
  ALL OF MY REDIS TEXT 
  
  &lt;% end -%&gt;
  </code></pre>
  
  <p>Clearly I am missing something about proper syntax.</p>
  
  <p>Thanks</p>