changes params structure
This commit is contained in:
@@ -27,7 +27,20 @@ class cd_fail2ban::main::install (
|
||||
|
||||
require cd_resources
|
||||
|
||||
package {$reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
if $::operatingsystemmajrelease != '8' {
|
||||
package {$reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
}
|
||||
}
|
||||
|
||||
if $::operatingsystemmajrelease == '8' {
|
||||
package {$fn_extra_repo_url:
|
||||
ensure => present,
|
||||
|
||||
package {$reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
require => Package[$fn_extra_repo_url],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,6 +127,9 @@ $reqpackages = ['fail2ban','fail2ban-firewalld',
|
||||
'fail2ban-sendmail','fail2ban-server.noarch',
|
||||
'whois'],
|
||||
|
||||
# urls
|
||||
$fn_extra_repo_url = 'http://repo.okay.com.mx/centos/8/x86_64/release/okay-release-1-1.noarch.rpm'
|
||||
|
||||
$fn_manage_config = true,
|
||||
$fn_enable_service = 'running',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user