]> git.openstreetmap.org Git - chef.git/commitdiff
Use a dropin file to configure sysfsutils
authorTom Hughes <tom@compton.nu>
Sun, 14 Jun 2020 19:28:37 +0000 (20:28 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 14 Jun 2020 19:32:00 +0000 (20:32 +0100)
cookbooks/sysfs/recipes/default.rb

index c34a16989baafb79d769a6d5f92e708ab75b6a98..c58f19b164d9bbceaf5e8c2a69eca35b5ddb78b9 100644 (file)
@@ -30,7 +30,11 @@ else
     supports :status => false, :restart => true, :reload => false
   end
 
-  template "/etc/sysfs.conf" do
+  file "/etc/sysfs.conf" do
+    action :delete
+  end
+
+  template "/etc/sysfs.d/99-chef.conf" do
     source "sysfs.conf.erb"
     owner "root"
     group "root"