]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/resources/jail.rb
Fix typo
[chef.git] / cookbooks / fail2ban / resources / jail.rb
index 01d9c502ce80b82b2efb6dc524d4a2f9c040fc4a..65d1d3b514617c50d98c39f22db93b2546acd4c3 100644 (file)
@@ -26,11 +26,8 @@ attribute :logpath, :kind_of => String
 attribute :protocol, :kind_of => String
 attribute :ports, :kind_of => Array, :default => []
 attribute :maxretry, :kind_of => Integer
+attribute :ignoreips, :kind_of => Array
 
 def after_created
-  if node[:lsb][:release].to_f >= 14.04
-    notifies :reload, "service[fail2ban]"
-  else
-    notifies :create, "template[/etc/fail2ban/jail.local]"
-  end
+  notifies :reload, "service[fail2ban]"
 end