Since the release of 4.0.2, the default recipe sets ownership on the "conf.d" directory to "node["sensu"]["user"], then the client provider sets the ownership to "node["sensu"]["admin_user"]".
Expected Behavior
Systems using the default recipe and client provider should not change ownership on conf.d directory twice on every chef-client run. Both conf.d directory and client.json files should be owned by node["sensu"]["user"].
Since the release of 4.0.2, the default recipe sets ownership on the "conf.d" directory to "node["sensu"]["user"], then the client provider sets the ownership to "node["sensu"]["admin_user"]".
Expected Behavior
Systems using the default recipe and client provider should not change ownership on conf.d directory twice on every chef-client run. Both conf.d directory and client.json files should be owned by node["sensu"]["user"].
Current Behavior
Possible Solution
Update client provider to explicitly set owner
Steps to Reproduce (for bugs)
Create a wrapper cookbook Include sensu::default define a sensu_client chef-client run
Context
Every chef-client run updates ownership on this directory twice. The client.json file is owned by admin_user instead of user.
Your Environment