diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/debian.pp | 2 | ||||
-rw-r--r-- | manifests/init.pp | 5 | ||||
-rw-r--r-- | manifests/redhat.pp | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp index 52e0dad..d3ed5c6 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -2,7 +2,7 @@ class augeas::debian inherits augeas::base { package { ['augeas-lenses', 'libaugeas0', 'augeas-tools']: - ensure => $::augeas_version, + ensure => "${augeas::version}", before => File['/usr/share/augeas/lenses/contrib'], } package {'libaugeas-ruby1.8': ensure => present } diff --git a/manifests/init.pp b/manifests/init.pp index 967ddd8..cc38c78 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,8 @@ class augeas { - if ( ! $::augeas_version ) { - $::augeas_version = 'present' + $version = $::augeas_version ? { + '' => 'present', + default => $::augeas_version } case $operatingsystem { diff --git a/manifests/redhat.pp b/manifests/redhat.pp index 79b0d36..d881c74 100644 --- a/manifests/redhat.pp +++ b/manifests/redhat.pp @@ -2,7 +2,7 @@ class augeas::redhat inherits augeas::base { package { ['augeas', 'augeas-libs']: - ensure => $::augeas_version, + ensure => "${augeas::version}", before => File['/usr/share/augeas/lenses/contrib'], } package { 'ruby-augeas': ensure => present } |