X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ad8f13659e6b61eda0d81106368777ec999d3641..722833be07c07adb4b487e1c57fb98b31c4c30f3:/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..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 -%>