add installation and yumrepo

This commit is contained in:
Arne Teuke
2025-05-05 17:02:29 +02:00
parent 847a48620a
commit 5adca39051
9 changed files with 437 additions and 2 deletions

27
manifests/params.pp Normal file
View File

@@ -0,0 +1,27 @@
## jenkins_cd::params.pp
# Module name: jenkins_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class holds all parameters for the jenkins_cd module.
# @param [string] reqpackages which packages to install
# @param [string] pkg_ensure which packages to install
##############################################################################
class jenkins_cd::params (
String $reqpackages = 'java-21-openjdk.x86_64',
String $pkg_ensure = 'latest',
) {
# facts
$fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
# yum repo
$js_base_url = 'https://pkg.jenkins.io/redhat-stable/'
$js_key_url = "${js_base_url}/jenkins.io.key"
$js_key_code = 'gpg-pubkey-d50582e6-4a3feef6'
# includes must be last
include jenkins_cd::main::config
}