Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Andreas Hilboll
Thanks guys, you're amazing :) While augeas looks like a powerful tool, I went for the quick'n'easy file_line resource, with a match parameter to ensure the parameter isn't set multiple times. Cheers, have a nice weekend! Andreas. Am 04.01.2013 20:06, schrieb Stephen Jahl: >> Hi, >> >> I want to

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Jerald Sheets
I'm doing this with the augeas piece like so: augeas { 'make_grub_verbose': context => '/files/etc/grub.conf', changes => [ 'rm hiddenmenu', 'rm splashimage', ], } You should be able to use those features as you like. --Jer

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Dan White
http://docs.puppetlabs.com/references/latest/type.html#augeas http://forge.puppetlabs.com/puppetlabs/stdlib (file_line with match parameter) “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calv

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Roman Shaposhnik
Hi! On Fri, Jan 4, 2013 at 9:46 AM, Andreas Hilboll wrote: > Hi, > > I want to write a puppet module for xen on Debian. This module will need > to manage one line in the file /etc/default/grub, namely the line > starting with "GRUB_CMDLINE_XEN=". Currently I want to leave the rest of > the file u

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Stephen Jahl
> Hi, > > I want to write a puppet module for xen on Debian. This module will need > to manage one line in the file /etc/default/grub, namely the line > starting with "GRUB_CMDLINE_XEN=". Currently I want to leave the rest of > the file untouched. > > Which would be the best way to do this? > W