add installation and yumrepo
This commit is contained in:
27
manifests/params.pp
Normal file
27
manifests/params.pp
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user