]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/recipes/default.rb
Remove xapi role.
[chef.git] / cookbooks / munin / recipes / default.rb
index fb1225c2f25a056e7572b5e936e0f91de60ae8fd..fc457acdd5ff27f21ccb669134c0b1f89a218eef 100644 (file)
@@ -22,7 +22,9 @@ include_recipe "networking"
 package "munin-node"
 
 service "munin-node" 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]