sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

Directory/file ownership conflicts #571

Closed tmonk42 closed 6 years ago

tmonk42 commented 7 years ago

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