31 lines
989 B
Puppet
31 lines
989 B
Puppet
## resources_cd::main::epel.pp
|
|
# Module name: resources_cd
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @summary Class manages yum repo for epel.
|
|
##############################################################################
|
|
class resources_cd::main::epel (
|
|
|
|
) inherits resources_cd::params {
|
|
if $facts['os']['name'] == 'Rocky' and $facts['os']['release']['major'] == '9' {
|
|
yumrepo { 'crb':
|
|
enabled => '1',
|
|
}
|
|
|
|
exec { 'install EPEL RPM':
|
|
command => "dnf install -y ${epel_from_url}",
|
|
path => '/usr/bin',
|
|
unless => 'rpm -qa | grep epel-release',
|
|
require => Yumrepo['crb'],
|
|
}
|
|
|
|
yumrepo {
|
|
'epel':
|
|
descr => "Extra Packages for Enterprise Linux 9 - \$basearch",
|
|
mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=$basearch&infra=$infra&content=$contentdir',
|
|
enabled => $rs_enable_epel,
|
|
gpgcheck => '0',
|
|
require => Exec['install EPEL RPM'],
|
|
}
|
|
}
|
|
}
|