summaryrefslogtreecommitdiff
path: root/manifests/nsca/server.pp
blob: c682e24e5fa5c16347417c3e17e749df20b1ea1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class nagios::nsca::server {

  package { 'nsca': ensure => installed }
  
  service { 'nsca':
    ensure     => running,
    hasstatus  => false,
    hasrestart => true,
  }
  
  file { '/etc/nsca.cfg':
    source => [ "puppet://${server}/site-nagios/nsca/{$fqdn}/nsca.cfg",
                "puppet://${server}/site-nagios/nsca/nsca.cfg",
                "puppet://${server}/nagios/nsca/nsca.cfg" ],
    owner  => 'nagios',
    group  => 'nogroup',
    mode   => '400',
    notify => Service['nsca'],
  }
  
}