X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a86724a8db309dcdafff46b762171af67b1bb05e..56fcbc5d4f195f3973c08a2155037ec9103c1c01:/cookbooks/mailman/recipes/default.rb diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index bd88b9d92..1759bf50b 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -23,13 +23,16 @@ include_recipe "apache" package "mailman" -node.normal_unless[:mailman][:subscribe_form_secret] = SecureRandom.base64(48) +node.rm_normal(:mailman, :subscribe_form_secret) + +subscribe_form_secret = persistent_token("mailman", "subscribe_form_secret") template "/etc/mailman/mm_cfg.py" do source "mm_cfg.py.erb" user "root" group "root" mode "644" + variables :subscribe_form_secret => subscribe_form_secret notifies :restart, "service[mailman]" end