changes params structure
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
# @param [string] pkg_ensure
|
# @param [string] pkg_ensure
|
||||||
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
|
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
|
||||||
# to choose, i.e. `latest` or `present`.
|
# to choose, i.e. `latest` or `present`.
|
||||||
|
# @param [array] reqpackages the packages to install.
|
||||||
# @param [boolean] fn_manage_config Whether to manage the fail2ban
|
# @param [boolean] fn_manage_config Whether to manage the fail2ban
|
||||||
# configuration files. If set to false, fail2ban will be installed, but the
|
# configuration files. If set to false, fail2ban will be installed, but the
|
||||||
# configuration will not be managed.
|
# configuration will not be managed.
|
||||||
@@ -120,7 +121,11 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
class cd_fail2ban::params (
|
class cd_fail2ban::params (
|
||||||
|
|
||||||
|
# installation
|
||||||
$pkg_ensure = 'latest',
|
$pkg_ensure = 'latest',
|
||||||
|
$reqpackages = ['fail2ban','fail2ban-firewalld',
|
||||||
|
'fail2ban-sendmail','fail2ban-server.noarch',
|
||||||
|
'whois'],
|
||||||
|
|
||||||
$fn_manage_config = true,
|
$fn_manage_config = true,
|
||||||
$fn_enable_service = 'running',
|
$fn_enable_service = 'running',
|
||||||
@@ -172,13 +177,6 @@ $fn_default_action = 'action_',
|
|||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# installation section
|
|
||||||
$reqpackages = $::operatingsystem ? {
|
|
||||||
/(?i-mx:centos|fedora|redhat)/ => ['fail2ban','fail2ban-firewalld',
|
|
||||||
'fail2ban-sendmail',
|
|
||||||
'fail2ban-server.noarch','whois'],
|
|
||||||
}
|
|
||||||
|
|
||||||
$fn_jail_paths = $::operatingsystem ? {
|
$fn_jail_paths = $::operatingsystem ? {
|
||||||
/(?i-mx:centos|fedora|redhat)/ => 'fedora',
|
/(?i-mx:centos|fedora|redhat)/ => 'fedora',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user