Puppetboard and postgresql - Reports take up space.

35 views
Skip to first unread message

puppetstan

unread,
Nov 16, 2023, 12:07:22 PM11/16/23
to Puppet Users
Hello,

I installed puppetboard and a postgresql database.

Reports take up space. On an old server I installed a script which contained this

#!/bin/bash
DBOARD_DIR=/usr/share/puppet-dashboard

cd ${DBOARD_DIR}
rake RAILS_ENV=production reports:prune upto=1 unit=mon
rake RAILS_ENV=production db:raw:optimize


do you think this is the right solution? is there another solution?

Regards

austin...@puppet.com

unread,
Nov 16, 2023, 2:54:02 PM11/16/23
to Puppet Users
That script looks to be related to the old puppet-dashboard, and I don't think it would work with Puppetboard. To my knowledge, Puppetboard does not store any reports and is only a frontend for displaying PuppetDB data. If you find the reports in your PuppetDB growing too large, you can lower the value of report-ttl in your PuppetDB configuration.

puppetstan

unread,
Nov 21, 2023, 10:27:44 AM11/21/23
to Puppet Users
Hello, 

Thank you for your answer I will apply that but I just saw that by default it is 14 days. So I think my problem lies elsewhere...

Regards
Reply all
Reply to author
Forward
0 new messages