Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-12 Thread Ritesh Nanda
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 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 t

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-12 Thread jcbollinger
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 *

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-10 Thread Ritesh Nanda
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 . I would start thinking on it , thanks for your help. Regards, Ritesh On Fri, May 9, 2014 at 11:46 AM, jcbol

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-09 Thread jcbollinger
On Thursday, May 8, 2014 12:36:56 PM UTC-5, Ritesh Nanda wrote: > > Thanks Henrik , > > I would like to find a file and parse it , so that would be on the agent > , creating a puppet function would not work , as master will not be able > to access those files. > Neither would anything writ

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-09 Thread Ritesh Nanda
Hello Henrik , Thanks for your reply , i was also thinking to create a type and provider using existing parser functionality puppet has . Even thanks for sharing those links , it was helpful. Regards, Ritesh Nanda On Thu, May 8, 2014 at 7:17 PM, Henrik Lindberg < henrik.lindb...@cloudsmith.c

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-08 Thread Henrik Lindberg
On 2014-08-05 19:36, Ritesh Nanda wrote: Thanks Henrik , I would like to find a file and parse it , so that would be on the agent , creating a puppet function would not work , as master will not be able to access those files. You said Can be done with Resources , how can i include a ruby bloc

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-08 Thread Ritesh Nanda
Thanks Henrik , I would like to find a file and parse it , so that would be on the agent , creating a puppet function would not work , as master will not be able to access those files. You said Can be done with Resources , how can i include a ruby block in my manifest , i know using exec resour

Re: [Puppet Users] using ruby dsl in puppet manifest

2014-05-08 Thread Henrik Lindberg
On 2014-08-05 19:03, Ritesh Nanda wrote: Hello , I would like to use ruby dsl in my manifest . Online doc for this topic is very limited , i am stuck at a place where i want to use ruby DIr class to find a particular file in a directory and then run operation on it . Is it possible to use ruby

[Puppet Users] using ruby dsl in puppet manifest

2014-05-08 Thread Ritesh Nanda
Hello , I would like to use ruby dsl in my manifest . Online doc for this topic is very limited , i am stuck at a place where i want to use ruby DIr class to find a particular file in a directory and then run operation on it . Is it possible to use ruby dsl for puppet in this way. Regards,