diff options
author | mh <mh@immerda.ch> | 2010-05-22 15:40:02 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-05-22 15:40:02 +0200 |
commit | 95bae141ccac45f2658576c87e25af24c265cf97 (patch) | |
tree | 5c3ca9c1c2924aded00ca50a8e67b0e3dc4b58af /manifests/plugin | |
parent | eef1345dd22c54b593966d0bede2d16747f01aa7 (diff) |
for new openbsd releases we can finally use a package
Diffstat (limited to 'manifests/plugin')
-rw-r--r-- | manifests/plugin/scriptpaths.pp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/plugin/scriptpaths.pp b/manifests/plugin/scriptpaths.pp index ebaa6fa..115644c 100644 --- a/manifests/plugin/scriptpaths.pp +++ b/manifests/plugin/scriptpaths.pp @@ -1,9 +1,12 @@ class munin::plugin::scriptpaths { case $operatingsystem { - 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/" } - default: { $script_path = "/usr/share/munin/plugins" } + gentoo: { $script_path = '/usr/libexec/munin/plugins' } + debian: { $script_path = '/usr/share/munin/plugins' } + centos: { $script_path = '/usr/share/munin/plugins' } + openbsd: { $script_path = $operatingsystemrelease ? { + '4.3' => '/opt/munin/lib/plugins/', + default => '/usr/local/libexec/munin/plugins/' + } } + default: { $script_path = '/usr/share/munin/plugins' } } } |