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

path does not support glob patterns #189

Open
andrekeller opened this issue Dec 1, 2021 · 0 comments
Open

path does not support glob patterns #189

andrekeller opened this issue Dec 1, 2021 · 0 comments

Comments

@andrekeller
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.25.1
  • Ruby: bundled
  • Distribution: Ubuntu 20.04
  • Module version: 6.0.0

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

Define a log rotate rule with paths that use glob patterns, i.e.

logrotate::rule {'test':
   path => '/var/log/basedir/*/*/*.log',
   ...
}

What are you seeing

Logrotate::Rule[test]: parameter 'path' expects a Logrotate::Path = Variant[Stdlib::Unixpath = Pattern[/\A\/([^
\/\0]+\/*)*\z/], Array[Stdlib::Unixpath = Pattern[/\A\/([^
\/\0]+\/*)*\z/]]] value, got String

What behaviour did you expect instead

/etc/logrotete.d/test file containing:

/var/log/basedir/*/*/*.log {
   ...
}
andrekeller added a commit to vshn/puppet-logrotate that referenced this issue Dec 1, 2021
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