Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to define correctly logrotate_args without ::logrotate class? #152

Open
svenvogel opened this issue Apr 9, 2019 · 0 comments
Open

Comments

@svenvogel
Copy link

svenvogel commented Apr 9, 2019

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.

@svenvogel svenvogel changed the title how to define correctly logrotate_args? how to define correctly logrotate_args without ::logrotate class? Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant