[Pkg-puppet-devel] Bug#571130: Bug#571130: puppet-common: Package purge should remove all puppet directories

Russ Allbery rra at debian.org
Wed Feb 24 21:35:35 UTC 2010


Mathias Gug <mathiaz at ubuntu.com> writes:

> Agreed - that's the point of view of never ever delete a file created by
> the user. OTOH by purging a package one may want to start a new
> configuration from scratch in a well-known state (which means that there
> aren't any files left over from a previous package installation).

Right, which is why you remove all files owned by the package.  But rm -rf
of the entire directory goes beyond that.  I think purge should rm -f each
file in /etc/puppet that is installed by the package, and then remove the
/etc/puppet directory if it's empty.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the Pkg-puppet-devel mailing list