diff options
author | varac <varacanero@zeromail.org> | 2014-02-17 13:50:42 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-18 16:00:23 +0100 |
commit | 2436fddb4a63075f74f295bacd23128c766beb4c (patch) | |
tree | 43ba485523eb7602e37b323791f27c15b57fa5ea /puppet/modules/site_nagios/manifests/add_host.pp | |
parent | bd7a0f98ce0819fcc06ad8dcf11600a78577750d (diff) |
Remove adding of hosts from site_nagios::server (Feature #5132)
because now, check_mk will add the hosts
Diffstat (limited to 'puppet/modules/site_nagios/manifests/add_host.pp')
-rw-r--r-- | puppet/modules/site_nagios/manifests/add_host.pp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/puppet/modules/site_nagios/manifests/add_host.pp b/puppet/modules/site_nagios/manifests/add_host.pp deleted file mode 100644 index 94352de4..00000000 --- a/puppet/modules/site_nagios/manifests/add_host.pp +++ /dev/null @@ -1,32 +0,0 @@ -define site_nagios::add_host ( - $domain_internal, - $ip_address, - $services, - $openvpn_gateway_address='' ) { - - $nagios_hostname = $domain_internal - - # Add Nagios host - nagios_host { $nagios_hostname: - address => $ip_address, - use => 'generic-host', - } - - # Add Nagios service - - # First, we need to turn the serice array into hash, using a "hash template" - # see https://github.com/ashak/puppet-resource-looping - $nagios_service_hashpart = { - 'hostname' => $nagios_hostname, - 'ip_address' => $ip_address, - 'openvpn_gw' => $openvpn_gateway_address, - } - $dynamic_parameters = { - 'service' => '%s' - } - $nagios_servicename = "${nagios_hostname}_%s" - - $nagios_service_hash = create_resources_hash_from($nagios_servicename, $services, $nagios_service_hashpart, $dynamic_parameters) - - create_resources ( site_nagios::add_service, $nagios_service_hash ) -} |