From 33fac7ef0fff52afcae627d84371f565671ebd3c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 17 Nov 2023 19:55:07 +0000 Subject: [PATCH] Use gamin instead of inotify on Ubuntu --- cookbooks/fail2ban/recipes/default.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cookbooks/fail2ban/recipes/default.rb b/cookbooks/fail2ban/recipes/default.rb index 297d4fcc7..060251680 100644 --- a/cookbooks/fail2ban/recipes/default.rb +++ b/cookbooks/fail2ban/recipes/default.rb @@ -22,11 +22,16 @@ include_recipe "prometheus" package %w[ fail2ban - python3-inotify python3-systemd ruby-webrick ] +if platform?("debian") + package "python3-inotify" +else + package "gamin" +end + template "/etc/fail2ban/jail.d/00-default.conf" do source "jail.default.erb" owner "root" -- 2.39.5