summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <github+aem1eeshi1@raphink.net>2015-06-15 08:08:46 +0200
committerRaphaël Pinson <github+aem1eeshi1@raphink.net>2015-06-15 08:08:46 +0200
commit9867b22a82ac618f5fe697c709b3065e56d57f53 (patch)
tree094db2ecd416d082fd4b7b1e30bd713a130bdfb8
parent158903264c3c77ea6e8ce96e240716b0686cfa78 (diff)
parent18a4c4a10b230e224f4b643c30e07811d3e0c22e (diff)
Merge pull request #51 from tampakrap/fix_sles_ruby_augeas_installation
fix the ruby-augeas gem installation on SLES and openSUSE
-rw-r--r--manifests/params.pp12
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' ]
}