From a2d630230bb620ece1cc4e17ea6777ff82478a79 Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Wed, 11 Mar 2026 14:28:12 +0100 Subject: [PATCH] Recommit for updates in build 6 --- doc/_index.html | 5 + doc/file.README.html | 2 + doc/index.html | 2 + doc/puppet_class_list.html | 9 +- ..._fail2ban_3A_3Amonitoring_3A_3Atarget.html | 156 ++++++++++++++++++ .../confdroid_fail2ban_3A_3Aparams.html | 82 ++++++++- 6 files changed, 247 insertions(+), 9 deletions(-) create mode 100644 doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html diff --git a/doc/_index.html b/doc/_index.html index 11f83e1..dfccf3e 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -98,6 +98,11 @@ +
  • + confdroid_fail2ban::monitoring::target + +
  • +
  • confdroid_fail2ban::params diff --git a/doc/file.README.html b/doc/file.README.html index 52975b3..8116c35 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -135,6 +135,8 @@

    manage service status

  • +

    Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set fn_enable_serviceto stopped via ENC.

    +

    Dependencies

    All dependencies must be included in the catalogue.

    diff --git a/doc/index.html b/doc/index.html index 3fea7d4..7218daf 100644 --- a/doc/index.html +++ b/doc/index.html @@ -135,6 +135,8 @@

    manage service status

    +

    Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set fn_enable_serviceto stopped via ENC.

    +

    Dependencies

    All dependencies must be included in the catalogue.

    diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 8dad68f..6fc4bc4 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -78,7 +78,14 @@ -
  • +
  • + +
  • + + +
  • diff --git a/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html b/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html new file mode 100644 index 0000000..66a312c --- /dev/null +++ b/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html @@ -0,0 +1,156 @@ + + + + + + + Puppet Class: confdroid_fail2ban::monitoring::target + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_fail2ban::monitoring::target

    +
    + +
    +
    Inherits:
    +
    confdroid_fail2ban::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/monitoring/target.pp +
    +
    +
    + +

    Summary

    + class manages exports for nagios monitoring + +

    Overview

    +
    +
    + +

    confdroid_fail2ban::monitoring::target.pp Module name: confdroid_fail2ban Author: 12ww1160 (12ww1160@puppetsoft.com)

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +
    +
    # File 'manifests/monitoring/target.pp', line 6
    +
    +class confdroid_fail2ban::monitoring::target (
    +
    +) inherits confdroid_fail2ban::params {
    +  if $fn_incl_target == true {
    +    @@nagios_service { "check_fail2ban_${fqdn}":
    +      check_command       => 'check_procs -c 1:1 -a fail2ban-server',
    +      use                 => 'generic-service',
    +      host_name           => $fqdn,
    +      notification_period => '24x7',
    +      service_description => "${fqdn}_check_fail2ban",
    +      target              => $fn_target_service,
    +      owner               => 'nagios',
    +      group               => 'nagios',
    +      mode                => '0640',
    +      contacts            => $fn_target_contacts,
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html b/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html index fd380eb..d5b02b5 100644 --- a/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html +++ b/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html @@ -77,6 +77,8 @@ confdroid_fail2ban::main::service
    + confdroid_fail2ban::monitoring::target
    + @@ -813,6 +815,60 @@ —

    the fail path. defaults to fedora.

    +
    + +
  • + +
  • + + fn_incl_target + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    Whether to include monitoring targets for nagios. If set to true, monitoring targets will be included for the service.

    +
    + +
  • + +
  • + + fn_target_service + + + (String) + + + (defaults to: '/etc/nagios/conf.d/fail2ban_service.cfg') + + + — +
    +

    The path to the nagios service configuration file to be created if fn_incl_target is set to true.

    +
    + +
  • + +
  • + + fn_target_contacts + + + (String) + + + (defaults to: 'nagiosadmin') + + + — +
    +

    The nagios contacts to be notified for the service if fn_incl_target is set to true.

  • @@ -828,12 +884,6 @@
     
     
    -104
    -105
    -106
    -107
    -108
    -109
     110
     111
     112
    @@ -915,10 +965,21 @@
     188
     189
     190
    -191
    +191 +192 +193 +194 +195 +196 +197 +198 +199 +200 +201 +202 -
    # File 'manifests/params.pp', line 104
    +        
    # File 'manifests/params.pp', line 110
     
     class confdroid_fail2ban::params (
     
    @@ -974,6 +1035,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']