Re: [Puppet Users] Re: custom function to read inifile

2014-08-04 Thread Ritesh Nanda
Sorry for the question it worked , it was a typo . On Mon, Aug 4, 2014 at 12:15 PM, Ritesh Nanda wrote: > Hello , > > In this custom function i am trying to download a file and then parse it , > that works correctly , now i want the url value to be in a variable or > hiera

[Puppet Users] Re: custom function to read inifile

2014-08-04 Thread Ritesh Nanda
ents/development/modules/windows_l2_agent/manifests/install_agent.pp:3 on node cnpdcccvd0434.cdbt.pldc.kp.org Aug 4 11:04:04 pzxdcc0002 puppet-master[10376]: Report processor failed: Report from contained no metrics, which is often caused by a failed catalog compilation. Unable to process. R

Re: [Puppet Users] Re: custom function to read inifile

2014-07-30 Thread Ritesh Nanda
difference for our purposes) I put the data somewhere that > Puppet can access natively (like in my ENC) and have puppet *write* files > not read them. > > > On Wed, Jul 23, 2014 at 6:11 PM, Ritesh Nanda > wrote: > >> Craig , i looked at that module puppetlabs-inifile,

Re: [Puppet Users] Re: custom function to read inifile

2014-07-23 Thread Ritesh Nanda
ta[key] return value end Thanks for your help. Regards, Ritesh Nanda On Wed, Jul 23, 2014 at 2:31 PM, Craig Barr wrote: > Does this <https://forge.puppetlabs.com/puppetlabs/inifile> meet your use > case? > > > On Wednesday, 23 July 2014 07:36:45 UTC+10,

[Puppet Users] custom function to read inifile

2014-07-22 Thread Ritesh Nanda
Hello , I was trying to write a custom function which would run on puppet master take input a ini file , parse a section of that ini file and assign its value to a variable . Something like $test = iniread('example.ini', 'Program', 'path') This would assign the value to test variable when the

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-27 Thread Ritesh Nanda
Thanks John, Thanks for help. Regards, Ritesh Nanda On Tue, May 27, 2014 at 7:54 AM, jcbollinger wrote: > > > On Friday, May 23, 2014 3:37:33 PM UTC-5, Ritesh Nanda wrote: >> >> Hi John, >> >> Thanks for reply again . >> >> *That totally does

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-23 Thread Ritesh Nanda
ith plain "websphere".* Yes , i thought in the same way , if i use the exported resource functionality , then if a take tag as input from the user in the form of clustername - , hope this can be used . I am happy to give more information , thanks for helping me out. Regards, Ritesh Nanda

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-22 Thread Ritesh Nanda
On Thu, May 22, 2014 at 7:50 AM, jcbollinger wrote: > > > On Wednesday, May 21, 2014 3:27:32 PM UTC-5, Ritesh Nanda wrote: >> >> Hello , >> >> I am designing a multi-node deployment env with Puppet. >> > > > Ok. > > > >> Scenario i

[Puppet Users] using storeconfigs and exported resources

2014-05-21 Thread Ritesh Nanda
Hello , I am designing a multi-node deployment env with Puppet. Scenario i have is once one machine is created it will have its hostname allocated dynamically , that hostname has to be used by another machine when it runs it manifest on it . I can get that fqdn of that machine save it in pup

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

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

2014-05-10 Thread Ritesh Nanda
, jcbollinger wrote: > > > 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 wi

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.li

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

2014-05-08 Thread Ritesh Nanda
resource i can run a ruby script , but any better way to do it. Regards, Ritesh On Thu, May 8, 2014 at 11:16 AM, Henrik Lindberg < henrik.lindb...@cloudsmith.com> wrote: > On 2014-08-05 19:03, Ritesh Nanda wrote: > >> Hello , >> >> I would like to use ruby dsl in my

[Puppet Users] using ruby dsl in puppet manifest

2014-05-08 Thread Ritesh Nanda
, Ritesh Nanda -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: [Puppet Users] Re: using custom array based fact with defined type

2014-04-23 Thread Ritesh Nanda
2.0, so the only way I >> know if what you did, although I usually use this form: >> >> Anyfact => value1,value2,value3 >> >> And then just split with the , >> >> Regards, >> El 22/04/2014 20:10, "Ritesh Nanda" escribió: >> &

Re: [Puppet Users] Re: using custom array based fact with defined type

2014-04-22 Thread Ritesh Nanda
e3 > > And then just split with the , > > Regards, > El 22/04/2014 20:10, "Ritesh Nanda" escribió: > >> Hello Toni , John >> >> Thanks for your help. >> >> Doing validate array gives a >> >> Error 400 on SERVER: "&qu

[Puppet Users] Re: using custom array based fact with defined type

2014-04-22 Thread Ritesh Nanda
ts process the array . now the init.pp looks like class test { $arrayvar = split($::arraydev, '[,]') test::exeecho{$arrayvar:} } Doing validate array tells me it is string not an array , Is this the right way to do it. Or there can be a better way to do it. Regards, Ritesh Nanda On

[Puppet Users] using custom array based fact with defined type

2014-04-21 Thread Ritesh Nanda
cdbt.pldc.kp.org Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Please tell me if i am doing something wrong. Regards, Ritesh Nanda -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To u