]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/templates/default/jail.erb
Make more fail2ban jail properties optional
[chef.git] / cookbooks / fail2ban / templates / default / jail.erb
index c4331093b7527bcc8002de9c4360abfa0f0f107a..91978488c5569caaed9f077b6ced382f2ab343ea 100644 (file)
@@ -5,12 +5,18 @@ enabled = true
 <% if @protocol -%>
 protocol = <%= @protocol %>
 <% end -%>
+<% if @ports -%>
 port = <%= @ports.join(",") %>
+<% end -%>
+<% if @filter -%>
 filter = <%= @filter %>
+<% end -%>
+<% if @logpath -%>
 logpath = <%= @logpath %>
+<% end -%>
 <% if @maxretry -%>
 maxretry = <%= @maxretry %>
 <% end -%>
 <% if @ignoreips -%>
-ignoreip = <%= @ignoreips.sort.join(",") %>
+ignoreip = <%= @ignoreips.sort.join(" ") %>
 <% end -%>