]> git.openstreetmap.org Git - chef.git/commitdiff
Update chef server recipe for Ubuntu 16.04
authorTom Hughes <tom@compton.nu>
Mon, 30 May 2016 08:51:10 +0000 (09:51 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 30 May 2016 08:51:27 +0000 (09:51 +0100)
cookbooks/chef/recipes/server.rb

index 31e7d13584fbcb8c2fdf14a10ed57c74372ec26d..747014f9b9da65b9af8036877d0ce2cfb0be21f8 100644 (file)
@@ -65,10 +65,14 @@ execute "chef-server-reconfigure" do
   group "root"
 end
 
   group "root"
 end
 
-service "private-chef-runsvdir" do
-  provider Chef::Provider::Service::Upstart
+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]
   action [:enable, :start]
-  supports :status => true, :restart => true, :reload => true
 end
 
 apache_module "alias"
 end
 
 apache_module "alias"