X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3922c25396b0aa995547e6caa3dc6f8b7e993f95..3da3f2d77d452db7a79df46a82af096e3b7f37dc:/cookbooks/mailman/recipes/default.rb diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 94de38295..ac0ba6c8f 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -17,12 +17,24 @@ # limitations under the License. # +require "securerandom" + include_recipe "apache::ssl" package "mailman" +node.set_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 ] + action [:enable, :start] supports :restart => true, :reload => true end @@ -37,5 +49,5 @@ template "/etc/cron.daily/lists-backup" do source "backup.cron.erb" owner "root" group "root" - mode 0755 + mode 0o755 end