diff options
author | varac <varacanero@zeromail.org> | 2014-10-08 23:38:08 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-10-08 23:38:08 +0200 |
commit | 7b463790a4e6c207cc99a4db6cfea872b74d75b0 (patch) | |
tree | 721ff7fecfc710c0f750037d8fac663ee94869ca /puppet/modules/site_check_mk/templates | |
parent | 7bc79e68e5ca913d1d2843c48cde8f946feed09c (diff) | |
parent | 36a1332f5f6e43591a47b89ec505541f84381667 (diff) |
Merge branch '5216_nagios_hostgroups' into develop
Diffstat (limited to 'puppet/modules/site_check_mk/templates')
-rw-r--r-- | puppet/modules/site_check_mk/templates/hostgroups.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/templates/hostgroups.mk b/puppet/modules/site_check_mk/templates/hostgroups.mk new file mode 100644 index 00000000..79b7f92f --- /dev/null +++ b/puppet/modules/site_check_mk/templates/hostgroups.mk @@ -0,0 +1,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 -%> +] |