[chef] chef-client cookbook and log rotation


Chronological Thread 
  • From: Kirill Timofeev < >
  • To: " " < >
  • Subject: [chef] chef-client cookbook and log rotation
  • Date: Tue, 18 Dec 2012 15:57:41 -0800

Folks,

I just joined list so I apologise if this question was already discussed in the past. I tried to look for answer on the internet but found nothing appropriate.

I cloned chef-client cookbook from https://github.com/opscode-cookbooks/chef-client. It looks like this cookbook doesn't setup logrotate for chef-client. May I ask you if this was done intentionally or this is a bug? If this was done intentionally should I just use logrotate cookbook (https://github.com/opscode-cookbooks/logrotate) and add logrotate recipe to chef-client with following content?

logrotate_app "chef-client" do
cookbook "logrotate"
path "/var/log/chef/client.log"
frequency "daily"
rotate 30
create "644 root adm"
end

From my point of view it is very reasonable to have logrotate enabled out of the box for chef-client.

Thanks,
Kirill.





Archive powered by MHonArc 2.6.16.

§