From 3c387421427fd91b296afc8466c8308817e9f70b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 Jun 2022 12:05:12 +0100 Subject: [PATCH] Install ruby-webrick for prometheus exporters that need it --- cookbooks/fail2ban/recipes/default.rb | 5 ++++- cookbooks/mailman/recipes/default.rb | 1 + cookbooks/nominatim/recipes/default.rb | 2 ++ cookbooks/tile/recipes/default.rb | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cookbooks/fail2ban/recipes/default.rb b/cookbooks/fail2ban/recipes/default.rb index 3ad626ff0..ca03d37d6 100644 --- a/cookbooks/fail2ban/recipes/default.rb +++ b/cookbooks/fail2ban/recipes/default.rb @@ -20,7 +20,10 @@ include_recipe "munin" include_recipe "prometheus" -package "fail2ban" +package %w[ + fail2ban + ruby-webrick +] template "/etc/fail2ban/jail.d/00-default.conf" do source "jail.default.erb" diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index d88b18885..f7deccadd 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -25,6 +25,7 @@ include_recipe "prometheus" package %w[ locales-all mailman + ruby-webrick ] subscribe_form_secret = persistent_token("mailman", "subscribe_form_secret") diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 14500499f..30b2a20d7 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -459,6 +459,8 @@ munin_plugin "nominatim_requests" do target "#{source_directory}/munin/nominatim_requests_querylog" end +package "ruby-webrick" + prometheus_exporter "nominatim" do port 8082 user "www-data" diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index f2bfd6a7b..4f60005e7 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -695,6 +695,8 @@ munin_plugin "renderd_zoom_time" munin_plugin "replication_delay" +package "ruby-webrick" + prometheus_exporter "modtile" do port 9494 end -- 2.39.5