summaryrefslogtreecommitdiff
path: root/manifests/nsca/server.pp
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2012-04-09 02:32:45 -0400
committerGabriel Filion <lelutin@gmail.com>2012-04-09 02:32:45 -0400
commit347879f1a9c98b83039388f62774f0b240c0667d (patch)
tree80097ce611eeefaf83d72170c8e60a8cf905eceb /manifests/nsca/server.pp
parent3cf7838401c53690a86eb4a0cc5e4eb7b53d89ef (diff)
Make the nsca depend on the nsca package
Without this link, puppet sometimes attempts to start the service before the package is installed, wich triggers an error. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests/nsca/server.pp')
-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'],
}
-
+
}