sous-chefs/logrotate

ERROR: undefined method `copytruncate' for Custom resource logrotate_app from cookbook logrotate

AjeetK opened this issue · 1 comments

I am trying to use copytruncate but getting the following error

ERROR: undefined method `copytruncate' for Custom resource logrotate_app from cookbook logrotate

Following is the recipe I am using:

include_recipe 'logrotate::default'
logrotate_app 'webengage' do
  path      ['/var/log/myapp/*',  '/home/xyz/logs/*']
  frequency 'daily'
  rotate    7
  copytruncate
  create    '644 root adm'
end

The copytruncate option is by default enabled, so don't need to mention it explicitly.