apache_site "www.openstreetmap.org" do
template "apache.frontend.erb"
- variables :secret_key_base => web_passwords["secret_key_base"]
+ variables :status => node[:web][:status],
+ :secret_key_base => web_passwords["secret_key_base"]
end
template "/etc/logrotate.d/apache2" do
group "root"
mode 0o644
end
+
+service "rails-jobs" do
+ action [:enable, :start]
+ supports :restart => true
+ subscribes :restart, "rails_port[www.openstreetmap.org]"
+ subscribes :restart, "systemd_service[rails-jobs]"
+end