X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ad8f13659e6b61eda0d81106368777ec999d3641..7e75c0595594b2b5ddac50991f6cd0f7e61633ad:/cookbooks/fail2ban/templates/default/jail.erb?ds=sidebyside diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index fc0f8bdc8..357e09ea5 100644 --- a/cookbooks/fail2ban/templates/default/jail.erb +++ b/cookbooks/fail2ban/templates/default/jail.erb @@ -1,6 +1,34 @@ # 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 -%> +<% if @ports -%> +port = <%= @ports.join(",") %> +<% end -%> +<% if @filter -%> +filter = <%= @filter %> +<% end -%> +<% if @backend -%> +backend = <%= @backend %> +<% end -%> +<% if @journalmatch -%> +journalmatch = <%= @journalmatch %> +<% end -%> +<% if @logpath -%> +logpath = <%= @logpath %> +<% end -%> +<% if @bantime -%> +bantime = <%= @bantime %> +<% end -%> +<% if @findtime -%> +findtime = <%= @findtime %> +<% end -%> +<% if @maxretry -%> +maxretry = <%= @maxretry %> +<% end -%> +<% if @ignoreips -%> +ignoreip = <%= @ignoreips.sort.join(" ") %> +<% end -%>