Hi,

On 07/16/2012 03:53 PM, ZJE wrote:
> For example, if I'm collecting infromation about the raid array, it
> would be something like this:
> ---
> custom_hw_localstorage_ctrl_0_array_0_raid => 1
> custom_hw_localstorage_ctrl_0_array_1_raid => 5
> ---
> 
> Where the implied hierachy is something like:
> custom
>   hw
>     localstorage
>       ctrl
>         0: array
>             0: raid = 1
>             1: raid = 5

I believe that within the facter paradigm, this structure is as good as any.

As far as I know, facter is supposed to support structured data such as
arrays and hashes as fact values, but currently your workaround is
probably the next best thing.

Of course, accessing those dynamically will be quite an excercise, and
probably not possible from the puppet DSL without resorting to inline
templates.

Cheers,
Felix

-- 
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