Puppet Class: icingaweb2::module::x509::service
- Defined in:
- manifests/module/x509/service.pp
Summary
Installs and configures the x509 job scheduler.Overview
Note:
Only systemd is supported by the Icinga Team and this module.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'manifests/module/x509/service.pp', line 14
class icingaweb2::module::x509::service (
Stdlib::Ensure::Service $ensure = 'running',
Boolean $enable = true,
) {
require icingaweb2::module::x509
$install_method = $icingaweb2::module::x509::install_method
if $install_method != 'package' {
$_unit_file = if $icingaweb2::module::x509::module_dir {
"${icingaweb2::module::x509::module_dir}/config/systemd/icinga-x509.service"
} else {
"${icingaweb2::globals::default_module_path}/x509/config/systemd/icinga-x509.service"
}
systemd::unit_file { 'icinga-x509.service':
ensure => 'present',
source => $_unit_file,
notify => Service['icinga-x509'],
}
}
service { 'icinga-x509':
ensure => $ensure,
enable => $enable,
}
}
|