Puppet template files are erb rails files.
I want the line:
To be included in the final file if the class mod_security is included.
From the puppet docs: http://docs.puppetlabs.com/guides/templating.html -
And this snippet will print all the defined class in the catalog:
<% classes.each do |klass| -%> The class <%= klass %> is defined <% end -%>
<% if broadcast != "NONE" %> broadcast <%= broadcast %> <% end %>
I am new to the syntax. Does defined mean the same as included? For the conditional how would I check a particular class i.e. if isdefined(mod_security)...?