diff --git a/CHANGELOG.md b/CHANGELOG.md index a276ed9..34c8df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ Changelog of Git Changelog.
+
+
# File 'manifests/main/install.pp', line 24
@@ -137,8 +150,21 @@ 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],
+ }
}
}
latest or present.
+ the packages to install.
+Choose default action.
+-121 122 123 124 @@ -961,11 +993,17 @@ log lines. 217
# File 'manifests/params.pp', line 121
+ # File 'manifests/params.pp', line 122
class cd_fail2ban::params (
+# installation
$pkg_ensure = 'latest',
+$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',
@@ -1017,13 +1055,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 ? {
/(?i-mx:centos|fedora|redhat)/ => 'fedora',
}