diff options
Diffstat (limited to 'manifests/nsca/server.pp')
-rw-r--r-- | manifests/nsca/server.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/nsca/server.pp b/manifests/nsca/server.pp new file mode 100644 index 0000000..c682e24 --- /dev/null +++ b/manifests/nsca/server.pp @@ -0,0 +1,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'], + } + +} |