[Satellite 6] Purging Puppet reports stored on a Satellite 6.x server
Environment
- Red Hat Satellite 6.x
Issue
The /opt/puppetlabs/server/data/puppetserver/reports/ directory has grown rapidly on our Satellite server in the last few weeks, and is eating up a lot of disk space. How to cleanly purge Puppet reports stored under /opt/puppetlabs/server/data/puppetserver/reports/ on our Satellite server?
Resolution
To cleanly purge Puppet reports stored under /opt/puppetlabs/server/data/puppetserver/reports/ on the Satellite server, the following command can be used:
# find /opt/puppetlabs/server/data/puppetserver/reports/ -mmin +90 -type f -print0 | xargs -0 -r rm > /dev/null 2>&1
Based on your needs, you may want to change the time period.
For more KB articles/solutions related to Red Hat Satellite 6.x Puppet Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Puppet Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.