voxpupuli / puppet-augeas

Helper for using augeas with puppet
Apache License 2.0
43 stars 82 forks source link

Module purges lens files installed by other packages (libvirt-bin in this case) #32

Closed antaflos closed 10 years ago

antaflos commented 10 years ago

On Ubuntu 12.04 the package libvirt-bin installs the libvirt-related Augeas lenses to /usr/share/augeas/lenses (and the tests to /usr/share/augeas/lenses/tests). The puppet-augeas module, however, purges everything in that directory, including the lenses installed by the libvirt-bin package.

We can work around this by installing the libvirt lenses by means of augeas::lens from our own puppet-libvirt module, but I think overall it is not quite right to purge files properly and correctly installed by another, unrelated package.

Or is the libvirt package to blame here because it should have installed the lenses elsewhere?

raphink commented 10 years ago

Would the attached code do for you?

antaflos commented 10 years ago

Probably, though I have worked around that now by putting the Libvirt lenses into our puppet-libvirt module's lib/augeas/lenses directory. But I'll see if I can test this somewhere.