Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nagios/manifests/server.pp

Issue 29341151: Issue 4019 - Added "Edge" to platform choices in Issues tracker at issues1. (Closed)
Patch Set: Created May 10, 2016, 3:35 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/nagios/manifests/server.pp
===================================================================
--- a/modules/nagios/manifests/server.pp
+++ b/modules/nagios/manifests/server.pp
@@ -159,4 +159,27 @@
create_resources(nagios_service, $services)
create_resources(nagios_host, $hosts)
create_resources(nagios_hostgroup, $hostgroups)
+
+ $nagios_generic = hiera('servers')
+ create_resources(nagios::server::generic_host, $nagios_generic)
+
+ define generic_host(
+ $ip,
+ $ssh_public_key = undef,
+ $role = undef,
+ $dns = undef,
+ $groups = [],
+ ) {
+
+ if $dns == undef {
+ $fqdn_name = join([$name, $nagios::server::zone], '.')
+ } else {
+ $fqdn_name = $dns
+ }
+
+ nagios_host {$fqdn_name:
+ use => 'generic-host',
+ hostgroups => $groups,
+ }
+ }
}
« no previous file with comments | « modules/logstash/templates/elastic-logstash-gpg-key.erb ('k') | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld