rewite general

This commit is contained in:
2026-03-11 12:12:23 +01:00
parent 95d624e813
commit b048bd8f48
30 changed files with 124 additions and 4074 deletions

View File

@@ -1,11 +1,11 @@
## fail2ban_cd::params.pp
# Module name: fail2ban_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class holds all parameters for the fail2ban_cd module
# @param [String] pkg_ensure
## confdroid_fail2ban::params.pp
# Module name: confdroid_fail2ban
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class holds all parameters for the confdroid_fail2ban module
# @param [String] fn_pkg_ensure
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
# to choose, i.e. `latest` or `present`.
# @param [array] reqpackages the packages to install.
# @param [array] fn_reqpackages the packages to install.
# @param [boolean] fn_manage_config Whether to manage the fail2ban
# configuration files. If set to false, fail2ban will be installed, but the
# configuration will not be managed.
@@ -101,11 +101,11 @@
# @param [String] fn_default_action Choose default action.
# @param [String] fn_jail_paths the fail path. defaults to fedora.
###############################################################################
class fail2ban_cd::params (
class confdroid_fail2ban::params (
# installation
String $pkg_ensure = 'latest',
Array $reqpackages = ['fail2ban','fail2ban-firewalld',
String $fn_pkg_ensure = 'present',
Array $fn_reqpackages = ['fail2ban','fail2ban-firewalld',
'fail2ban-sendmail','fail2ban-server.noarch','whois'],
Boolean $fn_manage_config = true,
@@ -176,17 +176,17 @@ class fail2ban_cd::params (
# files
$fn_fail2ban_conf_file = "${fn_main_dir}/fail2ban.conf"
$fn_fail2ban_conf_erb = 'fail2ban_cd/fail2ban_conf.erb'
$fn_fail2ban_conf_erb = 'confdroid_fail2ban/fail2ban_conf.erb'
$fn_fail2ban_local_file = "${fn_main_dir}/fail2ban.local"
$fn_fail2ban_local_erb = 'fail2ban_cd/fail2ban_local.erb'
$fn_fail2ban_local_erb = 'confdroid_fail2ban/fail2ban_local.erb'
$fn_jail_conf_file = "${fn_main_dir}/jail.conf"
$fn_jail_conf_erb = 'fail2ban_cd/jail_conf.erb'
$fn_jail_conf_erb = 'confdroid_fail2ban/jail_conf.erb'
$fn_jail_local_file = "${fn_main_dir}/jail.local"
$fn_jail_local_erb = 'fail2ban_cd/jail_local.erb'
$fn_jail_local_erb = 'confdroid_fail2ban/jail_local.erb'
$fn_paths_common_file = "${fn_main_dir}/paths-common.conf"
$fn_paths_common_erb = 'fail2ban_cd/paths_common_conf.erb'
$fn_paths_common_erb = 'confdroid_fail2ban/paths_common_conf.erb'
# includes must be last
include fail2ban_cd::main::config
include confdroid_fail2ban::main::config
}