Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from adcloud/additional_contacts

Additional contacts
  • Loading branch information...
commit 7662efe98509c329cddfa460de1aef71d575b499 2 parents e731fbd + 753775b
@mdxp authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 templates/default/hosts.cfg.erb
View
8 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 -%>
Please sign in to comment.
Something went wrong with that request. Please try again.