Has anyone written or what provider to use to handle adding and removing entries from the OpenBSD /etc/rc.conf.local file? Failing that, what is the easiest way to go about this? I need to be able to add and remove strings which will be in the form of: packagename="SOME VALUE" or packagename=NO or packagename Happy to go ahead and write something as I understand ruby... not quite sure where to start. guess I just make an OpenBSD service provider? Mikel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mikel Lindsaar wrote:> Has anyone written or what provider to use to handle adding and removing > entries from the OpenBSD /etc/rc.conf.local file? > > Failing that, what is the easiest way to go about this? > > I need to be able to add and remove strings which will be in the form of: > > packagename="SOME VALUE" > > or > > packagename=NO > > or > > packagename> > > Happy to go ahead and write something as I understand ruby... not quite > sure where to start. > > guess I just make an OpenBSD service provider?Have a look at: http://reductivelabs.com/trac/puppet/wiki/DocumentationStart#ExtendingPuppet Particularly at the ParsedFile helper class. Also the existing FreeBSD service provider might also help - /lib/puppet/provider/service/freebsd.rb Regards James Turnbull -- James Turnbull (james@lovedthanlost.net) Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/)