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 <vickiko...@gmail.com> wrote: > 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 this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > > -- Gary Larizza Professional Services Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.