From: Tom Hughes Date: Fri, 8 Jan 2016 22:49:47 +0000 (+0000) Subject: Use systemd to manage kmod on Ubuntu 15.10 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/52e464a8e1bd7572fb865d12f1617666db15b072?hp=94df602bb1bbe36de3008fdf9b94e6baee2f934b Use systemd to manage kmod on Ubuntu 15.10 --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 867f3a8aa..8ba21da8b 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -443,7 +443,11 @@ if node[:lsb][:release].to_f <= 12.10 end else service "kmod" do - provider Chef::Provider::Service::Upstart + if node[:lsb][:release].to_f >= 15.10 + provider Chef::Provider::Service::Systemd + else + provider Chef::Provider::Service::Upstart + end action :nothing subscribes :start, "template[/etc/modules]" end