Ask Your Question

Does filebucket need periodic maintenance / cleaning ?

asked 2012-12-20 21:46:50 -0600

Does the filebucket - especially a server filebucket on a puppet master - need to be periodically cleaned out of older versions of files ?

It seems to me that it would snowball over time and clog up a partition.

Are there any existing utilities for this ?

A possible solution that comes to mind would be to create a "tidy" resource on the filebucket to remove files after a given time period (90 days ?)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-20 23:01:15 -0600

llowder gravatar image

Unless something has changed since this mailing list discussion, no, there is not a way to do this sort of maintenance from within puppet.

However, according to this ServerFault question, you can use a script such as

find /var/lib/puppet/clientbucket/ -type f -mtime +45 -atime +45 -print0 | xargs -0 rm

to prune old file bucket items that have not been accessed in the last 45 days.

Looking in redmine, it does not appear that the person in the mailing list thread ever filed a feature request, so that would probably be a good thing to do.

edit flag offensive delete link more


tmpwatch is an alternative that is simpler btw. Might want to ponder.

ken gravatar imageken ( 2013-02-06 10:19:10 -0600 )edit

I've filed an issue about this, (#19484) on the bug tracker.

Daenney gravatar imageDaenney ( 2013-02-27 04:16:21 -0600 )edit
LinuxDan gravatar imageLinuxDan ( 2014-04-19 19:53:40 -0600 )edit

FYI that ticket contains a nice workaround using the "tidy" resource that should help keep that directory small.

DafyddJamesFT gravatar imageDafyddJamesFT ( 2016-04-27 06:19:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-12-20 21:46:50 -0600

Seen: 10,602 times

Last updated: Dec 20 '12