ruby: ruby-augeas is not available on OpenBSD 5.3 and earlier
This commit is contained in:
parent
c5cf861db0
commit
77d95f3623
1 changed files with 8 additions and 4 deletions
|
@ -65,8 +65,10 @@ class ruby::augeas {
|
|||
"openbsd": {
|
||||
if versioncmp($::operatingsystemrelease, "5.6") >= 0 {
|
||||
$package = "ruby20-augeas"
|
||||
} else {
|
||||
} elsif versioncmp($::operatingsystemrelease, "5.4") >= 0 {
|
||||
$package = "ruby19-augeas"
|
||||
} else {
|
||||
$package = undef
|
||||
}
|
||||
}
|
||||
"ubuntu": {
|
||||
|
@ -81,10 +83,12 @@ class ruby::augeas {
|
|||
}
|
||||
}
|
||||
|
||||
if $package {
|
||||
package { "ruby-augeas":
|
||||
ensure => installed,
|
||||
name => $package,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue