diff options
author | Theo Chatzimichos <tampakrap@gmail.com> | 2015-06-14 14:24:15 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gmail.com> | 2015-06-14 14:24:15 +0200 |
commit | 18a4c4a10b230e224f4b643c30e07811d3e0c22e (patch) | |
tree | 094db2ecd416d082fd4b7b1e30bd713a130bdfb8 /manifests/params.pp | |
parent | 158903264c3c77ea6e8ce96e240716b0686cfa78 (diff) |
fix the ruby-augeas gem installation on SLES and openSUSE
the current logic is broken, it pulls in the opposite package than what it
should
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index e540033..59023ab 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -12,13 +12,13 @@ class augeas::params { } 'Suse': { - # RPM Sources: https://build.opensuse.org/project/show/systemsmanagement:puppet - # SLES 11 SP3 - if versioncmp($::rubyversion, '1.8.7') >= 0 { - $ruby_pkg = 'ruby1.8-rubygem-ruby-augeas' - # SLES 12 - } else { + # RPM Sources: https://build.opensuse.org/project/show/systemsmanagement:puppet + if versioncmp($::rubyversion, '2.1.2') >= 0 { + # SLES 12 / openSUSE $ruby_pkg = 'ruby2.1-rubygem-ruby-augeas' + } else { + # SLES 11 SP3 + $ruby_pkg = 'ruby1.8-rubygem-ruby-augeas' } $augeas_pkgs = ['augeas', 'augeas-lenses', 'libaugeas0' ] } |