KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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. <% if node[:monit][:server]=='nginx' -%> ALL OF MY NGINX TEXT <% end -%> <% if node[:monit][:server]=='redis' -%> ALL OF MY REDIS TEXT <% end -%> Clearly I am missing something about proper syntax. Thanks
Tags (comma-separated)
Save Edits
Cancel