-if node[:lsb][:release].to_f <= 12.10
- service "module-init-tools" do
- provider Chef::Provider::Service::Upstart
- action :nothing
- subscribes :start, "template[/etc/modules]"
- end
-else
- service "kmod" do
- 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