]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mailman/recipes/default.rb
Make sure database backups abort on error
[chef.git] / cookbooks / mailman / recipes / default.rb
index 1759bf50bacc3d3e86050ad02ba6955dfb43e6b3..f7deccaddb03f102f9b775b32b35bb9ec0fa89f5 100644 (file)
 require "securerandom"
 
 include_recipe "apache"
+include_recipe "prometheus"
 
-package "mailman"
-
-node.rm_normal(:mailman, :subscribe_form_secret)
+package %w[
+  locales-all
+  mailman
+  ruby-webrick
+]
 
 subscribe_form_secret = persistent_token("mailman", "subscribe_form_secret")
 
@@ -68,3 +71,8 @@ template "/etc/cron.daily/lists-backup" do
   group "root"
   mode "755"
 end
+
+prometheus_exporter "mailman" do
+  port 8083
+  user "list"
+end