2026-04-16 14:30:16 +02:00
|
|
|
## confdroid_jenkins::main::service.pp
|
|
|
|
|
# Module name: confdroid_jenkins
|
|
|
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
2025-05-05 17:50:00 +02:00
|
|
|
# @summary Class manages Jenkins service
|
|
|
|
|
##############################################################################
|
2026-04-16 14:30:16 +02:00
|
|
|
class confdroid_jenkins::main::service (
|
2025-05-05 17:50:00 +02:00
|
|
|
|
2026-04-16 14:30:16 +02:00
|
|
|
) inherits confdroid_jenkins::params {
|
2025-05-05 17:50:00 +02:00
|
|
|
if $fqdn == $js_host_fqdn {
|
2026-04-16 14:30:16 +02:00
|
|
|
require confdroid_jenkins::main::files
|
|
|
|
|
require confdroid_jenkins::firewall::iptables
|
2025-05-05 18:16:46 +02:00
|
|
|
|
|
|
|
|
service { $js_service:
|
|
|
|
|
ensure => running,
|
|
|
|
|
hasstatus => true,
|
|
|
|
|
hasrestart => true,
|
|
|
|
|
enable => true,
|
|
|
|
|
}
|
2025-05-05 17:50:00 +02:00
|
|
|
}
|
|
|
|
|
}
|