On Thu, Mar 22, 2012 at 23:48, Gary Larizza <g...@puppetlabs.com> wrote:
> > On Thursday, March 22, 2012 at 6:23 AM, John Kennedy wrote: > > > On Thu, Mar 22, 2012 at 13:02, jcbollinger <john.bollin...@stjude.org>wrote: > > > > - NOTE: I am adding and removing the #includedir line for testing... > > > > What needs to be changed to get this to work? > > > Have you considered using sed instead of perl? It's lighter-weight > and very good at this sort of thing. > > Personally, however, I would be looking at using a File resource to > manage the *whole file* instead of filtering out a few lines. > > > Have you looked at the 'file_line' type in Puppet's stdlib? > https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb > > > > Gary, I can see where 'file_line' will add a line but I don't know enough ruby to know, will it remove a line that does exist? Thanks, John -- 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.