OLD | NEW |
(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 } |
OLD | NEW |