Permalink
Browse files

Merge pull request #6 from adcloud/additional_contacts

Additional contacts
  • Loading branch information...
2 parents e731fbd + 753775b commit 7662efe98509c329cddfa460de1aef71d575b499 @mdxp committed Dec 5, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 templates/default/hosts.cfg.erb
@@ -11,6 +11,14 @@ define host {
<% else -%>
hostgroups <%= n.roles.to_a.join(",") %>
<% end -%>
+<% if n.has_key? 'icinga' %>
+ <% if n['icinga'].has_key? 'additional_contacts' %>
+ contacts <%= n['icinga']['additional_contacts'].join(",") %>
+ <% end %>
+ <% if n['icinga'].has_key? 'additional_contact_groups' %>
+ contactgroups <%= n['icinga']['additional_contact_groups'].join(",") %>
+ <% end %>
+<% end %>
}
<% end -%>

0 comments on commit 7662efe

Please sign in to comment.