| Puppet Version: 5.4.0 ** Hi, I'd be happy if the tidy resource would have an additional parameter (similar to matches) which excludes files from beeing deleted. Reason: I'm using puppet to install several files to machines, where every now and then a new version needs to be installed, e.g. /somedir/datafile-20180503.txt After some time, there's lots of these files occupying and wasting disk space, although only the latest is actually used. Therefore, I need to install the latest file (like /somedir/datafile-20180503.txt ) and remove all older /somedir/datafile-*.txt files. Currently tidy does not allow that, since limits are possible only through age. Would be great if I could use something like {{tidy { '/somedir': }} matches => [ 'datafile-*.txt' ], keep => [ 'datafile-20180503.txt' ]; } or maybe a given count of newest files , e.g. keep => 1 regards Describe your issue in as much detail as possible… Describe steps to reproduce… Desired Behavior: Actual Behavior: Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue. Examples: Run puppet agent with --test --trace --debug Relevant sections of /var/log/puppetlabs/puppetserver/puppetserver.log or any applicable logs from the same directory. For more detailed information turn up the server logs by upping the log level in the server's logback.xml Relevant sections of configurations files (puppet.conf, hiera.conf, Server's conf.d, defaults/sysconfig) For memory issues with server heap dumps are also helpful. |