diff options
author | Patrick Hemmer <patrick.hemmer@gmail.com> | 2013-04-05 10:09:26 -0400 |
---|---|---|
committer | Patrick Hemmer <patrick.hemmer@gmail.com> | 2013-04-05 10:09:26 -0400 |
commit | 5b0631950a43acdd8a2a2236dc1b772e7f16e449 (patch) | |
tree | 4265f4697c4dc074d222e0329a0e5cb40f09e6a2 /manifests | |
parent | 3cdeb92a29db581f0d0f8a987c22de0a94971726 (diff) |
Better detection of ruby version
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/params.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index ee2dbea..9998308 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -12,9 +12,10 @@ class augeas::params { } 'Debian': { - $ruby_pkg = $::lsbdistcodename ? { - 'wheezy' => 'libaugeas-ruby1.9.1', - default => 'libaugeas-ruby1.8', + if versioncmp($::rubyversion, '1.9.1') >= 0 { + $ruby_pkg = 'libaugeas-ruby1.9.1' + } else { + $ruby_pkg = 'libaugeas-ruby1.8' } $augeas_pkgs = ['augeas-lenses', 'libaugeas0', 'augeas-tools'] } |