]> git.openstreetmap.org Git - chef.git/commitdiff
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 a8af1dece79ad0fc3be8232f7a4aefbf24d277d6..33b703421f3186529f0431d84de1f38368b93d7d 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]