----- jcbollinger <john.bollin...@stjude.org> wrote:
> On Tuesday, August 7, 2012 2:26:47 PM UTC-5, Ygor wrote:
> >
> > ----- jcbollinger wrote: 
> > > On Monday, August 6, 2012 10:48:25 AM UTC-5, Ygor wrote: 
> > > > 
> > > > I am putting together some system improvements based on using the 
> > > > stdlib::facter-dot-d and I have a few questions: 
> > > > 
> > > > Are facts always single “key => value” pairs or can you get a hash or 
> > > > array into a fact ? 
> > > > 
> > > > I suspect arrayed/hashed facts are not possible in the current 
> > > > environment, but I feel it does not hurt to ask. 
> > > > 
> > > 
> > > My understanding is that the protocol for sending facts from agent to 
> > > master supports only string fact values.  I think that's the main 
> > > restriction. 
> > > 
> > > 
> > > John 
> >
> > So, then could I do the following ? 
> >
> > test.yaml: 
> > stack_info: one,two,three,four,five 
> >
> >
> Um, yes?
> 
> I mean, it's not clear what, if anything, you intend for that to do.  If 
> you're asking whether you can send delimited strings as fact values, then 
> of course you can.  And once it reaches the master, Puppet has a built-in 
> split() function that can turn such a delimited string into the 
> corresponding array.
> 
> 
> John

I want to use puppetlabs-stdlib and /etc/facter/facts.d to create a set of 
local facts.
Some of these facts come in variable quantities.  I would like to stack these 
up into a delimited string.  I can deal with that.

On thing about your responses that puzzles me is the repeated mention of facts 
going from the agent to the master.  What is that about, please ?  I am looking 
at facts local to the agent.  My understanding is that all the "Magic Behind 
the Curtains" about puppet happens on the agent.  What is the story here about 
agent facts on the master ?  For what purpose ?

“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to