summaryrefslogtreecommitdiff
path: root/manifests/nsca/server.pp
blob: 8163eec1b588f813e99ded59de316c212f6bea95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# an nsca server
class nagios::nsca::server {
  package{'nsca':
    ensure => installed
  }

  service { 'nsca':
    ensure     => running,
    hasstatus  => false,
    hasrestart => true,
    require    => Package['nsca'],
  }

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

}