Sha256: 1f99f8bca9bc7040c7e3507bac583d78cb8d19c88eea89fbbedf7983afad5adc
Contents?: true
Size: 797 Bytes
Versions: 18
Compression:
Stored size: 797 Bytes
Contents
# $Id: Generated by chef for node: <%= node['hostname'] %> # ---------------------------------------------------------------- # NOTE: This file is controlled by chef templates! # Do not edit or change this file but change the following: # template file : hostgroups.cfg.erb # ---------------------------------------------------------------- # Hostgroup definitions # ---------------------------------------------------------------- define hostgroup { hostgroup_name all alias all <% if node['nagios']['regexp_matching'] == 1 -%> members .* <% else -%> members * <% end -%> } <% Nagios.instance.hostgroups.each do |key,hostgroup| -%> <% if hostgroup.name.nil? # Skipping all the template hosts %> <%= hostgroup.definition unless hostgroup.hostgroup_name == 'all' %> <% end %> <% end -%>
Version data entries
18 entries across 18 versions & 1 rubygems