Hi Cristian,
Thanks for the code. gos[:mac] is the right thing to do (as we defined: gos
= {}); I think I g_C was a typo in my example script somewhere down the
line).
One related question: as I read that the name of the file must be the same
as the name of the function, then I suppose I cannot do something similar
to this in function:
gos.each_key do |cls|
> Facter.add('am_oss_' + cls.to_s) do
> setcode { gos[cls][0] }
> end
> end
>
as one can easily do with custom-facts? Any workaround available to this
issue? Cheers!!
On Tuesday, October 15, 2013 2:27:00 PM UTC+1, Cristian Falcas wrote:
>
> I've changed your g_C[:mac] to gos[:mac], because I don't know what it
> should do and puppet complained about it.
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.