X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/61303cca9c5b48c8410cde9c1a4b6e4d38dae76d..49b792661def4b982c21c093932d21d9e8ed9fdd:/cookbooks/mailman/recipes/default.rb diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 171979208..8588c5bea 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -17,10 +17,22 @@ # 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 0644 + notifies :restart, "service[mailman]" +end + service "mailman" do action [:enable, :start] supports :restart => true, :reload => true