Skip to content

Commit

Permalink
allow specifying a megacli version to pin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Vander Stichele committed Sep 5, 2014
1 parent 4c474b8 commit 4120c92
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 4120c92

Please sign in to comment.