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

micah anderson micah at riseup.net
Wed Feb 24 23:18:37 UTC 2010


On Tue, 23 Feb 2010 13:15:27 -0500, Mathias Gug <mathiaz at ubuntu.com> wrote:
> In Ubuntu we've applied the following patch:
>   * debian/puppet-common.postrm:
>     - On purge delete all puppet directories: /etc/puppet, /var/log/puppet and
>       /var/lib/puppet.
> 
> IIUC /var/lib/puppet isn't deleted when the puppet package was purged
> because it would break puppetmaster. Now that common files are shared
> with the puppet-common package, purging the puppet package shouldn't
> break puppetmaster anymore. 
> 
> Moreover log files should be removed when the package is purged.

Ok, this one scares me, only because it makes me worry that we would
remove someone's hard work that they've spent crafting recipes in
/etc/puppet. Purge should *only* remove the package files that the
admins have not touched, instead of rm -rf'ing the whole thing. Or at
least defaulting to *not* do it and a debconf question that requires
confirmation before nuking it (like in the mysql package's removal of
/var/lib/mysql which contains your database data).

The /var/log puppet directory clearly needs to go.

the /var/lib/puppet directory purge is also a little scary, I'm not sure
that this is the right thing to do either.  Remember, that directory
contains SSL certificates/keys, sometimes facter bits, and people have
used it for config-file snippet assembly. Just by looking at this
change, I cannot say for sure if it is the right thing to do, I think
we'd need to try it, and purge in a number of different scenarios to be
sure its ok, just to be safe.

micah
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20100224/c3561309/attachment.pgp>


More information about the Pkg-puppet-devel mailing list