add switching ability for EPEL

This commit is contained in:
Arne Teuke
2025-09-16 11:48:58 +02:00
parent 32e300b862
commit 271e54d2bf
3 changed files with 9 additions and 4 deletions

7
Jenkinsfile vendored
View File

@@ -91,7 +91,12 @@ pipeline {
git config user.name "Jenkins Server" git config user.name "Jenkins Server"
git config user.email jenkins@confdroid.com git config user.email jenkins@confdroid.com
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit" git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
git push origin HEAD:master git push -o merge_request.create \
-o merge_request.target=master \
-o merge_request.title="Auto-merge for build $BUILD_NUMBER" \
-o merge_request.description="Automated changes from Jenkins build $BUILD_NUMBER" \
-o merge_request.merge_when_pipeline_succeeds=true \
origin jenkins-build-$BUILD_NUMBER
''' '''
} }
} }

View File

@@ -22,7 +22,7 @@ class resources_cd::main::epel (
'epel': 'epel':
descr => "Extra Packages for Enterprise Linux 9 - \$basearch", descr => "Extra Packages for Enterprise Linux 9 - \$basearch",
mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=$basearch&infra=$infra&content=$contentdir', mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=$basearch&infra=$infra&content=$contentdir',
enabled => '1', enabled => $rs_enable_epel,
gpgcheck => '0', gpgcheck => '0',
require => Exec['install EPEL RPM'], require => Exec['install EPEL RPM'],
} }

View File

@@ -4,7 +4,7 @@
# @summary Class contains all parameters for the resources_cd module. # @summary Class contains all parameters for the resources_cd module.
# @param [Array] reqpackages which packages to install # @param [Array] reqpackages which packages to install
# @param [String] pkg_ensure version to install, 'present', 'latest', 'v1.0' # @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 ( class resources_cd::params (
@@ -12,7 +12,7 @@ class resources_cd::params (
'Rocky' => ['yum', 'yum-utils'], 'Rocky' => ['yum', 'yum-utils'],
}, },
String $pkg_ensure = 'present', 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' $epel_from_url = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'