Working backwards from

create_resources() iscalled to create logrotate::rule resources from a Hash 
called $rules - 

$rules is inherited from the entry Class[logrotate] 

There's a typo in hour Hiera key, it should be:


With an "s".

On Wednesday, 9 August 2017 02:39:13 UTC+1, Jagga Soorma wrote:
> Hi Guys, 
> I am trying to use this logrotate puppet module from the forge 
> ( and seems like it updates 
> my logrotate.conf file without any issues.  However, I am now trying 
> to add a new logrotate.d rule using hiera and it does not do anything 
> and I was wondering if there is something I am missing.  Here is what 
> it looking like in my yaml file: 
> -- 
> classes: 
>   - logrotate 
> # logrotate 
> logrotate::rule: 
>   'messages': 
>     path: '/var/log/messages' 
>     rotate: 5 
>     rotate_every: 'week' 
>     create: true 
>     create_mode: '0644' 
>     missingok: true 
>     sharedscripts: true 
>     postrotate: '/bin/kill -HUP `cat /var/run/ 2> 
> /dev/null` 2> /dev/null || true' 
> -- 
> However puppet agent -t --noop and debug don't see it making any 
> changes to logrotate.d.  Does anyone else on this list have experience 
> with this specific module?  Just wondering what I am missing here. 
> Thanks in advance for any help with this. 

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit
For more options, visit

Reply via email to