From 5506d18d9d3621e5c9b3cc16b7d34e9b2b1fb4fe Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 14 Jun 2020 20:28:37 +0100 Subject: [PATCH] Use a dropin file to configure sysfsutils --- cookbooks/sysfs/recipes/default.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/sysfs/recipes/default.rb b/cookbooks/sysfs/recipes/default.rb index c34a16989..c58f19b16 100644 --- a/cookbooks/sysfs/recipes/default.rb +++ b/cookbooks/sysfs/recipes/default.rb @@ -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" -- 2.39.5