X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ad8f13659e6b61eda0d81106368777ec999d3641..2bce87624a95eeebc027ee8f3eed5fda8c47bba9:/cookbooks/fail2ban/templates/default/jail.erb diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index fc0f8bdc8..20010d1b2 100644 --- a/cookbooks/fail2ban/templates/default/jail.erb +++ b/cookbooks/fail2ban/templates/default/jail.erb @@ -4,3 +4,17 @@ destemail = admins@openstreetmap.org banaction = shorewall bantime = 14400 +<% @jails.each do |jail| -%> + +[<%= jail[:name] %>] +enabled = true +<% if jail[:protocol] -%> +protocol = <%= jail[:protocol] %> +<% end -%> +port = <%= jail[:port] %> +filter = <%= jail[:filter] %> +logpath = <%= jail[:logpath] %> +<% if jail[:maxretry] -%> +maxretry = <%= jail[:maxretry] %> +<% end -%> +<% end -%>