Puppet :: filebucket and cleaning

I am trying to do cleanup -> cleanup on a small number of very large files. The files exist in a different section than filebucket (and its section is very small). I would like to avoid resizing the partition if at all possible. Is there a way to skip zipping a file archive when cleaning files / directories? (Don't worry - if the result isn't what I expect, I have options to restore the machine to a previous state, since this is a virtual machine.)

+3


source to share


1 answer


To save the file in filebucket before deleting, set the parameter backup

to false

.

file {
    '/opt/data/huge-file1':
        ensure => absent,
        backup => false,
}

      



As an aside, I assume you are using ensure => directory

with purge => true

because it is purge

not a valid value ensure

.

+3


source







All Articles