Skip to content

Commit 64fc013

Browse files
committed
Adjusted build host policy to succeed on centos-7 with fail2ban package
Package methods add -*.* to the end of package promisers and on centos-7 and 8 there are conflicting sub-packages named: fail2ban-shorewall and fail2ban-shorewall-lite Ticket: ENT-13763 Changelog: none
1 parent 5fe8b39 commit 64fc013

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ci/cfengine-build-host-setup.cf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ bundle agent cfengine_build_host_setup
128128
# note that shellcheck, fakeroot and ccache require epel-release to be installed
129129
(redhat|centos).(yum_dnf_conf_ok)::
130130
"epel-release";
131-
!(redhat_7|centos_7).(yum_dnf_conf_ok)::
131+
!(redhat_7|centos_7|redhat_8|centos_8).(yum_dnf_conf_ok)::
132132
"fail2ban"
133133
comment => "Ban IPs with repeated failed SSH auth attempts";
134-
(redhat_7|centos_7).(yum_dnf_conf_ok)::
135-
"fail2ban.noarch"
134+
(redhat_7|centos_7|redhat_8|centos_8).(yum_dnf_conf_ok)::
135+
"fail2ban-server"
136136
comment => "Ban IPs with repeated failed SSH auth attempts. On centos-7 .noarch must be specified as there are conflicting sub-packages attempted with legacy packages promise as fail2ban-*.*.";
137+
"fail2ban-sendmail";
138+
"fail2ban-firewalld";
137139
"ccache";
138140
"fakeroot";
139141
"perl-JSON-PP";

0 commit comments

Comments
 (0)