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

Andrew Pollock apollock at debian.org
Wed Feb 24 22:45:38 UTC 2010


On Wed, Feb 24, 2010 at 05:32:31PM -0500, Mathias Gug wrote:
> On Wed, Feb 24, 2010 at 01:35:35PM -0800, Russ Allbery wrote:
> > 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.
> > 
> 
> Considering that puppet templates are stored under /etc/puppet/templates/
> purging the puppet-common package would *not* remove the local templates. Upon
> package re-installation the old templates files would still be around -
> defeating the intent of purging a package in order to start a new configuration
> from scratch.
> 

Do the templates need to be in /etc/templates? I think that was a change in
behaviour between the Ubuntu package and the Debian package.

regards

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20100225/da15647a/attachment.pgp>


More information about the Pkg-puppet-devel mailing list