+end
+
+systemd_service "chef-server" do
+ description "Chef server"
+ after "network.target"
+ exec_start "/opt/opscode/embedded/bin/runsvdir-start"
+end
+
+service "chef-server" do
+ action [:enable, :start]
+ subscribes :restart, "systemd_service[chef-server]"
+end
+
+apache_module "alias"
+apache_module "proxy_http"
+
+ssl_certificate "chef.openstreetmap.org" do
+ domains ["chef.openstreetmap.org", "chef.osm.org"]
+ notifies :reload, "service[apache2]"
+ notifies :run, "execute[chef-server-restart]"