changes params structure

This commit is contained in:
Arne Teuke
2020-06-07 14:22:43 +02:00
parent 166646f1d1
commit 5439dccf9d
2 changed files with 18 additions and 2 deletions

View File

@@ -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],
}
}
}
}

View File

@@ -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',