]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mailman/recipes/default.rb
Update carto stylesheet to v2.45.0
[chef.git] / cookbooks / mailman / recipes / default.rb
index 171979208d0337bab103236392959cb05473f8d5..7dab375eb56feac05eb98b7e0cf8434c92cf7b39 100644 (file)
 # limitations under the License.
 #
 
+require "securerandom"
+
 include_recipe "apache::ssl"
 
 package "mailman"
 
+node.normal_unless[:mailman][:subscribe_form_secret] = SecureRandom.base64(48)
+
+template "/etc/mailman/mm_cfg.py" do
+  source "mm_cfg.py.erb"
+  user "root"
+  group "root"
+  mode 0o644
+  notifies :restart, "service[mailman]"
+end
+
 service "mailman" do
   action [:enable, :start]
   supports :restart => true, :reload => true
@@ -37,5 +49,5 @@ template "/etc/cron.daily/lists-backup" do
   source "backup.cron.erb"
   owner "root"
   group "root"
-  mode 0755
+  mode 0o755
 end