Hi all,
where save foreman the reports? In Postgresql or in a directory like Puppetserver it do ?
Thanks in advance
Regards
Neeloj
Hi all,
where save foreman the reports? In Postgresql or in a directory like Puppetserver it do ?
Thanks in advance
Regards
Neeloj
It’s Postgresql, the SQL table called reports
thank you so much @Marek_Hulan , in Puppetserver I had a cronjob which weekly remove old reports, so I dont need that with foreman…
Just to add a bit more info:
The reports table gets cleaned up automatically thanks to the foreman-rake reports:expire
triggered by the cron, see /etc/cron.d/foreman
for the configuration. By default, we keep reports for a week but the cronjob config can be tweaked and custom number of days can be set. One would just change it to /usr/sbin/foreman-rake reports:expire days=14
very useful informations so I dont need my reports cronjob.
Just to let you know this will likely change in 3.2 release, it will be still stored in SQL but in a different (more efficient) way.