]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/backend.rb
allow sysops to modify interwiki table
[chef.git] / cookbooks / web / recipes / backend.rb
index 69fb018d87760ed7df96e6f0a62f1e42ad985af1..e1995500cd2859d42bab41be5ee4b2c8e9785420 100644 (file)
@@ -41,3 +41,12 @@ apache_site "www.openstreetmap.org" do
 end
 
 node.normal[:memcached][:ip_address] = node.internal_ipaddress
+
+if node[:web][:primary_cluster]
+  service "rails-jobs@traces" do
+    action [:enable, :start]
+    supports :restart => true
+    subscribes :restart, "rails_port[www.openstreetmap.org]"
+    subscribes :restart, "systemd_service[rails-jobs]"
+  end
+end