# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>

<% @search_hostgroups.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% else -%>
  members        empty
<% end -%>
}

<% end -%>
# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.sort.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>

<% @search_hostgroups.sort.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% else -%>
  members        empty
<% end -%>
}

<% end -%>
Sort the results so the host groups print out in A -> Z order. This makes it a lot easier to troubleshoot.
Sort the results so the host groups print out in A -> Z order.  This makes it a lot easier to troubleshoot.


Former-commit-id: c71d3d694328a4c14905e5b78b8b2dd10a3dee5f [formerly 140927b22a5d1a30ed120ddaf97e9cba6d60715c] [formerly 075dcd77ef07e643f44587416fbe49af5e0865ad [formerly fbf86c576b88cdd75b302aa8d8e9cb995f82592f [formerly 07f0bd675d1373f9c5038e266eb26be40c9e84c1]]]
Former-commit-id: 6817b94e0cbb064ed918bf03f3d6ab2fcbb3cc79 [formerly fe0a3f618e8954b6b75b89989dfb554cd200dfc9]
Former-commit-id: 0080f9097f69105f36b0f446899e1ab6064d9f08
Former-commit-id: e40ad9095ba6680f9d3b10c4e863097bfe091b62