Comment 1 for bug 1076286

Revision history for this message
Stig Sandbeck Mathisen (ssm) wrote : Re: [Bug 1076286] [NEW] Puppet agent not correcly configuring facts synch'd from master

Hello, and thanks for reporting an issue with puppet.

Andrea Biancini <email address hidden> writes:

> To reproduce the error, for example, I could define in the master a site.pp as follow:
> node puppetclient {
> include modulewithfact
> }

You do not need a manifest in order to check if facts propagate from
master to nodes. Factsync takes place before the manifest is compiled.

1: Set pluginsync=true in /etc/puppet/puppet.conf on the node

2: Run "puppet agent --test --noop" on the node

3: If you have authenticated the node to the master, you should see the
   fact being transmitted.

4: Verify by:

   run "facter --puppet" on the node. Do you see your fact?

   check /var/lib/puppet/yaml/facts/<node>.yaml on the master, do you
   see the new fact there?

What is your puppet version, your facter version, and your ubuntu
version?

> To avoid this situation I simply added to the /etc/default/puppet file
> the following line:
> FACTERLIB=/var/lib/puppet/lib/facter
> which permits to include in the facterlib the folder where facts from
> the server are synchronized by the agent.

I don't think this is the correct fix. This will not have any effect if
you run "puppet agent --test" on the command line.

--
Stig Sandbeck Mathisen