yum: Fixed CentOS CR repo for CentOS 7.
This commit is contained in:
parent
09ae1aa84b
commit
1a8da38cf3
1 changed files with 9 additions and 2 deletions
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue