diff options
author | duritong <peter.meier+github@immerda.ch> | 2012-04-10 05:47:48 -0700 |
---|---|---|
committer | duritong <peter.meier+github@immerda.ch> | 2012-04-10 05:47:48 -0700 |
commit | c49190c6c6cae7c7f854920667717dad2e3adb27 (patch) | |
tree | d655e7fbf5a12b2a622c83411b40397e512d01e1 /manifests/plugin | |
parent | d8de9540534a3801c87278435934da3c88a69e4b (diff) | |
parent | e2dfae5852ecdf3695a6af8ec48092ea24698390 (diff) |
Merge pull request #2 from cwarden/fully-qualify-variables
Fully qualify facter variables
Diffstat (limited to 'manifests/plugin')
-rw-r--r-- | manifests/plugin/deploy.pp | 2 | ||||
-rw-r--r-- | manifests/plugin/scriptpaths.pp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp index 67cbfb8..7de8d45 100644 --- a/manifests/plugin/deploy.pp +++ b/manifests/plugin/deploy.pp @@ -15,7 +15,7 @@ define munin::plugin::deploy($source = '', $ensure = 'present', $config = '') { mode => 0755, owner => root, group => 0; } - case $kernel { + case $::kernel { openbsd: { $basic_require = File['/var/run/munin'] } default: { $basic_require = Package['munin-node'] } } diff --git a/manifests/plugin/scriptpaths.pp b/manifests/plugin/scriptpaths.pp index 164a17e..f4bd39b 100644 --- a/manifests/plugin/scriptpaths.pp +++ b/manifests/plugin/scriptpaths.pp @@ -1,9 +1,9 @@ class munin::plugin::scriptpaths { - case $operatingsystem { + 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 = $operatingsystemrelease ? { + openbsd: { $script_path = $::operatingsystemrelease ? { '4.3' => '/opt/munin/lib/plugins/', default => '/usr/local/libexec/munin/plugins/' } } |