X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f999eaef5a6e203a0bbaa2076b0577c82839e4d6..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/mailman/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 4013058bc..8588c5bea 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -17,12 +17,24 @@ # limitations under the License. # -include_recipe "apache" +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 ] + action [:enable, :start] supports :restart => true, :reload => true end