X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cd67d87038f5a76048da47e06fdfcf4b6f902197..22d4d76204611d2dd46ef62a0f6f7f1fbf78987d:/cookbooks/fail2ban/templates/default/jail.erb diff --git a/cookbooks/fail2ban/templates/default/jail.erb b/cookbooks/fail2ban/templates/default/jail.erb index c4331093b..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.sort.join(",") %> +ignoreip = <%= @ignoreips.sort.join(" ") %> <% end -%>