]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mailman/recipes/default.rb
Reduce connection timeout for outgoing SMTP connections
[chef.git] / cookbooks / mailman / recipes / default.rb
index 1759bf50bacc3d3e86050ad02ba6955dfb43e6b3..d88b18885d93c591bbd82cd4a5b5f1bad7260594 100644 (file)
 require "securerandom"
 
 include_recipe "apache"
 require "securerandom"
 
 include_recipe "apache"
+include_recipe "prometheus"
 
 
-package "mailman"
-
-node.rm_normal(:mailman, :subscribe_form_secret)
+package %w[
+  locales-all
+  mailman
+]
 
 subscribe_form_secret = persistent_token("mailman", "subscribe_form_secret")
 
 
 subscribe_form_secret = persistent_token("mailman", "subscribe_form_secret")
 
@@ -68,3 +70,8 @@ template "/etc/cron.daily/lists-backup" do
   group "root"
   mode "755"
 end
   group "root"
   mode "755"
 end
+
+prometheus_exporter "mailman" do
+  port 8083
+  user "list"
+end