X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..61ec6091e1dc00f690b1eb8a1a624f9e73daf324:/cookbooks/tilecache/recipes/default.rb?ds=inline diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index f3b8382fb..4afda5568 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -22,6 +22,7 @@ require "ipaddr" include_recipe "ssl" include_recipe "squid" include_recipe "nginx" +include_recipe "fail2ban" package "apache2" do action :remove @@ -135,6 +136,10 @@ template "/etc/logrotate.d/nginx" do mode 0o644 end +fail2ban_jail "squid" do + maxretry 1000 +end + tilerenders.each do |render| munin_plugin "ping_#{render[:fqdn]}" do target "ping_"