Issue #16439 has been updated by Jan Vansteenkiste.
**Eix** serves as a tool that sits between portage and puppet. Portage being
the gentoo package repository thingie.
Since *portage* itself is not known to be the fastest package manager for
retrieving information, when eix is available, it is used. Eix maintains his
own metadata/cache. To know about what packages are available, you have to
update the metadata/cache for eix to know what packages are available and which
are installed.
There is a check in place that checks whether or not the eix cache is in sync
with the portage tree. When running as a user, the eix provider still tries to
update its cache, which fails.
I would prefer if the provider can not update its cache, he warns about it but
continues using the currently (outdated?) cache.
One could object because you always want to work on the latest cache, but you
can not install any packages running as an user anyhow, but it is useful for
running facter as an unprivileged user.
To test (on a gentoo machine):
Save as `augeasversion.rb`
require 'puppet'
pkg = Puppet::Type.type(:package).new(:name => 'augeas')
Facter.add("augeasversion") do
setcode do
pkg.retrieve[pkg.property(:ensure)]
end
end
test using
FACTERLIB=. facter
as an unprivileged user.
----------------------------------------
Bug #16439: eix-update is executed when running as unprivileged user
https://projects.puppetlabs.com/issues/16439#change-71555
Author: Jan Vansteenkiste
Status: Needs More Information
Priority: Normal
Assignee: Jan Vansteenkiste
Category:
Target version:
Affected Puppet version: 2.7.19
Keywords: gentoo
Branch:
When eix is installed and running as a user, update-eix is executed which fails
due to no permissions to write to the cache file.
We should check the filepermissions on the cachefile and skip updating the
cache when we do not have write permissions.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.