OP#483 add target for nagios

This commit is contained in:
2026-03-11 14:27:05 +01:00
parent 04b3f90ee2
commit 41285c88b5
3 changed files with 36 additions and 0 deletions

View File

@@ -100,6 +100,12 @@
# (uses action.d/badips.conf for reporting only).
# @param [String] fn_default_action Choose default action.
# @param [String] fn_jail_paths the fail path. defaults to fedora.
# @param [Boolean] fn_incl_target Whether to include monitoring targets for
# nagios. If set to true, monitoring targets will be included for the service.
# @param [String] fn_target_service The path to the nagios service configuration
# file to be created if fn_incl_target is set to true.
# @param [String] fn_target_contacts The nagios contacts to be notified for
# the service if fn_incl_target is set to true.
###############################################################################
class confdroid_fail2ban::params (
@@ -155,6 +161,11 @@ class confdroid_fail2ban::params (
String $fn_default_action = 'action_',
String $fn_jail_paths = 'fedora',
# nagios
Boolean $fn_incl_target = false,
String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
String $fn_target_contacts = 'nagiosadmin',
) {
# shortcuts
$fqdn = $facts['networking']['fqdn']