X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/abd5ecd0198dd98d37c8cc13e457ce996b5b3d88..cc6b107e2e4aa6d7b882d4fb626a1a80a41104c8:/cookbooks/munin/recipes/default.rb?ds=sidebyside 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]