add service
This commit is contained in:
@@ -8,5 +8,13 @@ class jenkins_cd::main::service (
|
|||||||
) inherits jenkins_cd::params {
|
) inherits jenkins_cd::params {
|
||||||
if $fqdn == $js_host_fqdn {
|
if $fqdn == $js_host_fqdn {
|
||||||
require jenkins_cd::main::files
|
require jenkins_cd::main::files
|
||||||
|
require jenkins_cd::firewall::iptables
|
||||||
|
|
||||||
|
service { $js_service:
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ class jenkins_cd::params (
|
|||||||
$js_key_url = "${js_base_url}/jenkins.io-2023.key"
|
$js_key_url = "${js_base_url}/jenkins.io-2023.key"
|
||||||
$js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b'
|
$js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b'
|
||||||
|
|
||||||
|
# Service
|
||||||
|
$js_service = 'jenkins'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include jenkins_cd::main::config
|
include jenkins_cd::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user