Some conditional statements that you can use on puppet templates:

<% if @hostname == ("srv01") then -%>
... ... ...
<% end -%>
<% if @hostname != ("srv01") then -%>
... ... ...
<% end -%>
<% if @hostname == ("srv01" or "srv02") then -%>
... ... ... 
<% end -%>

Comments are closed.