summaryrefslogtreecommitdiff
path: root/puppet/modules/nagios/manifests/nsca/client.pp
blob: 6aa8c0b176548d5774802a4a687d1e50838f1a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# manage nsca client
class nagios::nsca::client {

  package{'nsca':
    ensure => installed
  }

  file{'/etc/send_nsca.cfg':
    source  => [ "puppet:///modules/site_nagios/nsca/${::fqdn}/send_nsca.cfg",
                'puppet:///modules/site_nagios/nsca/send_nsca.cfg',
                'puppet:///modules/nagios/nsca/send_nsca.cfg' ],
    owner   => 'nagios',
    group   => 'nogroup',
    mode    => '0400',
    require => Package['nsca'];
  }

}