Skip to content

Commit

Permalink
Merge pull request #35 from thomasvs/feature-megacli-version
Browse files Browse the repository at this point in the history
allow specifying a megacli version to pin
  • Loading branch information
thias committed Sep 6, 2014
2 parents b160824 + 4120c92 commit 2d212fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions manifests/check/megaraid_sas.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$ensure = undef,
$args = '',
$pkg = true,
$megaclibin = $::nagios::params::megaclibin
$megaclibin = $::nagios::params::megaclibin,
) {

# Generic overrides
Expand Down Expand Up @@ -43,10 +43,15 @@
'Gentoo' => 'sys-block/megacli',
default => 'megacli',
}
if $::nagios_check_megaraid_sas_version != '' {
$ensure_value = $::nagios_check_megaraid_sas_version
} else {
$ensure_value = 'installed'
}
package { $pkgname:
ensure => $ensure ? {
'absent' => 'absent',
default => 'installed',
default => $ensure_value
}
}
}
Expand Down

0 comments on commit 2d212fb

Please sign in to comment.