-template "/etc/chef-server/chef-server.rb" do
- source "server.rb.erb"
- owner "root"
- group "root"
- mode 0644
- notifies :run, "execute[chef-server-reconfigure]"
+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]"