Puppet Class: nagios::client::nsca
- Defined in:
- manifests/client/nsca.pp
Overview
Install NSCA client
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/client/nsca.pp', line 2
class nagios::client::nsca (
$nsca_client_package,
$firewall,
) {
package { 'nsca-client':
ensure => installed,
name => $nsca_client_package,
}
if ($firewall) {
# Auto-add a NSCA firewall rule on the NSCA server just for us
@@firewall { "200-nsca-${::fqdn}":
proto => 'tcp',
dport => '5667',
tag => 'nsca',
source => $::ipaddress,
action => 'accept',
}
@@firewall { "200-nsca-v6-${::fqdn}":
proto => 'tcp',
dport => '5667',
source => $::ipaddress6,
provider => 'ip6tables',
action => 'accept',
}
}
}
|