windowsrefund
2011-Aug-05 01:35 UTC
[Puppet Users] How to use parsedfile for more than name
All, I''m working on a provider which uses ParsedFile and am running into an issue when I use anything more complicated than record_line :parsed, :fields => %w{name} If I try to use (for example) :fields => %w{foo, bar, baz}, my content ends up in my target file but every run adds another line. I''ve been attempting to figure out what is needed by studying the host type''s provider but could use some help. I tend to think the answer lies somewhere in :match and/or :to_line but I''m not sure what these do. Any help would greatly appreciated. Best, Adam -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Guy Matz
2011-Oct-13 15:30 UTC
Re: [Puppet Users] How to use parsedfile for more than name
Hey!! Did you ever get anywhere with this? If so, I''d love to bounce a couple of things off of you. The lack of documentation for ParsedFile is annoying . . . thanks, Guy On Thu, Aug 4, 2011 at 9:35 PM, windowsrefund <windowsrefund@gmail.com>wrote:> All, > > I''m working on a provider which uses ParsedFile and am running into an > issue when I use anything more complicated than > > record_line :parsed, :fields => %w{name} > > If I try to use (for example) :fields => %w{foo, bar, baz}, my content > ends up in my target file but every run adds another line. I''ve been > attempting to figure out what is needed by studying the host type''s > provider but could use some help. I tend to think the answer lies > somewhere in :match and/or :to_line but I''m not sure what these do. > > Any help would greatly appreciated. > > Best, > Adam > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.