Puppet Class: icinga2::service
- Defined in:
-
manifests/service.pp
Summary
This class handles the Icinga 2 service. By default the service will
start on boot and will be restarted if stopped.
Overview
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'manifests/service.pp', line 7
class icinga2::service {
assert_private()
$ensure = $icinga2::ensure
$enable = $icinga2::enable
$manage_service = $icinga2::manage_service
$service_name = $icinga2::globals::service_name
$reload = $icinga2::globals::service_reload
$logon_account = $icinga2::globals::logon_account
$hasrestart = $reload ? {
undef => false,
default => true,
}
if $manage_service {
service { $service_name:
ensure => $ensure,
enable => $enable,
hasrestart => $hasrestart,
restart => $reload,
logonaccount => $logon_account,
}
}
}
|