]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/openssh/recipes/default.rb
Merge remote-tracking branch 'github/pull/51'
[chef.git] / 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]