On Saturday, May 10, 2014 7:49:18 PM UTC-5, Ritesh Nanda wrote:
>
> Hello John,
>
> Thanks for your reply , ruby code i was trying to run was on client , so i 
> am doing with inline_template right now , yeah but your idea seems good to 
> have a plugin to do it .
>


A plugin or an Exec is the *only* place to do it.  As I wrote, templates 
are evaluated on the master, so *inline_template() will not do what you 
want*.  If your code must run on the agent then it must be in a custom fact 
or in the provider of a custom type, it must be run via an Exec resource.


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/753fb5f8-0394-4be7-9a64-9d2a8fcc6ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to