Add Dell OpenManage Linux Repository for CentOS/RHEL 6 to yum.

See http://linux.dell.com/repo/hardware/ for more details.
This commit is contained in:
Ossi Herrala 2012-11-06 11:57:07 +00:00
parent 89b545d129
commit 3bb8ae70b3
2 changed files with 65 additions and 0 deletions

View file

@ -244,6 +244,44 @@ class yum::repo::centos-cr {
}
class yum::repo::dell {
case $::operatingsystem {
"centos", "redhat": { }
default: {
fail("Dell OMSA repository not supported in ${operatingsystem}")
}
}
# Required for detecting the correct system hardware via
# yum. Dell's repo then provide their own yum-dellsysid after
# installing the repos.
package { "yum-dellsysid":
ensure => installed,
require => Class["yum::repo::epel"],
}
case $operatingsystemrelease {
/^6\.[0-9]+/: {
yum::repo { "dell-omsa-indep":
descr => "Dell OMSA repository - Hardware independent",
mirrorlist => "http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el\$releasever&ve&basearch=\$basearch&native=1&dellsysidpluginver=\$dellsysidpluginver",
gpgkey => "puppet:///modules/yum/keys/dell-omsa.key",
require => Package["yum-dellsysid"],
}
yum::repo { "dell-omsa-specific":
descr => "Dell OMSA repository - Hardware specific",
mirrorlist => "http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el\$releasever&basearch=\$basearch&native=1&sys_ven_id=\$sys_ven_id&sys_dev_id=\$sys_dev_id&dellsysidpluginver=\$dellsysidpluginver",
gpgkey => "puppet:///modules/yum/keys/dell-omsa.key",
require => Package["yum-dellsysid"],
}
}
default: {
fail("Dell OMSA repository not supported in ${operatingsystem} ${operatingsystemrelease}")
}
}
}
class yum::repo::elrepo {