From 0d1cf0adf976a7ec2dbb1c48df552e52a96cac38 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 8 Jan 2016 22:41:42 +0000 Subject: [PATCH] Use systemd to manage munin-node on Ubuntu 15.10 --- cookbooks/munin/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index fb1225c2f..fc457acdd 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -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] -- 2.39.5