Puppet Class: icingaweb2::module::reporting::service
- Defined in:
- manifests/module/reporting/service.pp
Summary
Installs and configures the reporting scheduler.Overview
Note:
Only systemd is supported by the Icinga Team and this module.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'manifests/module/reporting/service.pp', line 26
class icingaweb2::module::reporting::service (
Stdlib::Ensure::Service $ensure = 'running',
Boolean $enable = true,
String $user = 'icingareporting',
String $group = 'icingaweb2',
Boolean $manage_user = true,
) {
require icingaweb2::module::reporting
$install_method = $icingaweb2::module::reporting::install_method
if $install_method != 'package' {
if $manage_user {
user { $user:
ensure => 'present',
gid => $group,
shell => '/bin/false',
before => Systemd::Unit_file['icinga-reporting.service'],
}
}
systemd::unit_file { 'icinga-reporting.service':
ensure => 'present',
content => epp('icingaweb2/icinga-reporting.service.epp', {
'conf_user' => $user,
'icingacli_bin' => $icingaweb2::globals::icingacli_bin,
}),
notify => Service['icinga-reporting'],
}
}
service { 'icinga-reporting':
ensure => $ensure,
enable => $enable,
}
}
|