On Wednesday, May 9, 2012 11:55:01 AM UTC-7, Gary Larizza wrote: > > > Philip, > > You can use Augeas to do this, >
Install a whole new C library/util/ thingie, just to do something trivial? no thanks... > 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 > Aha, thanks, this sounds appropriate. Soooo.. what's the way to "officially" use or acquire this thing? $ puppet-module search stdlib returns puppetlabs/stdlib (2.3.1) so... use that? Is there a corresponding best-fit simple resource type already written to go along with it? Hmm.. I'm kinda leery of just typing "puppet-module install xyz", without knowing everything thats in it. Is there some undocumneted puppet-module command to show what will be installed, before actually installing it? Something named "stdlib" seems quite large. and how do I know it will work with my version of puppet? is the number in (), the version of the module, or the required version of puppet? puppet-module --help does not mention this sort of information. > > On Wed, May 9, 2012 at 11:46 AM, Philip Brown 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/-/ZhG7AAZx2FUJ. 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.