]> git.openstreetmap.org Git - chef.git/blob - cookbooks/fail2ban/templates/default/jail.erb
Yet more rubucop cleanups
[chef.git] / cookbooks / fail2ban / templates / default / jail.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 [DEFAULT]
4 destemail = admins@openstreetmap.org
5 banaction = shorewall
6 bantime = 14400
7 <% @jails.each do |jail| -%>
8
9 [<%= jail[:name] %>]
10 enabled = true
11 <% if jail[:protocol] -%>
12 protocol = <%= jail[:protocol] %>
13 <% end -%>
14 port = <%= jail[:port] %>
15 filter = <%= jail[:filter] %>
16 logpath = <%= jail[:logpath] %>
17 <% if jail[:maxretry] -%>
18 maxretry = <%= jail[:maxretry] %>
19 <% end -%>
20 <% end -%>