example42 / puppet-yum

Puppet module for Yum
Other
43 stars 116 forks source link

Epel repo doesn't work on CentOS 7 x86_64 #99

Open parhamdoustdar opened 9 years ago

parhamdoustdar commented 9 years ago

I've installed epel-release manually, and what I see in /etc/yum.repos.d/epel.repo is the following:

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch

However, what puppet-yum generates is this:

mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=$basearch

alvagante commented 9 years ago

epel-source is the repo for source rpms, epel is the one for [compiled] rpms. The module actually managed both, here: https://github.com/example42/puppet-yum/blob/master/manifests/repo/epel.pp

parhamdoustdar commented 9 years ago

Thanks. Sorry, I didn't know that.

However, when I let puppet-yum manage my epel repository, I get a 404 error on all of the mirrors. The only way i found was to manually install epel-release and remove epel from extrarepo.

alvagante commented 9 years ago

oh, ok, then this is a real issue... will have to look at it