2026-04-16 14:30:16 +02:00
|
|
|
## confdroid_jenkins::params.pp
|
|
|
|
|
# Module name: confdroid_jenkins
|
|
|
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
|
|
|
# @summary Class holds all parameters for the confdroid_jenkins module.
|
2026-04-16 15:50:13 +02:00
|
|
|
# @param [Array] js_reqpackages which packages to install
|
|
|
|
|
# @param [String] js_pkg_ensure which packages to install
|
2026-04-16 14:30:16 +02:00
|
|
|
# @param [String] js_gpg_check whether to enable GPG check for Jenkins packages
|
|
|
|
|
# @param [String] js_repo_enabled whether to enable the Jenkins repository
|
2025-10-21 17:14:08 +02:00
|
|
|
# @param [String] js_host_fqdn fqdn of the host where Jenkins should run
|
2026-04-16 14:30:16 +02:00
|
|
|
# @param [String] js_base_url the base URL for the Jenkins repository
|
|
|
|
|
# @param [String] js_key the filename of the Jenkins GPG key to import
|
|
|
|
|
# @param [String] js_key_code the code of the Jenkins GPG key to check
|
2026-04-16 15:50:13 +02:00
|
|
|
# @param [String] js_gpg_repo_check whether to enable GPG check for the Jenkins repository
|
2025-10-21 17:14:08 +02:00
|
|
|
# @param [Boolean] js_enable_fw whether to enable firewall control
|
|
|
|
|
# @param [String] js_fw_rule the prefix for the firewall rule order
|
|
|
|
|
# @param [String] js_jenkins_port the port to open for Jenkins
|
|
|
|
|
# @param [String] js_source_net the source range to open
|
|
|
|
|
# @param [Boolean] js_use_sudo whether to add Jenkins to sudoers list
|
2025-05-05 17:02:29 +02:00
|
|
|
##############################################################################
|
2026-04-16 14:30:16 +02:00
|
|
|
class confdroid_jenkins::params (
|
2025-05-05 17:02:29 +02:00
|
|
|
|
2026-04-16 15:50:13 +02:00
|
|
|
Array $js_reqpackages = ['jenkins','fontconfig'],
|
|
|
|
|
String $js_pkg_ensure = 'present',
|
2026-04-16 15:41:22 +02:00
|
|
|
String $js_gpg_check = '1',
|
|
|
|
|
String $js_repo_enabled = '1',
|
|
|
|
|
String $js_gpg_repo_check = '1',
|
|
|
|
|
String $js_base_url = 'https://pkg.jenkins.io/rpm-stable',
|
|
|
|
|
String $js_key = 'repodata/repomd.xml.key',
|
|
|
|
|
String $js_key_code = 'gpg-pubkey-14abfc68-69494683',
|
2025-05-05 17:02:29 +02:00
|
|
|
|
2025-05-05 17:07:07 +02:00
|
|
|
# server fqdn
|
2026-04-16 15:41:22 +02:00
|
|
|
String $js_host_fqdn = 'jenkins.example.net',
|
2025-05-05 17:07:07 +02:00
|
|
|
|
2025-05-05 18:13:28 +02:00
|
|
|
# firewall
|
2026-04-16 15:41:22 +02:00
|
|
|
Boolean $js_enable_fw = true,
|
|
|
|
|
String $js_fw_rule = '50',
|
|
|
|
|
String $js_jenkins_port = '8080',
|
|
|
|
|
String $js_source_net = '0.0.0.0/0',
|
2025-05-05 18:13:28 +02:00
|
|
|
|
2025-10-21 17:14:08 +02:00
|
|
|
# user
|
2026-04-16 15:41:22 +02:00
|
|
|
Boolean $js_use_sudo = false,
|
2025-10-21 17:14:08 +02:00
|
|
|
|
2025-05-05 17:02:29 +02:00
|
|
|
) {
|
|
|
|
|
# facts
|
|
|
|
|
$fqdn = $facts['networking']['fqdn']
|
|
|
|
|
$domain = $facts['networking']['domain']
|
|
|
|
|
$os_name = $facts['os']['name']
|
|
|
|
|
$os_release = $facts['os']['release']['major']
|
|
|
|
|
|
2025-10-21 17:14:08 +02:00
|
|
|
$js_sudoers_file = '/etc/sudoers.d/jenkins_sudo'
|
2026-04-16 14:30:16 +02:00
|
|
|
$js_sudoers_erb = 'confdroid_jenkins/sudoers.erb'
|
2025-10-21 17:14:08 +02:00
|
|
|
|
2025-05-05 18:16:46 +02:00
|
|
|
# Service
|
|
|
|
|
$js_service = 'jenkins'
|
|
|
|
|
|
2025-05-05 17:02:29 +02:00
|
|
|
# includes must be last
|
2026-04-16 14:30:16 +02:00
|
|
|
include confdroid_jenkins::main::config
|
2025-05-05 17:02:29 +02:00
|
|
|
}
|