puppetlabs/puppetlabs-stdlib — pull request #30 by frimik (2012-01-19 02:25:57+00:00)
Title: avoid double loading of facts.

this does what I've done for all my modules containing fact plugins, move all fact plugin files to a subdirectory of the same name as the puppet module.

atleast on 2.6.x a puppet agent -vt run gives the following:

before:
info: Retrieving plugin
info: Loading facts in facter_dot_d
info: Loading facts in root_home
info: Loading facts in facter_dot_d
info: Loading facts in root_home

on every run ^.

after:
info: Loading downloaded plugin /var/lib/puppet/lib/facter/stdlib/root_home.rb
info: Loading downloaded plugin /var/lib/puppet/lib/facter/stdlib/facter_dot_d.rb

once on first run ^.