Hi Vince,

On Thu, Aug 13, 2015 at 10:21 AM, Vince Skahan <vinceska...@gmail.com>
wrote:

> Spun up a 2015.2 system and every time an agent runs we see "Error:
> Facter: error while resolving custom facts in
> /opt/puppetlabs/puppet/cache/lib/facter/portage.rb: cannot load such file
> -- facter/util/resolution".   Any ideas ?
>
> I saw one bug report at
> https://github.com/gentoo/puppet-portage/issues/136 saying facter needed
> to be updated and this was allegedly done in 2015.2, but perhaps not (???)
>

This was fixed in the puppet-portage module itself, so updating the module
to a fixed version or porting the fix to the fact file (simply delete the
require 'facter/util/resolution' line) should solve the problem with Facter
3.  This particular fix is also backwards compatible with 2.x, as 2.x also
required this file before resolving any custom facts.

If memory serves, I searched through the Forge for references in custom
facts depending on the Facter 2.x implementation's file structure and found
only this one.  Therefore I didn't end up adding the workaround to Facter
itself to support requiring parts of 2.x Facter beyond simply `require
'facter'` (which itself is also unnecessary, but was more frequently
done).  We could revisit fixing this in Facter itself (basically
manipulating the load path to fake the load of 'facter/util/resolution') if
it proves to be a more widespread problem affecting other modules.


>
> Vagrant box I'm testing on is centos-6.7 fully patched up.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/e23e8c46-3b97-4a7e-bb88-ccba4abc06a4%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/e23e8c46-3b97-4a7e-bb88-ccba4abc06a4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
--
Peter Huene
Software Engineer, Puppet Labs
Puppet Open Source Team
-------------------------------------------

PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACZQQfO%2B0tnOaFxR6W5L%3DZVaSeF2OdjutH%2B9w%3DPUi4xeJDjcDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to