2025-03-02 23:30:48 +01:00
|
|
|
## fail2ban_cd::main::service.pp
|
|
|
|
|
# Module name: fail2ban_cd
|
2017-08-03 13:07:42 +01:00
|
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
2025-03-02 23:30:48 +01:00
|
|
|
# @summary Class manages the service(s) for fail2ban_cd.
|
2017-08-03 13:07:42 +01:00
|
|
|
#############################################################################
|
2025-03-02 23:30:48 +01:00
|
|
|
class fail2ban_cd::main::service (
|
2017-08-03 13:07:42 +01:00
|
|
|
|
2025-03-02 23:30:48 +01:00
|
|
|
) inherits fail2ban_cd::params {
|
|
|
|
|
require fail2ban_cd::main::files
|
2017-08-03 13:07:42 +01:00
|
|
|
|
|
|
|
|
service { $fn_service:
|
2025-03-02 23:30:48 +01:00
|
|
|
ensure => $fn_enable_service,
|
|
|
|
|
hasstatus => true,
|
|
|
|
|
hasrestart => true,
|
|
|
|
|
enable => true,
|
2017-08-03 13:07:42 +01:00
|
|
|
}
|
|
|
|
|
}
|