I know its an old post but I just came across this issue...saved me time.....many thanks!
Also, why this module hasnt been updated?!?!? On Wednesday, 9 August 2017 09:05:47 UTC+1, Luke Bigum wrote: > > Working backwards from https://github.com/voxpupuli/puppet-logrotate... > > create_resources() iscalled to create logrotate::rule resources from a > Hash called $rules - > https://github.com/voxpupuli/puppet-logrotate/blob/master/manifests/rules.pp > - > > $rules is inherited from the entry Class[logrotate] - > https://github.com/voxpupuli/puppet-logrotate/blob/master/manifests/init.pp#L7 > > There's a typo in hour Hiera key, it should be: > > logrotate::rules: > > 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 >> (https://forge.puppet.com/puppet/logrotate) 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/syslogd.pid 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/81c19154-6256-4fa8-8a0e-0c8b4fba4444%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
