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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/nagios/manifests/server.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # == Type: adblockplus::host::monitoringserver
2 #
3 # Nagios definitions for any host recognized, included automatically with type
4 # adblockplus::host if the current node's $::role is 'monitoringserver'.
5 #
6 define adblockplus::host::monitoringserver {
7
8 $ensure = getparam(Adblockplus::Host[$title], 'ensure')
9 $fqdn = getparam(Adblockplus::Host[$title], 'fqdn')
10 $groups = getparam(Adblockplus::Host[$title], 'groups')
11
12 nagios_host {$fqdn:
13 ensure => $ensure,
14 hostgroups => $groups,
15 use => 'generic-host',
16 }
17 }
OLDNEW
« 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