Philip,

You can use Augeas to do this, or look at a custom file_line type in the
Puppetlabs-stdlib module -->
https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb


On Wed, May 9, 2012 at 11:46 AM, Philip Brown <p...@bolthole.com> wrote:

>
>
> On Monday, May 7, 2012 11:39:37 AM UTC-7, jcbollinger wrote:
>>
>>
>>
>> You may be able to base your provider on the ParsedFile general-
>> purpose base provider, though I did not do that with mine.
>>
>>
> *Sounds* promising. But... no documentation on using this either, that I
> can find?
>
> K.I.S.S.
>  At this point, I feel like just going with the approach of treating
> /etc/passwd like a generic config file, and using a "make sure this line is
> present in this file" resource.
> That sounds like a nice generic thing to...
> Wait.. there isnt one already? ! ???
> Seriously? I havent just missed one somewhere?
> Otherwise, I guess I know what my next puppet back-end coding project is
> :-/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/m68k0VOG__UJ.
>
> 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.

Reply via email to