Re: [Puppet Users] Puppet variable with a custom fact

31 views
Skip to first unread message

Wil Cooley

unread,
Nov 20, 2014, 5:22:29 PM11/20/14
to puppet-users group


On Nov 17, 2014 3:38 AM, "Antoine Cotten" <tonio....@gmail.com> wrote:
>
> Hi Puppet users,
>
> Is there any convenient way to access a variable defined in a Puppet class from within a custom fact?
>

Not directly; the ordering is wrong in your mental model. You could write out the variable as an external fact on the managed node and then refer to it as a fact in the next agent run.

(Aside: Does anyone have a link to a diagram of the dance the master and agent do? I've been meaning to try to make one on websequencediagrams.com but not gotten around to it.)

jcbollinger

unread,
Nov 21, 2014, 2:01:17 PM11/21/14
to puppet...@googlegroups.com


On Thursday, November 20, 2014 11:22:29 AM UTC-6, Wil Cooley wrote:

(Aside: Does anyone have a link to a diagram of the dance the master and agent do? I've been meaning to try to make one on websequencediagrams.com but not gotten around to it.)


There is a diagram and accompanying descriptive text that looks pretty comprehensive here: https://docs.puppetlabs.com/puppet/3/reference/subsystem_agent_master_comm.html.


John

Eric Sorenson

unread,
Nov 21, 2014, 8:57:22 PM11/21/14
to puppet...@googlegroups.com

On Thursday, November 20, 2014 9:22:29 AM UTC-8, Wil Cooley wrote:

(Aside: Does anyone have a link to a diagram of the dance the master and agent do? I've been meaning to try to make one on websequencediagrams.com but not gotten around to it.)

I made one for the SSL bootstrapping sequence here: http://ask.puppetlabs.com/question/25/how-can-i-troubleshoot-problems-with-puppets-ssl-layer/

And one for the agent/master communication which I haven't found a good place for on ask: https://dl.dropboxusercontent.com/u/18472980/puppet-agent-timeseq.png 
Reply all
Reply to author
Forward
0 new messages