yum: Dependency and fact usage fixes for yum::repo::dell

This commit is contained in:
Ossi Salmi 2013-07-11 23:04:37 +03:00
parent 3f8205cce6
commit 458cbd14da

View file

@ -360,19 +360,20 @@ class yum::repo::dell {
case $::operatingsystem { case $::operatingsystem {
"centos", "redhat": { } "centos", "redhat": { }
default: { 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 # Required for detecting the correct system hardware via
# yum. Dell's repo then provide their own yum-dellsysid after # yum. Dell's repo then provide their own yum-dellsysid after
# installing the repos. # installing the repos.
include yum::repo::epel
package { "yum-dellsysid": package { "yum-dellsysid":
ensure => installed, ensure => installed,
require => Class["yum::repo::epel"], require => Class["yum::repo::epel"],
} }
case $operatingsystemrelease { case $::operatingsystemrelease {
/^6\.[0-9]+/: { /^6\.[0-9]+/: {
yum::repo { "dell-omsa-indep": yum::repo { "dell-omsa-indep":
descr => "Dell OMSA repository - Hardware independent", descr => "Dell OMSA repository - Hardware independent",
@ -388,9 +389,10 @@ class yum::repo::dell {
} }
} }
default: { default: {
fail("Dell OMSA repository not supported in ${operatingsystem} ${operatingsystemrelease}") fail("Dell OMSA repository not supported in ${::operatingsystem} ${::operatingsystemrelease}")
} }
} }
} }