X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9d456f01b9ef62193a864f8f2c8a81b563c0f51b..47b636ac08ba7e76eecfbc77a399582d0f89dcb6:/cookbooks/fail2ban/templates/default/jail.erb diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index c155e0f6c..91978488c 100644 --- a/cookbooks/fail2ban/templates/default/jail.erb +++ b/cookbooks/fail2ban/templates/default/jail.erb @@ -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.join(",") %> +ignoreip = <%= @ignoreips.sort.join(" ") %> <% end -%>