Martin Alfke [Thu, Jun 23, 2011 at 02:51:07PM +0200]:
> On 06/23/2011 12:55 PM, Sans wrote:
> > [...] how do I add some extra lines in a existing file [...]
> 
> this is not directly built into puppet.

Is there any specific reason why this is not built into puppet?

We've put __addifnosuchline [0] into cdist [1] as one of
the most basic features, because it's often needed if you do not
care about the existing contents, but just need to add a line.

Cheers,

Nico

[0] 
http://www.nico.schottelius.org/software/cdist/man/cdist-type__addifnosuchline.html
[1] http://www.nico.schottelius.org/software/cdist/

-- 
PGP key: 7ED9 F7D3 6B10 81D7 0EC5  5C09 D7DC C8E4 3187 7DF0

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to