Do not enable Epel repo in case of Fedora

Epel repos are not meant for CentOS/RHEL, Fedora
has it's own set of packages. So do not enable epel
repo with Fedora.

Change-Id: I21a29ef103da4330951207af1373db7e55475c48
This commit is contained in:
2018-06-26 22:01:38 +05:30
parent 9996925bc4
commit fd64982c1f

View File

@@ -213,7 +213,7 @@ not on ${::operatingsystem}, which can lead to packaging issues.")
}
}
if $enable_epel {
if $enable_epel and ($::operatingsystem != 'Fedora') {
yumrepo { "ext-epel-${el}":
# puppet versions prior to 3.5 do not support ensure, use enabled instead
enabled => $enabled,