add switching ability for EPEL
This commit is contained in:
@@ -22,7 +22,7 @@ class resources_cd::main::epel (
|
||||
'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 => '1',
|
||||
enabled => $rs_enable_epel,
|
||||
gpgcheck => '0',
|
||||
require => Exec['install EPEL RPM'],
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# @summary Class contains all parameters for the resources_cd module.
|
||||
# @param [Array] reqpackages which packages to install
|
||||
# @param [String] pkg_ensure version to install, 'present', 'latest', 'v1.0'
|
||||
# @param [Boolean] rs_enable_epel whether to enable epel
|
||||
# @param [String] rs_enable_epel whether to enable epel
|
||||
##############################################################################
|
||||
class resources_cd::params (
|
||||
|
||||
@@ -12,7 +12,7 @@ class resources_cd::params (
|
||||
'Rocky' => ['yum', 'yum-utils'],
|
||||
},
|
||||
String $pkg_ensure = 'present',
|
||||
Boolean $rs_enable_epel = false,
|
||||
String $rs_enable_epel = '1',
|
||||
|
||||
) {
|
||||
$epel_from_url = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
|
||||
|
||||
Reference in New Issue
Block a user