+ service "sysfsutils" do
+ action :enable
+ supports :status => false, :restart => true, :reload => false
+ end
+
+ template "/etc/sysfs.d/99-chef.conf" do
+ source "sysfs.conf.erb"
+ owner "root"
+ group "root"
+ mode 0o644
+ notifies :restart, "service[sysfsutils]"
+ end
+
+ node[:sysfs].each_value do |group|
+ group[:parameters].each do |key, value|
+ sysfs_file = "/sys/#{key}"