summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-06-13 15:41:24 +0200
committermh <mh@immerda.ch>2009-06-13 15:41:24 +0200
commit011d5e028f86e9eeba1c05e251063b45004d210e (patch)
treef17baaca735ed3a0e4f2b184da53c04d63435f66 /manifests/plugin.pp
parent783ae21de4cadbd9e8e3cdf62d4b0d6039586d78 (diff)
put everything into its own file
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
new file mode 100644
index 0000000..eebc589
--- /dev/null
+++ b/manifests/plugin.pp
@@ -0,0 +1,14 @@
+define nagios::plugin(
+ $ensure = present
+){
+ file{$name:
+ path => $hardwaremodel ? {
+ 'x86_64' => "/usr/lib64/nagios/plugins/$name",
+ default => "/usr/lib/nagios/plugins/$name",
+ },
+ ensure => $ensure,
+ source => "puppet://$server/nagios/plugins/$name",
+ require => Package['nagios-plugins'],
+ owner => root, group => 0, mode => 0755;
+ }
+}