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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/f03YLTHK-5IJ.
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