Jaymon / chef-cookbooks

Various Chef cookbooks
MIT License
2 stars 0 forks source link

logrotate improvements #26

Open Jaymon opened 4 years ago

Jaymon commented 4 years ago

Right now logrotate uses either :merge or :set and I think these should be combined to just basically act like merge. The idea being if you want to replace existing configuration you should just set the values to empty or nil.

Also, right now the logrotate recipe writes to a temp file, but it would be better to just add a to_s method to the supporting library class and then use Chef's file resource instead.