djoos-cookbooks / newrelic

Development repository for the newrelic cookbook
https://supermarket.chef.io/cookbooks/newrelic
MIT License
143 stars 247 forks source link

[newrelic_agent_java] updates group and perms of the logfile_path recursively. #357

Open pszmytka-viacom opened 5 years ago

pszmytka-viacom commented 5 years ago

When logfile_path is set to '/var/log/newrelic/newrelic-java' e.g. newrelic_agent_java new_resource.name do license 'abc' app_name 'xyz' logfile_path '/var/log/newrelic/newrelic-java' end

It will change the group and mode of /var /var/log and /var/log/newrelic directories. It would be great to have this functionality optional. This is implemented here: https://github.com/djoos-cookbooks/newrelic/blob/master/providers/agent_java.rb#L89