X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ad8f13659e6b61eda0d81106368777ec999d3641..e11280b3d291a2be021d4c7bea3252d01547d447:/cookbooks/fail2ban/templates/default/jail.erb diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index fc0f8bdc8..08fb7ed16 100644 --- a/cookbooks/fail2ban/templates/default/jail.erb +++ b/cookbooks/fail2ban/templates/default/jail.erb @@ -1,6 +1,13 @@ # 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 -%>