Hello John, I made a mistake in writing , i am using exec resource to execute that script.
Regards, Ritesh On Mon, May 12, 2014 at 7:05 AM, jcbollinger <[email protected]>wrote: > > > 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 a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/3lD1tChZQJw/unsubscribe. > To unsubscribe from this group and all its topics, 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<https://groups.google.com/d/msgid/puppet-users/753fb5f8-0394-4be7-9a64-9d2a8fcc6ecf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- * With Regards * * Ritesh Nanda* <http://www.ericsson.com/> -- 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/CAO5CbpAsD%3D74cACwoMm32fCb-P9%2B2JC5SxAooR4OJ66iB6umNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
