]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mailman/recipes/default.rb
Remove remaining uses of "normal" attributes
[chef.git] / cookbooks / mailman / recipes / default.rb
index bd88b9d92e2232e225d94d90386009d58bf9c82f..1759bf50bacc3d3e86050ad02ba6955dfb43e6b3 100644 (file)
@@ -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