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

Unified Diff: modules/adblockplus/manifests/host/monitoringserver.pp

Issue 29338054: Issue 3638 - Use adblockplus::host to provide nagios_host definitions (Closed)
Patch Set: Created March 10, 2016, 12:30 a.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
« no previous file with comments | « no previous file | modules/nagios/manifests/server.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/host/monitoringserver.pp
diff --git a/modules/adblockplus/manifests/host/monitoringserver.pp b/modules/adblockplus/manifests/host/monitoringserver.pp
new file mode 100644
index 0000000000000000000000000000000000000000..252599e92a3fa67ebe75bb8900c0f58b5e5ea60d
--- /dev/null
+++ b/modules/adblockplus/manifests/host/monitoringserver.pp
@@ -0,0 +1,17 @@
+# == Type: adblockplus::host::monitoringserver
+#
+# Nagios definitions for any host recognized, included automatically with type
+# adblockplus::host if the current node's $::role is 'monitoringserver'.
+#
+define adblockplus::host::monitoringserver {
+
+ $ensure = getparam(Adblockplus::Host[$title], 'ensure')
+ $fqdn = getparam(Adblockplus::Host[$title], 'fqdn')
+ $groups = getparam(Adblockplus::Host[$title], 'groups')
+
+ nagios_host {$fqdn:
+ ensure => $ensure,
+ hostgroups => $groups,
+ use => 'generic-host',
+ }
+}
« no previous file with comments | « no previous file | modules/nagios/manifests/server.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld