]> git.openstreetmap.org Git - chef.git/commitdiff
Use systemd to manage munin-node on Ubuntu 15.10
authorTom Hughes <tom@compton.nu>
Fri, 8 Jan 2016 22:41:42 +0000 (22:41 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 8 Jan 2016 22:41:42 +0000 (22:41 +0000)
cookbooks/munin/recipes/default.rb

index fb1225c2f25a056e7572b5e936e0f91de60ae8fd..fc457acdd5ff27f21ccb669134c0b1f89a218eef 100644 (file)
@@ -22,7 +22,9 @@ include_recipe "networking"
 package "munin-node"
 
 service "munin-node" do
 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]
     provider Chef::Provider::Service::Upstart
   end
   action [:enable, :start]