Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Cleaning the clientbucket via tidy broken in Puppet 4?

$
0
0
I used to be able to clean the clientbucket (and the reports directory) in Puppet 3 using tidy, similar to the following: tidy { 'Clean clientbucket': path => $cbucketdir, age => $cbuckettidy, recurse => true, rmdirs => true, backup => false, type => 'ctime', } Since I've moved to Puppet 4, this no longer seems to work. I get errors such as: # puppet agent -t Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for server01.example.com Notice: /Stage[main]/Puppetconf/Tidy[Clean clientbucket]: Tidying 195 files Error: Failed to apply catalog: Could not find dependency File[/opt/puppetlabs/puppet/cache/clientbucket/0/9/7] for File[/opt/puppetlabs/puppet/cache/clientbucket/0/9] # Not sure what's up here. I can get the run to work if I delete the contents of the clientbucket directory and re-run puppet agent -t. There seems to have been a behavior change between 3 and 4 where now the tidy stuff runs earlier in the process, which may be mucking up the run, but I'm not really sure. In short, what's the best method in Puppet 4 for cleaning up the reports and clientbucket directories? Thanks for any assistance!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>