summaryrefslogtreecommitdiff
path: root/manifests/plugin/scriptpaths.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/plugin/scriptpaths.pp')
-rw-r--r--manifests/plugin/scriptpaths.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/plugin/scriptpaths.pp b/manifests/plugin/scriptpaths.pp
index ce27384..164a17e 100644
--- a/manifests/plugin/scriptpaths.pp
+++ b/manifests/plugin/scriptpaths.pp
@@ -3,7 +3,10 @@ class munin::plugin::scriptpaths {
gentoo: { $script_path = "/usr/libexec/munin/plugins" }
debian: { $script_path = "/usr/share/munin/plugins" }
centos: { $script_path = "/usr/share/munin/plugins" }
- openbsd: { $script_path = "/opt/munin/lib/plugins/" }
+ openbsd: { $script_path = $operatingsystemrelease ? {
+ '4.3' => '/opt/munin/lib/plugins/',
+ default => '/usr/local/libexec/munin/plugins/'
+ } }
default: { $script_path = "/usr/share/munin/plugins" }
}
}