X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a37b5cd0a0de895d04066f08aef048de3082257f..06b8c2609dac3b834dcf33af1f394354771a3fa5:/cookbooks/fail2ban/resources/jail.rb diff --git a/cookbooks/fail2ban/resources/jail.rb b/cookbooks/fail2ban/resources/jail.rb index 01d9c502c..65d1d3b51 100644 --- a/cookbooks/fail2ban/resources/jail.rb +++ b/cookbooks/fail2ban/resources/jail.rb @@ -26,11 +26,8 @@ attribute :logpath, :kind_of => String attribute :protocol, :kind_of => String attribute :ports, :kind_of => Array, :default => [] attribute :maxretry, :kind_of => Integer +attribute :ignoreips, :kind_of => Array def after_created - if node[:lsb][:release].to_f >= 14.04 - notifies :reload, "service[fail2ban]" - else - notifies :create, "template[/etc/fail2ban/jail.local]" - end + notifies :reload, "service[fail2ban]" end