-
Notifications
You must be signed in to change notification settings - Fork 237
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
rotate must be an integer #46
Comments
Just for clarity here - are you using the future parser? Getting the same thing right after changing over here. Puppet 3.7.3 |
I am seeing this specifically with the entries in manifests/defaults/debian.pp, if I change the Logrotate::rule definition to use rotate => '1' instead of rotate => 1, it works fine. |
+1 for this, I had to manually fix this. Please get this updated in forge, it would be appreciated. Future parser stops being future Q1 2015 (aka soon). |
Hey, any progress here? could you bump the version to release the fix? |
The current implementation of the logrotate::rule is expecting an integer as a string. See rodjek/puppet-logrotate#46
Just ran into this. What is stopping this from progressing to a patch release? |
(Looking at it, wouldn't a better fix than those proposed be to just do [0] - https://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#case-matching |
Yes, this was with the future parser. |
What's stopping this from being released into the forge? I've just run into the same problem when I started using this module today (1.1.1 from the forge). |
Can I somehow avoid this error:
without using the "master". The wtmp 'Rule' is inside the logrotate module, so I do not know how to influence/overwrite it. |
Well, the maintainer really should fix their broken module. Meanwhile, one hacky workaround: Put the following in a file, say
(SPOILER ALERT: this is just #62) Then:
Yes, I know this is horrific. It also makes the problem go away for a bit. |
I'm having this too. |
I just asked Tim per EMail, if he still (wants to) maintain this repo |
Just ran into this as well. Any update on making a release? |
I also have this problem with v1.1.1 using the above patch works, but is not suitable for a production system. |
bump |
go with this fork, approved by puppet folks https://forge.puppet.com/yo61/logrotate |
The parsing of
rotate
appears to differ from the official documentation. In the examples,rotate
is presented as a RubyFixnum
. In the code, the match criteria appears to only work for numeric characters from a RubyString
.This is working for me:
This block returns an error:
Am I misunderstanding something? Is the documentation wrong? Is the parser incorrect?
Thanks!
The text was updated successfully, but these errors were encountered: