yum: Fixed CentOS CR repo for CentOS 7.

This commit is contained in:
Timo Makinen 2015-03-18 12:24:52 +02:00
parent 09ae1aa84b
commit 1a8da38cf3

View file

@ -393,8 +393,15 @@ class yum::repo::centos-cr {
fail("CentOS CR repository not supported in ${::operatingsystem}")
}
package { "centos-release-cr":
ensure => installed,
if versioncmp($::operatingsystemrelease, "7") < 0 {
package { "centos-release-cr":
ensure => installed,
}
} else {
augeas { "enable-centos-cr-repo":
context => "/files/etc/yum.repos.d/CentOS-CR.repo/cr",
changes => "set enabled 1",
}
}
}