summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/nsca/server.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/nsca/server.pp b/manifests/nsca/server.pp
index 9239f21..238e49e 100644
--- a/manifests/nsca/server.pp
+++ b/manifests/nsca/server.pp
@@ -1,13 +1,14 @@
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",
@@ -17,5 +18,5 @@ class nagios::nsca::server {
mode => '400',
notify => Service['nsca'],
}
-
+
}