summaryrefslogtreecommitdiff
path: root/manifests/nsca
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-05-05 23:22:10 +0200
committermh <mh@immerda.ch>2010-05-05 23:22:10 +0200
commit33b091b896fbb0b54ee9968c452ef2a8867893d8 (patch)
tree863c61e2de0c258c859527e14e86b47ffd8f0bb1 /manifests/nsca
parent77f601607093b7fb22f3498574d0dedd2cbe01d9 (diff)
parent5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff)
merged with lavamind
Diffstat (limited to 'manifests/nsca')
-rw-r--r--manifests/nsca/client.pp14
-rw-r--r--manifests/nsca/server.pp21
2 files changed, 35 insertions, 0 deletions
diff --git a/manifests/nsca/client.pp b/manifests/nsca/client.pp
new file mode 100644
index 0000000..b4ca878
--- /dev/null
+++ b/manifests/nsca/client.pp
@@ -0,0 +1,14 @@
+class nagios::nsca::client {
+
+ package { 'nsca': ensure => installed }
+
+ file { '/etc/send_nsca.cfg':
+ source => [ "puppet://${server}/site-nagios/nsca/{$fqdn}/send_nsca.cfg",
+ "puppet://${server}/site-nagios/nsca/send_nsca.cfg",
+ "puppet://${server}/nagios/nsca/send_nsca.cfg" ],
+ owner => 'nagios',
+ group => 'nogroup',
+ mode => '400',
+ }
+
+}
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'],
+ }
+
+}