changes params structure
This commit is contained in:
@@ -27,7 +27,20 @@ class cd_fail2ban::main::install (
|
|||||||
|
|
||||||
require cd_resources
|
require cd_resources
|
||||||
|
|
||||||
package {$reqpackages:
|
if $::operatingsystemmajrelease != '8' {
|
||||||
ensure => $pkg_ensure,
|
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',
|
'fail2ban-sendmail','fail2ban-server.noarch',
|
||||||
'whois'],
|
'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_manage_config = true,
|
||||||
$fn_enable_service = 'running',
|
$fn_enable_service = 'running',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user