Re: [Puppet Users] can puppet check if the string is present in file

2012-03-26 Thread Gary Larizza
Look at the 'file_line' custom type in the Puppetlabs Stdlib. The documentation in the file should assist with its usage. https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb On Monday, March 26, 2012, vicki wrote: > Hello, > I need to add the JVM arguments t

[Puppet Users] can puppet check if the string is present in file

2012-03-26 Thread vicki
Hello, I need to add the JVM arguments to the script based on some condition. First I need to check whether the string representing these args is already there. Can Puppet check the existence a substring and return with a code just like java indexOf(substr) does? Thank you. Vicki -- You received