summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/debian.pp3
-rw-r--r--manifests/init.pp5
-rw-r--r--manifests/redhat.pp2
3 files changed, 8 insertions, 2 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
index d3ed5c6..c1c0347 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -5,6 +5,7 @@ class augeas::debian inherits augeas::base {
ensure => "${augeas::version}",
before => File['/usr/share/augeas/lenses/contrib'],
}
- package {'libaugeas-ruby1.8': ensure => present }
+
+ package {'libaugeas-ruby1.8': ensure => "${augeas::rubylib_version}" }
}
diff --git a/manifests/init.pp b/manifests/init.pp
index 19d161b..cc46069 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,6 +5,11 @@ class augeas {
default => $augeas_version
}
+ $rubylib_version = $augeas_ruby_version ? {
+ '' => 'present',
+ default => $augeas_ruby_version
+ }
+
case $operatingsystem {
/RedHat|CentOS|Fedora/: { include augeas::redhat }
/Debian|Ubuntu|kFreeBSD/: { include augeas::debian }
diff --git a/manifests/redhat.pp b/manifests/redhat.pp
index d881c74..c2bf0e6 100644
--- a/manifests/redhat.pp
+++ b/manifests/redhat.pp
@@ -5,6 +5,6 @@ class augeas::redhat inherits augeas::base {
ensure => "${augeas::version}",
before => File['/usr/share/augeas/lenses/contrib'],
}
- package { 'ruby-augeas': ensure => present }
+ package { 'ruby-augeas': ensure => "${augeas::rubylib_version}" }
}