summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/templates/hostgroups.mk
blob: 79b7f92fe12a09e3b9c6d98b56ec877d58324827 (plain)
1
2
3
4
host_groups = [
  <% @domains_internal.each do |domain| %>( '<%= domain %>', [<% @nagios_hosts.keys.sort.each do |key| -%><% if @nagios_hosts[key]['domain_internal'] == key+'.'+domain -%>'<%= key %>.<%= domain %>', <% end -%><% end -%>] ),
  <% end -%>
]