Robie, yes the problem is exactly the one you described.
The puppet daemon does not source /var/lib/puppet/lib/facter for facts and my proposed modification is a workaround to have it properly running.
Also the command "puppet agent --test" does not source the facts in /var/lib/puppet/lib/facter and this is not solved by the modification I proposed.
My proposal is a very quick fix to have the daemon properly running.
I thought that when running the puppet command from commandline the user could define FACTERLIB in his environment somehow.
Of course if you can find better solutions, they're very welcome.
Robie, yes the problem is exactly the one you described. puppet/ lib/facter for facts and my proposed modification is a workaround to have it properly running. puppet/ lib/facter and this is not solved by the modification I proposed.
The puppet daemon does not source /var/lib/
Also the command "puppet agent --test" does not source the facts in /var/lib/
My proposal is a very quick fix to have the daemon properly running.
I thought that when running the puppet command from commandline the user could define FACTERLIB in his environment somehow.
Of course if you can find better solutions, they're very welcome.