From 145e4d85f1544265eb7ad91c8e9ab31b396ddfbc Mon Sep 17 00:00:00 2001 From: jtimberman Date: Tue, 11 Aug 2015 09:58:07 -0600 Subject: [PATCH] Fixes #26, remove the ownership and permissions Setting the owner and permissions on the config file's directory conflicts with product ctl commands that also manage those directories. For example some have the ownership set to opscode instead of root, meaning this is updated every time and causes a reconfigure to run again, extending the length of time it takes to converge a node. --- libraries/ingredient_config_provider.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libraries/ingredient_config_provider.rb b/libraries/ingredient_config_provider.rb index a29a242..42dc0c8 100644 --- a/libraries/ingredient_config_provider.rb +++ b/libraries/ingredient_config_provider.rb @@ -32,16 +32,11 @@ def whyrun_supported? return if target_config.nil? directory ::File.dirname(target_config) do - owner 'root' - group 'root' - mode '0755' recursive true action :create end file target_config do - owner 'root' - group 'root' action :create sensitive new_resource.sensitive content get_config(new_resource.product_name)