Puppet report retention

Not sure if this is a Foreman or Puppet question, but how can I set the
retention period for puppet reports? I only need to keep 60 days worth.

The reports are expired by cronjob, so alter those (usually in
/etc/cron.d/foreman). You can also distinguish eventful vs uneventful
reports - the default is 7 days for uneventful, 30 days for eventful.

Greg

··· On 30 January 2014 15:29, Jason Ashby wrote:

Not sure if this is a Foreman or Puppet question, but how can I set the
retention period for puppet reports? I only need to keep 60 days worth.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Greg. I did not install Foreman via a system package or puppet, so
I guess the cron jobs weren't installed. I found this with some googling:

bundle exec rake reports:expire days=90 RAILS_ENV="production"

that is sufficient for me.

··· On Thursday, January 30, 2014 10:55:39 AM UTC-5, Greg Sutcliffe wrote: > > The reports are expired by cronjob, so alter those (usually in > /etc/cron.d/foreman). You can also distinguish eventful vs uneventful > reports - the default is 7 days for uneventful, 30 days for eventful. > > Greg > > > On 30 January 2014 15:29, Jason Ashby <jas...@gmail.com >wrote: > >> Not sure if this is a Foreman or Puppet question, but how can I set the >> retention period for puppet reports? I only need to keep 60 days worth. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> > >

You may want to grab foreman-rake from the packaging and reduce that
to "foreman-rake reports:expire days=90" for readability win :slight_smile:

Greg

··· On 6 February 2014 13:04, Jason Ashby wrote: > bundle exec rake reports:expire days=90 RAILS_ENV="production"