X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ad8f13659e6b61eda0d81106368777ec999d3641..07619fb5a0f6b998c77566b9794966eb77647125:/cookbooks/fail2ban/templates/default/jail.erb?ds=inline 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 -%>