Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Add puppetserver prune subcommand #2873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcharaoui
Copy link
Contributor

This adds a puppetserver subcommand to help garbage-collect old reports.

The default TTL is the same as the one used for PuppetDB (14d), where this garbage collection is done automatically.

@jcharaoui jcharaoui requested review from a team as code owners August 29, 2024 16:54
@jcharaoui
Copy link
Contributor Author

Related to: puppetlabs/puppet#9461

@jcharaoui jcharaoui changed the title (maint) Add prune-reports subcommand (maint) Add puppetserver prune subcommand Aug 30, 2024
@jcharaoui
Copy link
Contributor Author

I would happily write some documentation for this, however I can't seem to find where to push changes.

The file at documentation/README.md refers to https://github.com/puppetlabs/osp-docs but that project doesn't exist.

@jcharaoui
Copy link
Contributor Author

Accompanying documentation bits for https://www.puppet.com/docs/puppet/8/server/subcommands :

prune

Deletes old files in reportdir or bucketdir. By default it deletes all files older than 14 days.

The first argument must be reportdir or bucketdir, and the second (optional) can be an age value.

Example:

puppetserver prune reportdir

Example:

puppetserver prune bucketdir 30d

This adds a puppetserver subcommand to help garbage-collect old reports.

The default TTL is the same as the one used for PuppetDB (14d), where
this garbage collection is done automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant