Use systemd to manage sshd on Ubuntu 15.10
authorTom Hughes <tom@compton.nu>
Fri, 8 Jan 2016 22:48:05 +0000 (22:48 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 8 Jan 2016 22:48:05 +0000 (22:48 +0000)
cookbooks/openssh/recipes/default.rb

index a8af1de..33b7034 100644 (file)
@@ -24,7 +24,9 @@ package "openssh-client"
 package "openssh-server"
 
 service "ssh" do
-  if node[:lsb][:release].to_f >= 14.04
+  if node[:lsb][:release].to_f >= 15.10
+    provider Chef::Provider::Service::Systemd
+  elsif node[:lsb][:release].to_f >= 14.04
     provider Chef::Provider::Service::Upstart
   end
   action [:enable, :start]