2026-02-10 17:43:42 +01:00
|
|
|
## confdroid_nrpe::main::service.pp
|
|
|
|
|
# Module name: confdroid_nrpe
|
|
|
|
|
# Author: 12ww1160 (12ww1160@ConfDroid.com)
|
|
|
|
|
# @summary Class manages the service(s) for confdroid_nrpe.
|
2017-07-28 16:42:50 +01:00
|
|
|
#############################################################################
|
2026-02-10 17:43:42 +01:00
|
|
|
class confdroid_nrpe::main::service (
|
|
|
|
|
|
|
|
|
|
) inherits confdroid_nrpe::params {
|
|
|
|
|
require confdroid_nrpe::main::files
|
2017-07-28 16:42:50 +01:00
|
|
|
|
2025-05-12 16:58:52 +02:00
|
|
|
if $ne_incl_fw == true {
|
2026-02-10 17:43:42 +01:00
|
|
|
require confdroid_nrpe::firewall::iptables
|
2017-07-28 16:49:02 +01:00
|
|
|
}
|
|
|
|
|
|
2017-07-30 12:32:29 +01:00
|
|
|
if $ne_manage_cmds == true {
|
2026-02-10 17:43:42 +01:00
|
|
|
require confdroid_nrpe::commands::definition_rules
|
2017-07-30 12:32:29 +01:00
|
|
|
}
|
|
|
|
|
|
2017-07-30 17:52:17 +01:00
|
|
|
if $ne_include_selinux == true {
|
2026-02-10 17:43:42 +01:00
|
|
|
require confdroid_nrpe::selinux::config
|
2017-07-30 17:52:17 +01:00
|
|
|
}
|
|
|
|
|
|
2017-07-28 16:42:50 +01:00
|
|
|
service { $ne_service:
|
2025-05-12 16:58:52 +02:00
|
|
|
ensure => running,
|
|
|
|
|
hasstatus => true,
|
|
|
|
|
hasrestart => true,
|
|
|
|
|
enable => true,
|
2017-07-28 16:42:50 +01:00
|
|
|
}
|
|
|
|
|
}
|