voxpupuli/puppet-logrotate

how to define correctly logrotate_args without ::logrotate class?

Opened this issue · 0 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.10
  • Ruby:
  • Distribution: CentOS
  • Module version: 3.4.0

How to reproduce (e.g Puppet code you use)

class { '::logrotate': ensure => 'latest', logrotate_args => ['-s /var/lib/logrotate/logrotate.status'], config => { dateext => true, compress => true, rotate => 4, rotate_every => 'week', ifempty => true, } }

logrotate::conf { '/etc/logrotate.conf': dateext => true, compress => true, rotate => 4, rotate_every => 'week', ifempty => true, }

What are you seeing

how the documentation already said i can only use ::logrotate class or logrotate::conf
i thought i can set "logrotate_args" in logrotate::conf too but it seems its not possible.

i want to use logrotate::conf and ::rules but set too the logrotate_args.

What behaviour did you expect instead

how i can do that?

Output log

if i set logrotate_args => ['-s /var/lib/logrotate/logrotate.status'], in logrotate::conf the parameter is not existing.