]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/fail2ban/recipes/default.rb
Install ruby modules for nominatim prometheus exporter
[chef.git] / cookbooks / fail2ban / recipes / default.rb
index a002fe13196fc2ff4debb663dd25392a4f30a57a..3ad626ff021588e2f183b118edea44d2be57d1d4 100644 (file)
 # limitations under the License.
 #
 
+include_recipe "munin"
+include_recipe "prometheus"
+
 package "fail2ban"
 
 template "/etc/fail2ban/jail.d/00-default.conf" do
   source "jail.default.erb"
   owner "root"
   group "root"
-  mode 0o644
+  mode "644"
+  notifies :restart, "service[fail2ban]"
+end
+
+template "/etc/fail2ban/paths-overrides.local" do
+  source "paths-overrides.local.erb"
+  owner "root"
+  group "root"
+  mode "644"
   notifies :restart, "service[fail2ban]"
 end
 
@@ -32,3 +43,7 @@ service "fail2ban" do
 end
 
 munin_plugin "fail2ban"
+
+prometheus_exporter "fail2ban" do
+  port 9635
+end