On Tuesday, June 24, 2014 6:14:00 AM UTC-5, Malintha Adikari wrote:
>
> Hi,
>
> I have faced a blocker in my manifests. I am using external facters and I 
> use those external facters inside my templates ( after parsing it to xml ). 
> I want to do the same thing in my manifets as I  want to get some variable 
> details from those external facters in my manifests. I can get external 
> facters in manifests. But the problem is to get the xml format. If I could 
> use ruby inside my manifests I can parse those facters to xml and use. Can 
> I use ruby inside manifests or is there any other alternative ?
>
>

As Felix implied, you can write a custom function.  You can also use the 
template() or inline_template() function for this purpose -- the result is 
just a string, so it can be assigned to a puppet variable or otherwise 
processed by Puppet manifest code; it does not need to be assigned directly 
to a resource parameter.

And, yes, you might find formal training to be very useful.


John

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3cdf1d5e-cb48-4367-9576-260b9a4b859b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to