Permalink
Browse files

Merge pull request #25 from mremy/set_some_omsa_version

OMSA version based on productname
  • Loading branch information...
2 parents 39deb74 + 5d04a21 commit 00b4cb7bcaac8c2dc6b424ded6983c8b5b29c5da @mremy mremy committed Mar 13, 2013
Showing with 23 additions and 14 deletions.
  1. +23 −14 manifests/params.pp
View
@@ -6,34 +6,43 @@
#
class dell::params {
- $omsa_url_base = $dell_omsa_url_base ? {
+ $omsa_url_base = $::dell_omsa_url_base ? {
'' => 'http://linux.dell.com/repo/hardware/',
- default => $dell_omsa_url_base,
+ default => $::dell_omsa_url_base,
}
- $omsa_url_args_indep = $dell_omsa_url_args_indep ? {
+ $omsa_url_args_indep = $::dell_omsa_url_args_indep ? {
'' => 'osname=el$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver',
- default => $dell_omsa_url_args_indep,
+ default => $::dell_omsa_url_args_indep,
}
- $omsa_url_args_specific = $dell_omsa_url_args_specific ? {
+ $omsa_url_args_specific = $::dell_omsa_url_args_specific ? {
'' => 'osname=el$releasever&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver',
- default => $dell_omsa_url_args_specific,
+ default => $::dell_omsa_url_args_specific,
}
- $omsa_version = $dell_omsa_version ? {
- '' => 'latest',
- default => "OMSA_$dell_omsa_version",
+ $omsa_version = $::dell_omsa_version ? {
+ '' => $::productname ? {
+ 'PowerEdge 1750' => 'OMSA_6.1',
+ 'PowerEdge 1850' => 'OMSA_5.5',
+ 'PowerEdge 1950' => 'OMSA_6.1',
+ 'PowerEdge 2950' => 'OMSA_5.4',
+ 'PowerEdge R610' => 'OMSA_6.4',
+ 'PowerEdge R620' => 'OMSA_7.2',
+ default => 'OMSA_5.4',
+ },
+ 'latest' => 'latest',
+ default => "OMSA_${::dell_omsa_version}",
}
- $customplugins = $dell_customplugins ? {
- '' => '/usr/local/src',
- default => $dell_customplugins,
+ $customplugins = $::dell_customplugins ? {
+ '' => '/usr/local/src',
+ default => $::dell_customplugins,
}
- $check_warranty_revision = $dell_check_warranty_revision ? {
+ $check_warranty_revision = $::dell_check_warranty_revision ? {
'' => '42d157c57b1247e651021098b278adf14e468805',
- default => $dell_check_warranty_revision,
+ default => $::dell_check_warranty_revision,
}
}

0 comments on commit 00b4cb7

Please sign in to comment.