summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/params.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 8b8f89c..e540033 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -12,7 +12,14 @@ class augeas::params {
}
'Suse': {
- $ruby_pkg = 'rubygem-ruby-augeas'
+ # 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 {
+ $ruby_pkg = 'ruby2.1-rubygem-ruby-augeas'
+ }
$augeas_pkgs = ['augeas', 'augeas-lenses', 'libaugeas0' ]
}