Permalink
Browse files

added additional contacts and contactgroup support to host file

  • Loading branch information...
1 parent dadfac9 commit 9ee2f11673b75a67e83f81b3c68be3f82532f71c @martinotten martinotten committed Nov 30, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 templates/default/hosts.cfg.erb
@@ -11,6 +11,12 @@ define host {
<% else -%>
hostgroups <%= n.run_list.roles.to_a.join(",") %>
<% end -%>
+<% if n.has_key? 'additional_contacts' %>
+ contacts <%= n['additional_contacts'].join(",") %>
+<% end %>
+<% if n.has_key? 'additional_contact_groups' %>
+ contactgroups <%= n['additional_contact_groups'].join(",") %>
+<% end %>
}
<% end -%>

0 comments on commit 9ee2f11

Please sign in to comment.