]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/frontend.rb
Set SECRET_KEY_BASE when delivering messages from email
[chef.git] / cookbooks / web / recipes / frontend.rb
index 63dabd9c0fbe34bd7c2cac3c857d9fcdb8e569cb..f27b029c93fa8df76ec5278656ca899c982a5073 100644 (file)
@@ -98,3 +98,11 @@ else
     subscribes :restart, "systemd_service[rails-jobs@]"
   end
 end
+
+template "/usr/local/bin/deliver-message" do
+  source "deliver-message.erb"
+  owner "rails"
+  group "rails"
+  mode "0700"
+  variables :secret_key_base => web_passwords["secret_key_base"]
+end