On Wednesday, January 8, 2014 12:52:16 PM UTC-6, Jose Luis Ledesma wrote:
>
> Puppet loads facts first of all, so custom facts deployed are not there 
> until next run.
>
>
>
No, that's incorrect.  Normally, Puppet synchronizes plugins first of all, 
including custom facts set up as native plugins (the traditional form of 
custom facts).  Only afterward does the agent evaluate facts, so the values 
of custom facts are then available during the same run in which they are 
synced.  This is documented and intended behavior.

There are other ways in which custom facts can be installed on the system, 
however -- notably for use with the "external facts" mechanism -- that 
proceed via normal Puppet resource management.  Facts such as those are not 
available until the run after they are installed.

Inasmuch as the facts in question are being installed in 
/var/lib/puppet/lib/facter, they must be (intended to be) of the first 
type.  As such, they should be set up on the master as described here: 
http://docs.puppetlabs.com/guides/plugins_in_modules.html .  If indeed they 
are, then they should be available on the same run in which they are synced.

It is entirely conceivable that Puppet's normal chain of events is not 
proceeding as intended when the client does not initially have the master's 
certificate (or a signed certificate of its own).  I do not recall previous 
reports of such an issue, however, and a quick search of the issue tracker 
didn't turn up anything, so if that's what's happening then it's probably a 
new issue.  What version of Puppet are you using?

You could try running the agent as 'puppet agent --test --debug 
--waitforcert 5' to get full debug output about what the agent is doing 
(--onetime and --no-daemonize are already implied by --test).  That might 
be illuminating.


John



-- 
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/d2c0d6dd-b4a4-42fe-affa-bfc178ddfae2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to