[Puppet Users] Re: Check for a line in a file

2009-10-07 Thread Peter Meier
Hi >> http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText can do it > > > Augeas and a lens could be another approach to this. > > I believe the augeas package comes with an /etc/services lens. An example: http://puppet.git.puzzle.ch/?p=module-sshjump.git;a=blob;f=manifests/tunnel.p

[Puppet Users] Re: Check for a line in a file

2009-10-06 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Warburton wrote: > Hi Matt > > http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText can do it > Augeas and a lens could be another approach to this. I believe the augeas package comes with an /etc/services lens. Regards James Turnbu

[Puppet Users] Re: Check for a line in a file

2009-10-06 Thread John Warburton
Hi Matt http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText can do it John 2009/10/7 Matt Delves > > Hey folks, > I'm wondering if there is a way to have puppet check for the existence of a > line in a file and then alter said file to include that line if it is > missing. > > The file