yum: Dependency and fact usage fixes for yum::repo::dell
This commit is contained in:
parent
3f8205cce6
commit
458cbd14da
1 changed files with 6 additions and 4 deletions
|
@ -360,19 +360,20 @@ class yum::repo::dell {
|
|||
case $::operatingsystem {
|
||||
"centos", "redhat": { }
|
||||
default: {
|
||||
fail("Dell OMSA repository not supported in ${operatingsystem}")
|
||||
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.
|
||||
include yum::repo::epel
|
||||
package { "yum-dellsysid":
|
||||
ensure => installed,
|
||||
ensure => installed,
|
||||
require => Class["yum::repo::epel"],
|
||||
}
|
||||
|
||||
case $operatingsystemrelease {
|
||||
case $::operatingsystemrelease {
|
||||
/^6\.[0-9]+/: {
|
||||
yum::repo { "dell-omsa-indep":
|
||||
descr => "Dell OMSA repository - Hardware independent",
|
||||
|
@ -388,9 +389,10 @@ class yum::repo::dell {
|
|||
}
|
||||
}
|
||||
default: {
|
||||
fail("Dell OMSA repository not supported in ${operatingsystem} ${operatingsystemrelease}")
|
||||
fail("Dell OMSA repository not supported in ${::operatingsystem} ${::operatingsystemrelease}")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue