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.