]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/templates/default/jail.erb
fail2ban: separate ignoreips with spaces instead of comma
[chef.git] / cookbooks / fail2ban / templates / default / jail.erb
index fc0f8bdc8befe9ab92434d1d131adb2d3e48ae10..a5cdd4895b2191097a7d19745ed97cf85613c469 100644 (file)
@@ -1,6 +1,16 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
-[DEFAULT]
-destemail = admins@openstreetmap.org
-banaction = shorewall
-bantime = 14400
+[<%= @name %>]
+enabled = true
+<% if @protocol -%>
+protocol = <%= @protocol %>
+<% end -%>
+port = <%= @ports.join(",") %>
+filter = <%= @filter %>
+logpath = <%= @logpath %>
+<% if @maxretry -%>
+maxretry = <%= @maxretry %>
+<% end -%>
+<% if @ignoreips -%>
+ignoreip = <%= @ignoreips.sort.join(" ") %>
+<% end -%>