From: Tom Hughes Date: Fri, 17 Nov 2023 19:55:07 +0000 (+0000) Subject: Use gamin instead of inotify on Ubuntu X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/33fac7ef0fff52afcae627d84371f565671ebd3c?ds=sidebyside Use gamin instead of inotify on Ubuntu --- 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"